| 11-26-2007, 02:23 PM | #1 |
Hi, this is my first post here :P Anyway, how would you check a player's gold in a condition. Heres my trigger -Events Unit-A unit begins casting an ability -Conditions (Ability being cast) Equal to Buy lot 0,0 -Actions Player- Set (triggering player) current gold to ((Triggering player) Current gold to (Triggering player) current gold -10) ------End trigger----- I olny want this ability to work if you have 10 gold. Thhx 4 ur help |
| 11-27-2007, 06:59 AM | #2 |
You'll need an integer comparison: Trigger: Conditions![]() ----- Your Other Conditions -----![]() ((Owner of (Triggering Unit)) current gold) greater than or equal to 10 |
| 11-27-2007, 09:59 PM | #3 |
thx alot :D |
