kill reward?

Thoric

New Member
Reaction score
0
how do i make the unit spawns so that when a player kills units, he gets gold?:confused:
 

Dinowc

don't expect anything, prepare for everything
Reaction score
223
you want to gain gold only from spawned units?
if so, do this:

Code:
e: unit enters playable map area (or spawning region)
c: unit-type of triggering unit equal to [spawned unit type]
a: add triggering unit to spawned_group

Code:
e: unit dies
c: triggering unit is in spawned_group equal to true
a: add x gold to owner of killing unit
   remove triggering unit from spawned_group

EDIT: ye bounty works, but it will give gold from any killed unit owned by that player (I suppose he wants bounty only from spawned units)

and my method isn't very good since you will gain same amount of gold from every killed unit :/
unless you play with the (x * level of unit) thing or something like that
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
That's already built into the game.
It's called "bounty", and is usually only "on" for Neutral Hostile.

To get it to work for other players, add this to some trigger that runs at "map init":
Pick every player in (All players) and do
- Player - Turn Gives bounty ON for (Picked player) (that action is under "player - set flag")


EDIT: :D
 

svenski

New Member
Reaction score
1
Ah this helped me out a bunch! The Action command is:
Code:
Player - Turn Player Flag On/Off
...in the GUI.

: )
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top