• 🏆 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!

[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