Jass Help With Timer Arrays

Dameon

"All the power in the world resides in the eyes"
Reaction score
127
I read some where that you can use jass to detect which timer of a timer array expired and I wanted to know if it is true, and if it is can it be added to a condition like timer that expired equal to timer_main[1]. If it is possible can some one post the jass trigger for me.

I do things in GUI right now cause my spelling is bad but the trigger will be ment to revive a hero after his timer runes out. Some thing like this.

I will have a MI trigger adding the events for the trigger.

Code:
Revive Hero
    Events
    Conditions
    Actions
        For each (Integer Interger_Main[0]) from 1 to 10, do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        Expireing Timer Equal to Timer_RI[Interger_Main[0]]
                    Then - Actions
                        Hero - Instantly revive Unit_PH[Interger_Main[0]] at (Center of (Playable map area)), Hide revival graphics
                    Else - Actions


Only in jass and that works lol :)
 

Trithilon-V2

New Member
Reaction score
20
Well...for the simplest solution in GUI,
use EGUI for attaching information to Timer.
Attach the Index number to the timer with the name "Index" and retrieve it in the trigger.
And remember to null the attachment when used.
Here is the link to get EGUI....just make sure you have Jass newgen ver 5a
EGUI
If any problems post it...i might not answer cuz i am goin 2 sleep.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      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