Easy Integer Question

21ToWin

New Member
Reaction score
5
I just got back into WC3 mapping so I have forgotten some things.

How do you base a trigger of an integer reaching a certain value?
 

blooman

New Member
Reaction score
16
Trigger:
  • we
    • Events
      • Time - Every 2.00 seconds of game time
    • Conditions
    • Actions
      • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • You Integer Here Equal to (==) 0
        • Then - Actions
        • Else - Actions

Can you be more specific?
 

simonake

New Member
Reaction score
72
I think it's what you mean
Trigger:
  • If Integer Equal to 300 then Set Integer = 0 Else Set Integer = (Integer + 1)


Use if,then,else conditions, or just Integer Comparisons.
 

21ToWin

New Member
Reaction score
5
Thats all I need i think. I wasnt sure if there was an Event that checked if an integer was a specific value. Ill try that and get back to you. Thanks Bloo & simonake.
 

blooman

New Member
Reaction score
16
I think it's what you mean
Trigger:
  • If Integer Equal to 300 then Set Integer = 0 Else Set Integer = (Integer + 1)


Use if,then,else conditions, or just Integer Comparisons.
i don't know the event he wants it to happen with lol
 

elmstfreddie

The Finglonger
Reaction score
203
Thats all I need i think. I wasnt sure if there was an Event that checked if an integer was a specific value. Ill try that and get back to you. Thanks Bloo & simonake.


He just wanted to know if an event existed for doing something once an integer reaches a certain number.

For example, in a TD, an event that'd do something when a lives variable is = 0. Unfortunately no such event exists, and therefor he must use if/then/elses or conditions on a time event like blooman said.
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top