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

[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
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
@DeathChef
Your JASS relation between those 2 conditions should be and, not or, am I right ?

And at the last condition, it seems pretty illogical and repetitions.

I3 >= I1 or I3 >= I1

Why repeat them ?

It seems you're rushing while typing this out, lol.
 
Status
Not open for further replies.
Top