'.-=Trigger help=-.'

Status
Not open for further replies.
Level 5
Joined
Aug 14, 2004
Messages
188
It would be nice to get a reply, basically im haveing some trigger help, i want after an ability is cast for it to take like60 lumber or 50 lumber, whatver from the units players current ammount or whatever.... its gona be done on a mass scale, several units useing it, doese that effect it?
 
Here's your reply! :P
If you have hundreds of units using it at one time it might cause lag but otherwise probably not. basically do this:
Code:
Events: a unit starts casting an ability
Conditions: ability being cast equal to (your abil)
Actions: If/Then/Else Conditions:
Conditions: Current lumber of Owner of casting unit < whatever
Then - actions
order casting unit to stop.
Else - actions
set lumber of owner of casting unit to current lumber of casting unit - whatever.

Hope that helps or something. Somebody else may have a better idea.
 
Status
Not open for further replies.
Back
Top