"If-Then-Else" is an action, so you have to put it in an action spot. To find it, just click the "functions" radio button, and then type "If Then" into the search bar.
Once you have that, you go to conditions in the If-Then-Else, and since "unit type ==" is a boolean comparison, you need to put it as a condition under the If-Then-Else...
Between that and mine and Berrala's script (which is exactly as I described) I'm not sure where you're getting lost. You might wanna look under tutorials for something on conditions, or If-Then-Else statements (maybe under "logic" too).
There might be a way to short cut it... but the solution that imedately comes to mind is...
Events:
Timer Expires - myThirtySecondTimer
Actions:
Pick each unit in unit group - Units In Region Matching Condition (Any, yourPFregion, 1, Excluded... , Any Amount)
Actions
If (unit type == P.F.)
Do This stuff like spawn a Levithan
Edit: If you are checking your WHOLE map for these P.F.s and you have a lot of units, this is going to bog down your game. If that's the case, then I'd do something like "when a unit is created, condition it's a P.F., add one to variable LevithansToBeSpawned". Then reset the variable OR track when a unit is killed, and subtract one from the varible if you want the possibility of multiple Levithans to be spawned if a P.F. remains in the region for prolonged periods
@Berrala: Go
I think that's exactly what I said...
@ThaurMaps: Go
"If-Then-Else" is an action, so you have to put it in an action spot. To find it, just click the "functions" radio button, and then type "If Then" into the search bar.
Once you have that, you go to conditions in the If-Then-Else, and since "unit type ==" is a boolean comparison, you need to put it as a condition under the If-Then-Else...
Between that and mine and Berrala's script (which is exactly as I described) I'm not sure where you're getting lost. You might wanna look under tutorials for something on conditions, or If-Then-Else statements (maybe under "logic" too).
There might be a way to short cut it... but the solution that imedately comes to mind is...
Edit: If you are checking your WHOLE map for these P.F.s and you have a lot of units, this is going to bog down your game. If that's the case, then I'd do something like "when a unit is created, condition it's a P.F., add one to variable LevithansToBeSpawned". Then reset the variable OR track when a unit is killed, and subtract one from the varible if you want the possibility of multiple Levithans to be spawned if a P.F. remains in the region for prolonged periods