Witch (IT/THAN/ELSE) actions and witch OR conditiond are better?

Status
Not open for further replies.
Level 14
Joined
Mar 4, 2009
Messages
1,156
is it better to use or conditions or or multiple conditions

is it better to use if/than/else actions like this

  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Unit-type of (Triggering unit)) Equal to Small Scorpion
      • Then - Actions
      • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Unit-type of (Triggering unit)) Equal to Acolyte
      • Then - Actions
      • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Unit-type of (Triggering unit)) Equal to Shade
      • Then - Actions
      • Else - Actions
or maybe like this
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (Unit-type of (Triggering unit)) Equal to Small Scorpion
    • Then - Actions
    • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Triggering unit)) Equal to Acolyte
        • Then - Actions
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Triggering unit)) Equal to Shade
            • Then - Actions
            • Else - Actions
im not sure but maybe conditions don't have effect at all
but i have one trigger with 37 of them so im asking....
 
Level 14
Joined
Mar 4, 2009
Messages
1,156
Have you actually thought of using this
  • Or - Any (Conditions) are true
    • Conditions
And then add all your conditions?Why repeat if/then/else if you don't have a need for it?

P.S. if you want to use if/then/else then do it the 2nd way(with the trigger you posted above).
i have a need for it but its not matter......that what im posting here is just an example

ok so is it better to use conditions like this

  • Or - Any (Conditions) are true
    • Conditions
      • ((Triggering unit) is A structure) Equal to True
      • ((Triggering unit) is A structure) Equal to True
      • ((Triggering unit) is A structure) Equal to True
or like this xD

  • (((Triggering unit) is A structure) Equal to True) or ((((Triggering unit) is A structure) Equal to True) or (((Triggering unit) is A structure) Equal to True))
 
Level 15
Joined
Aug 11, 2009
Messages
1,606
i have a need for it but its not matter......that what im posting here is just an example

ok so is it better to use conditions like this

  • Or - Any (Conditions) are true
    • Conditions
      • ((Triggering unit) is A structure) Equal to True
      • ((Triggering unit) is A structure) Equal to True
      • ((Triggering unit) is A structure) Equal to True
or like this xD

  • (((Triggering unit) is A structure) Equal to True) or ((((Triggering unit) is A structure) Equal to True) or (((Triggering unit) is A structure) Equal to True))

It's exactly the same...Nothing changes,not even the time required for the actions to take place.
 
Level 9
Joined
Nov 28, 2008
Messages
704
They aren't different in JASS because they are different, they are different because WE converts things to JASS quite ugily.

Either way, it doesn't matter much at all. Nanoseconds if it does. And if you *care* that much, use Vexorian's WC3 Map Optimizer.

Oh, and I would use the multi line ones, if I still used GUI. They are much much easier to work with imo, one less popup window.
 
Status
Not open for further replies.
Top