HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How do I do this?

08-22-2004, 05:34 PM#1
shadowhunter09
Okay, I've got a problem... This may sound like a stupid question but I'm bad with triggers so I need some help ^_^ .
I'm trying to make it so that when a Hero kills "Red Dragon" he and his team get 200 gold and 15 Wisdom (Lumber but I changed it to suit the map ;) ).
I can't seem to find out how to only give the minerals to that player and his allies.
This is what I got so far: EVENTS:
Unit-Red dragon 0088 <gen> Dies
CONDITIONS:
ACTIONS:
Quest - Mark (last created quest) as completed
Trigger - Turn off (this trigger)
Help is very apprieciated :).
08-22-2004, 06:36 PM#2
iNfraNe
Quote:
Originally Posted by shadowhunter09
Okay, I've got a problem... This may sound like a stupid question but I'm bad with triggers so I need some help ^_^ .
I'm trying to make it so that when a Hero kills "Red Dragon" he and his team get 200 gold and 15 Wisdom (Lumber but I changed it to suit the map ;) ).
I can't seem to find out how to only give the minerals to that player and his allies.
This is what I got so far: EVENTS:
Unit-Red dragon 0088 <gen> Dies
CONDITIONS:
ACTIONS:
Quest - Mark (last created quest) as completed
Trigger - Turn off (this trigger)
Help is very apprieciated :).
Action: Player - add property
Player - add 200 gold to (owner of unit(killing unit))
same for lumber, if you want the gold and wood to display like bounty it will be more difficult tho.
08-22-2004, 07:08 PM#3
shadowhunter09
Okay, but how do I add it to the allies too if they aren't the killing unit? :S
Quote:
Originally Posted by toot
If you want the gold and wood to display like bounty it will be more difficult tho.
Nah I dont need it to appear like a bounty, thank you very much :).
08-24-2004, 10:29 AM#4
volatile
At map initialization

Actions

Add Player 1 to playergroup1
Add Player 2 to playergroup1
Add Player 3 to playergroup1
Add Player 4 to playergroup1
Add Player 5 to playergroup1
Add Player 6 to playergroup2
Add Player 7 to playergroup2
Add Player 8 to playergroup2
Add Player 9 to playergroup2
Add Player 10 to playergroup2

Then when a person kills red dragon

If
owner of (killing unit) is in playergroup1
then
pick every player in playergroup1
and add 200 to (picked player) current gold
else
if owner of (killing unit) is in playergroup1
then
pick every player in playergroup2
and add 200 to (picked player) current gold
else
do nothing
08-24-2004, 03:44 PM#5
shadowhunter09
Quote:
Originally Posted by volatile
At map initialization

Actions

Add Player 1 to playergroup1
Add Player 2 to playergroup1
Add Player 3 to playergroup1
Add Player 4 to playergroup1
Add Player 5 to playergroup1
Add Player 6 to playergroup2
Add Player 7 to playergroup2
Add Player 8 to playergroup2
Add Player 9 to playergroup2
Add Player 10 to playergroup2

Then when a person kills red dragon

If
owner of (killing unit) is in playergroup1
then
pick every player in playergroup1
and add 200 to (picked player) current gold
else
if owner of (killing unit) is in playergroup1
then
pick every player in playergroup2
and add 200 to (picked player) current gold
else
do nothing
Will this work for experience too?