• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

'.-=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?
 
Level 4
Joined
Aug 31, 2004
Messages
106
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.
Top