[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![]()
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...
!
how did u find (Player 1 (Red) Current gold) Greater than 500 this condition thg?