HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Kills

08-02-2004, 01:10 AM#1
Zrulu
Hello Peoples,
I am a total noob at the campaign editor and I was wondering how would you convert gold to kills. I want to make a deathmatch type of mabob just to let me learn the editor and I want it so that everytime a players units gets a kill it gives that player X amount of gold. I have looked through all of the unit events and haven't found didely.

Thanks for the help,
Andrew
08-02-2004, 01:47 AM#2
[niro]
Quote:
Originally Posted by Zrulu
Hello Peoples,
I am a total noob at the campaign editor and I was wondering how would you convert gold to kills. I want to make a deathmatch type of mabob just to let me learn the editor and I want it so that everytime a players units gets a kill it gives that player X amount of gold. I have looked through all of the unit events and haven't found didely.

Thanks for the help,
Andrew


Event
Unit dies
Condition
none
Event
(do an if then else for each player)
If
Unit type of dying unit equal to footman
Owner of killing unit equal to Player1(red)
then
player add 10 gold to player1(red)'s current gold
else
do nothing

DO this for each player, just the if then else, in the same trigger, but change the player.

You can also do this, which is MUCH easier.
event
Time elapse 0.00 seconds
condition
none
action
set player flag for player1(red) to gives bounty
set player flag for player2(blue) to gives bounty
etc....

for all the players

not sure the exact wording of it though.