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!
I want a unit to be only able to trigger trigger if that unit is in a certain region. I used the Boolean function Unit in Region = True but for some reason that condition does not work! What am I doing wrong?
Unit enters region can trigger, but then is unit in region can fail. You can use two overlayed regions where the other is a bit larger. Or you can store the id of the region and then load it when it is entered.
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering player) Equal to Player 1 (Red)
(Region 000 <gen> contains (Casting unit)) Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Casting unit)) Equal to Elite Knight
Then - Actions
Set MountPlayer1Knight = (Casting unit)
Set LocTempKnightPlayer1 = (Position of MountPlayer1Knight)
Game Cache - Store MountPlayer1Knight as MountHero of Player1Knight in Hero1Red
Game Cache - Save Hero1Red
Unit - Hide (Casting unit)
Unit - Create 1 Elite Knight (mounted) for Player 1 (Red) at LocTempKnightPlayer1 facing Default building facing degrees
Game - Display to (All players) the text: Debug - Knight Saved
Else - Actions
Game - Display to (All players) the text: Debug - Unit Type f...
Else - Actions
Game - Display to (All players) the text: Can't mount here
I've posted this trigger before but now I want it to be that the casting unit is in a certain Stable region.
Edit. I should probably remove those Cache actions since it's not working properly.
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.