• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 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!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

[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