GfameVideos
New Member
- Reaction score
- 2
These are my 2 triggers, which should make it only able to buy 1 unit, and then when it dies it resets, and ucan buy another 1.
(I knew this trigger was gonna be wrong on making, but i didn't knew how to maek it working, so i just made this for an example of what i want)
Please help!
(I knew this trigger was gonna be wrong on making, but i didn't knew how to maek it working, so i just made this for an example of what i want)
Please help!
Trigger:
- Class Selecting 1
- Events
- Unit - A unit Sells a unit
- Conditions
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Player_Bought Equal to 1
- Then - Actions
- Game - Display to (Player group((Owner of (Sold unit)))) for 5.00 seconds the text: You already have a ...
- Unit - Remove (Sold unit) from the game
- Else - Actions
- Set Player_Bought = 1
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
Trigger:
- Class Selecting 2
- Events
- Unit - A unit Dies
- Conditions
- Or - Any (Conditions) are true
- Conditions
- (Unit-type of (Dying unit)) Equal to |cff995500Force Recon|r
- (Unit-type of (Dying unit)) Equal to |cff995500Rifleman|r
- (Unit-type of (Dying unit)) Equal to |cff995500Stealth Sniper|r
- Conditions
- Or - Any (Conditions) are true
- Actions
- Set Player_Bought = 0
- Events