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!
What i am trying to say is that when a player's unit enters a region, if the player has no wood or gold, then the unit will teleport. BUT if the player HAS either wood and/or gold left then the unit will not teleport and will give a comment.
If (All conditions are true) then do (Then Actions) else do (Else Actions)
If - Conditions
(((Owner of (Triggering unit)) Current gold) Equal to 0) or (((Owner of (Triggering unit)) Current lumber) Equal to 0)
Then - Actions
// teleport?
Else - Actions
Set force = (Player group((Owner of (Triggering unit))))
Game - Display to force the text: //message here
Custom script: call DestroyForce(udg_force)
Where 'force' is player group variable.
To make such conidtion you have to enter Condition filter and scroll down to a bit to be able to select 'Or' type. Press enter. Now to set first in way I've done it, head to: Integer Comparisons -> Player - Player Property. You probably know how to fill fields here; do the same with second condition but this time refer to lumber instead of gold.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.