[Solved] OR condition

Level 9
Joined
Mar 26, 2020
Messages
205
im trying to make a region like those rpg maps where your going to spawn units randomly in the region...what i need is how do i do the multiple unit type using OR since OR only supports two, but using OR inside OR will be nested and might broke my trigger

im thinking it should look like this
  • Conditions
    • (Spawn Forest <gen> contains (Position of (Triggering unit))) Equal to True
    • (((Unit-type of (Triggering unit)) Equal to Footman) or ((Unit-type of (Triggering unit)) Equal to Knight)) or (((Unit-type of (Triggering unit)) Equal to Rifleman) or ((Unit-type of (Triggering unit)) Equal to Mortar Team))
 
You can use "Or (multiple)" version of condition and put several single conditions in it for clarity.

Otherwise, I don't see issues with nesting them (but I don't know specific limits to it, as they may exist in both versions).
ohhh this one?
  • Conditions
    • Or - Any (Conditions) are true
      • Conditions
i didn't know that is a thing, it was also on the last category, no wonder i didn't see there is this option
 
Back
Top