| 02-12-2004, 06:06 PM | #1 |
I'm makin' footman-warz-like-map. How to add trigger to get gold when i kill an enemy unit. OK,im not that ST:yup::yup:pid events- Unit - A unit dies conditions-(triggerin unit) belongs to an enemy of player(red) Equal to True action- player - add 20 to player(red) current gold where's the condition that says : (triggering unit) is killed by unit owned by player1(red) or something like that? plz respond!!!:mtk: |
| 02-13-2004, 06:02 AM | #2 |
Code:
Dying Gold
Events
Unit - A unit Dies
Conditions
((Owner of (Dying unit)) is an enemy of Player 1 (Red)) Equal to True
Actions
Player - Add 20 to Player 1 (Red) Current gold |
| 02-14-2004, 04:44 PM | #3 |
Yo, Bulletcatcher dude, this is a map for 12 players , and if someone else killed any of the enemy units i would get gold. that's da problem here.What should i do???emote_confused |
| 02-14-2004, 04:46 PM | #4 |
Hold on, I'll edit this post to give you 1 trigger that will give gold to every player. Code:
Events: A unit owned by player 1 dies
A unit owned by player 2 dies
All the way down to 12
Conditions:
Actions: For each integer A from to 1 to 12 loop actions
If Then Else Multiple Actions
If: Owner of attacking unit is equal to Player[Integer A]
Unit type of dying unit is equal to footman
Then: Set Player Property - Set Player[Integer A] current gold to Player[Integer A] gold + 20. |
| 02-14-2004, 04:48 PM | #5 |
y don't you just use bounty? It seems like that is what you need. |
