The custom script doesn't want to cooperate

Level 10
Joined
Sep 9, 2010
Messages
369
Hey, I was just making a quick test map today with a triggered spell.
When I tested got an error, saying that my custom scripts are invaild and forces to disable the trigger.
Please have a look at the trigger and try to give me a clue what went wrong.

  • LightningBlink
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Phase Walk
    • Actions
      • -------- Set Variables --------
      • Set PhaseCasterLoc = (Position of (Triggering unit))
      • Set PhaseTargetLoc = (Target point of ability being cast)
      • -------- Lightning Actions --------
      • Lightning - Create a Spirit Link lightning effect from source PhaseCasterLoc to target PhaseTargetLoc
      • Lightning - Destroy (Last created lightning effect)
      • -------- Nullify Variables --------
      • Custom script: Custom script: call RemoveLocation(udg_PhaseCasterLoc)
      • Custom script: Custom script: call RemoveLocation(udg_PhaseTargetLoc)
+rep if solved. Kthxbb
 
Level 7
Joined
Jun 15, 2010
Messages
218
you typed costum script 2 times. remove 1;)

[WRONG] Custom script: Custom script: call RemoveLocation(udg_PhaseCasterLoc)
[GOOD] Custom script: call RemoveLocation(udg_PhaseCasterLoc)


edit: you dident write it 2 times but it apprearce 2 times:p just type " call RemoveLocation(udg_PhaseCasterLoc) "
 
Top