• 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.

[Solved] The leak clearance wont work

Status
Not open for further replies.
Level 11
Joined
Dec 5, 2009
Messages
846
Wc3 wont start because of this leak clearance, what am I doing wrong in this trigger?

  • Ice Bolt
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Ice Bolt
    • Actions
      • Set IceBoltIndex = (IceBoltIndex + 1)
      • Set IceBoltCaster[IceBoltIndex] = (Casting unit)
      • Set IceBoltPoints[IceBoltIndex] = (Position of IceBoltCaster[IceBoltIndex])
      • Unit - Create 1 ICe bolt dummy for (Owner of IceBoltCaster[IceBoltIndex]) at IceBoltPoints[IceBoltIndex] facing (Facing of IceBoltCaster[IceBoltIndex]) degrees
      • Unit - Add a 2.40 second Generic expiration timer to (Last created unit)
      • Set IceBoltUnit2[IceBoltIndex] = (Last created unit)
      • Set IceBoltReal[IceBoltIndex] = (Facing of IceBoltUnit2[IceBoltIndex])
      • Custom script: call RemoveLocation(udg_IceBoltPoints[IceBoltIndex])
      • Trigger - Turn on Ice Bolt Loop <gen>
      • Wait 2.00 seconds
      • Trigger - Turn off Ice Bolt Loop <gen>
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
GUI-vriables have "udg_" in front of them (user defined globals).

Here is what you have written:
  • Custom script: call RemoveLocation(udg_IceBoltPoints[IceBoltIndex])
Here is what it should be:
  • Custom script: call RemoveLocation(udg_IceBoltPoints[udg_IceBoltIndex])
See the difference?
Always remember to add that "udg_" for every GUI-variable, in every custom script.
 
Level 11
Joined
Dec 5, 2009
Messages
846
Ty apocalypse it really helped.. didn't thought of that the index were a variable ^^
And frotty there were no error message.. the map didn't start up as i mentioned in my posts.

ye stupid GUI ^^
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
Glad that solved the problem. See, there is nothing "magical" about programming, it only "seems" magical.
But programming is a magical thing!
Pages filled with text that convert to a series of 0's and 1's, which are able to recreate physics with an amazing accuracy! (Well, science can explain it, but science can do magical things as well...)
 
Status
Not open for further replies.
Top