• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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....
 
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))
 
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.
 
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.
Back
Top