How do i make normal creeps (player units) drop gold?

mushroom911

I think I should change my avatar
Reaction score
43
after spending over 78 hrs of hard work on my new map i finally figured..... how can i get the infantry you kill to drop gold?
I had seen it done, and wanted to try it... i searched the whole "advanced" section and the gameplay constants and didnt find anything, not even a creep bounty modder :banghead: anyone know how to?


P.S its creeps as in "onwed by computer player and run by triggers" kinda thing
 

RedRage

New Member
Reaction score
7
I've made an trigger which does this

Code:
    Events
        Unit - A unit Dies
    Conditions
        (Triggering unit) Equal to Escaped Builder 0011 <gen> (This can be any unit)
    Actions
        Item - Create Gold at (Position of (Triggering unit)) (The gold is the item you make)

You'll have to make an trigger for every unit the computer has for different gold amount (higher monsters the more gold dropped, common in most rpgs)
 

mushroom911

I think I should change my avatar
Reaction score
43
well...

I've made an trigger which does this

Code:
    Events
        Unit - A unit Dies
    Conditions
        (Triggering unit) Equal to Escaped Builder 0011 <gen> (This can be any unit)
    Actions
        Item - Create Gold at (Position of (Triggering unit)) (The gold is the item you make)

You'll have to make an trigger for every unit the computer has for different gold amount (higher monsters the more gold dropped, common in most rpgs)







I dont really know... im more looking for a way like how the creeps (bandits etc) drop gold.. how can i toggle player owned units to do that too?..... cus else everyone steal gold ^^
 
L

laplans

Guest
Just a small trigger I guess.
You mean the bandits are from player 6 as an example?Then this will do:
Drop gold by bandits

Events
Unit - A unit Dies
Conditions
(Owner of (Triggering unit)) Equal to Player 6 (Orange)(player which got the bandits.

Actions
Player - Add 10 to Player 1 (Red) Current gold (Or any player that kills it.

Or you can even do this:

Drop gold by bandits
Events
Unit - A unit owned by Player 6 (Orange) Dies (Just as above)
Conditions
Actions
Player - Add 10 to Player 1 (Red) Current gold (Just as above)

This is what I would do(maybe you can do it with the object editor to.)
Don't know if this works though.
 
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