Bounty

dodongo

New Member
Reaction score
0
How can I make it so when a unit kills another unit, it gives bounty as if the killed unit was neutral hostile like in Footman Frenzy?
 

Solu9

You can change this now in User CP.
Reaction score
216
An example.

Trigger:
  • Untitled Trigger 001
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Dying unit)) Equal to Footman
    • Actions
      • Player - Add 1000 to (Owner of (Killing unit)) Current gold


Edit: I can't remember if there is a place where you can just set it to add bounty for every unit. But the trigger above works.
 

inevit4ble

Well-Known Member
Reaction score
38
there are "Stats - Gold Bounty Awarded fields. Base, Dice Number, Dice Side Number
 

Cyte

New Member
Reaction score
0
Trigger:
  • Events
    • Unit - A unit Dies
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • Zeal - Warrior (Male) Equal to (Unit-type of (Dying unit))
          • ((Owner of (Dying unit)) controller) Equal to (Neutral Passive controller)
    • Actions
      • Player - Add 2 to (Owner of (Killing unit)) Current gold
      • Floating Text - Create floating text that reads |cFFFFCC00+2|r at (Position of (Dying unit)) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Set FloatingText1 = (Last created floating text)
      • Floating Text - Change FloatingText1: Disable permanence
      • Floating Text - Change the lifespan of FloatingText1 to 2.00 seconds
      • Floating Text - Change the fading age of FloatingText1 to 1.00 seconds
      • Floating Text - Set the velocity of FloatingText1 to 64.00 towards 90.00 degrees
 

dodongo

New Member
Reaction score
0
there are "Stats - Gold Bounty Awarded fields. Base, Dice Number, Dice Side Number

Yes but so far it only gives bounty if the unit is neutral hostile, but I want it to give bounty if the unit belongs to other players.
 

dodongo

New Member
Reaction score
0
Trigger:
  • Events
    • Unit - A unit Dies
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • Zeal - Warrior (Male) Equal to (Unit-type of (Dying unit))
          • (Owner of (Killing unit)) Equal to Player 1 (Red)
    • Actions
      • Player - Add 2 to (Owner of (Killing unit)) Current gold
      • Floating Text - Create floating text that reads |cFFFFCC00+2|r at (Position of (Dying unit)) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Set FloatingText1 = (Last created floating text)
      • Floating Text - Change FloatingText1: Disable permanence
      • Floating Text - Change the lifespan of FloatingText1 to 2.00 seconds
      • Floating Text - Change the fading age of FloatingText1 to 1.00 seconds
      • Floating Text - Set the velocity of FloatingText1 to 64.00 towards 90.00 degrees


Zeal - Warrior (Male) Belongs to the Neutral Passive.

But with that I will have to make a trigger for every single unit type.
 

inevit4ble

Well-Known Member
Reaction score
38
You could just check owner of killing unit and owner of dying unit but if your bounty isn't uniform you would have to have a bunch of If/Then?else actions unless you use the unit's level or some other constant to calculate the bounty?
 

Cyte

New Member
Reaction score
0
Trigger:
  • Melee Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Player - Turn Gives bounty On for (Owner of the "CREEP")


Player - Turn players flag on or off
 

Inflicted

Currently inactive
Reaction score
63
Trigger:
  • Melee Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Player - Turn Gives bounty On for (Owner of the "CREEP")


Player - Turn players flag on or off

do this, except turn on bounty for all players you want to give bounty. If you only want some units to give bounty, then mearly set the bounty to 0.
You can change the amount of bounty it awards in the Object Editor (F6).

If you want it a custom size or color, then you will have to trigger it. As shown a few posts above. (#4)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top