• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

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