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

Positive things about GUI

Status
Not open for further replies.
Level 17
Joined
Mar 21, 2011
Messages
1,597
HI
I wanna make a skill: drains 5% of life every 3 sec from target and give it the caster (lasts 20 seconds)

  • Leech Seed 1
    • Ereignisse
      • Einheit - A unit Casts an Ability
    • Bedingungen
      • (Ability being cast) Gleich Leech Seed
    • Aktionen
      • Set Egelsamen_Einheit = (Load 1 of (Key (Target unit of ability being cast)) in Hashtabelle)
      • Set Egelsamen_Einheit = (Casting unit)
      • Hashtabelle - Save Handle OfEgelsamen_Einheit as 1 of (Key (Target unit of ability being cast)) in Hashtabelle
      • Einheitengruppe - Add (Target unit of ability being cast) to Egelsamen_Einheitengruppe[1]

  • Leech Seed 2
    • Ereignisse
      • Zeit - Every 2.50 seconds of game time
    • Bedingungen
    • Aktionen
      • Einheitengruppe - Pick every unit in Egelsamen_Einheitengruppe[1] and do (Actions)
        • Schleifen - Aktionen
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • 'IF'-Bedingungen
              • ((Picked unit) has buff Leech Seed ) Gleich True
            • 'THEN'-Aktionen
              • Einheitengruppe - Add (Picked unit) to Egelsamen_Einheitengruppe[2]
              • Einheitengruppe - Remove (Picked unit) from Egelsamen_Einheitengruppe[1]
            • 'ELSE'-Aktionen
      • Einheitengruppe - Pick every unit in Egelsamen_Einheitengruppe[2] and do (Actions)
        • Schleifen - Aktionen
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • 'IF'-Bedingungen
              • ((Picked unit) has buff Leech Seed ) Gleich True
            • 'THEN'-Aktionen
              • Set Egelsamen_Einheit = (Load 1 of (Key (Picked unit)) in Hashtabelle)
              • Einheit - Cause Egelsamen_Einheit to damage (Picked unit), dealing (((Max. Leben of (Picked unit)) x 0.02) + (0.20 x (Real((Intelligenz of (Picked unit) (Einschließen bonuses)))))) damage of attack type Zaubersprüche and damage type Normal
              • Einheit - Set life of Egelsamen_Einheit to ((Leben of Egelsamen_Einheit) + ((Max. Leben of Egelsamen_Einheit) x 0.02))
            • 'ELSE'-Aktionen
              • Einheitengruppe - Remove (Picked unit) from Egelsamen_Einheitengruppe[2]
That works great, but the question is, i also could do it with GUI, how should i do it? cause hashtables need less variables i think
 
Level 14
Joined
Aug 8, 2010
Messages
1,022
@GIMLI_2 you should upload a test map with your spell via pastebin and link it here because it is really difficult to understand this trigger in another language. (someone will download the map and post the triggers here in english).

By the way - use "[hiden="Heading"]Content[/hiden]" tags (write it "hidden" [with double D]) to hide your triggers in them. It is really annoying when the trigger makes THW page larger than the monitor of the viewer. Example :
The actual trigger
 
Status
Not open for further replies.
Top