Jump to content

Recommended Posts

Hi,

I need some help with a script i'm trying to make a disarm spell with a script here my script

Scriptname Impero extends activemagiceffect
Event OnEffectStart(Actor Target, Actor Caster)
If Target != Game.GetPlayer()
Caster.DisarmActor(Target, Disarm)
Endif
EndEvent
Int Property Disarm Auto
Int Property Disarm = 10 Auto
Int Property a Auto

what i'm doing wrong ?

Here the error

Starting 1 compile threads for 1 files...
Compiling "Impero"...
C:\Program Files (x86)\Steam\SteamApps\common\Skyrim\Data\Scripts\Source\temp\Impero.psc(11,13): script property Disarm already defined
C:\Program Files (x86)\Steam\SteamApps\common\Skyrim\Data\Scripts\Source\temp\Impero.psc(11,13): script variable ::Disarm_var already defined
C:\Program Files (x86)\Steam\SteamApps\common\Skyrim\Data\Scripts\Source\temp\Impero.psc(11,13): script property Disarm already has a get function defined
C:\Program Files (x86)\Steam\SteamApps\common\Skyrim\Data\Scripts\Source\temp\Impero.psc(11,13): script property Disarm already has a set function defined
No output generated for Impero, compilation failed.

 

Link to comment
Share on other sites

You have defined the Disarm property twice, one line saying "Int Property Disarm Auto" and the other "Int Property Disarm = 10 Auto". You can't have two properties with the same name.

Thank i'll try thats if you can give me some more explain about casting spell trought script i would like it :P

Edited by momo1o5
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...