• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

The custom script doesn't want to cooperate

Status
Not open for further replies.
Level 11
Joined
Sep 9, 2010
Messages
368
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) "
 
Status
Not open for further replies.
Top