• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Trigger Problem... Help

Status
Not open for further replies.
Here is an easier explanation if you are a GUI user.
Hence the trigger.
  • Trigger
    • Events
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • I_1 Greater than or equal to I_2
          • I_1 Greater than or equal to I_3
        • Then - Actions
          • -------- Funcions --------
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • I_2 Greater than or equal to I_1
              • I_2 Greater than or equal to I_3
            • Then - Actions
              • -------- Funcions --------
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • I_3 Greater than or equal to I_1
                  • I_3 Greater than or equal to I_2
                • Then - Actions
                  • -------- Funcions --------
                • Else - Actions
Jassy way!
JASS:
function Trig_Trigger_Actions takes nothing returns nothing
    if udg_I_1 >= udg_I_2 or udg_I_1 >= udg_I_3 then
        // Funcions
    else
        if udg_I_2 >= udg_I_1 or udg_I_2 >= udg_I_3 then
            // Funcions
        else
            if udg_I_3 >= udg_I_1 or udg_I_3 >= udg_I_1 then
                // Funcions
            endif
        endif
    endif
endfunction
 
Status
Not open for further replies.
Top