Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
[how to create a trigger : if i type ''+unit '' then create 1 unit .then -500 gold and if the player insufficient funds cannot type ''+unit''
Thanks guys help me with this![]()
Trigger

Events


Player - Player 1 (Red) types a chat message containing +unit as An exact match

Conditions

Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(Player 1 (Red) Current gold) Greater than 500



Then - Actions




Unit - Create 1 YOUR UNIT for Player 1 (Red) at WHERE YO UWANT facing Default building facing degrees




Player - Add -500 to Player 1 (Red) Current gold



Else - Actions




Game - Display to Player Group - Player 1 (Red) the text: You haven't got eno...
I think this will work
Trigger
Events
Player - Player 1 (Red) types a chat message containing +unit as An exact match
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 1 (Red) Current gold) Greater than 500
Then - Actions
Unit - Create 1 YOUR UNIT for Player 1 (Red) at WHERE YO UWANT facing Default building facing degrees
Player - Add -500 to Player 1 (Red) Current gold
Else - Actions
Game - Display to Player Group - Player 1 (Red) the text: You haven't got eno...
!
Player - Set (Triggering player) Current gold to (((Triggering player) Current gold) - 500)
how did u find (Player 1 (Red) Current gold) Greater than 500 this condition thg?