Generating Gold For an Ally

Dymetreus

New Member
Reaction score
1
So I made my own custom AI's (Demon race and Troll for those who's curious) and I made how the Demon's generate gold is by units being slain. While the Trolls generate gold through me and Player2, however I have been unable to find out how we would accomplish this. I plan on making us gaining gold by slaying the enemy, along with neutral monsters. (Two hero map, no buildings except for a revive on OUR side. Trolls build buildings and the Demons do though) Right now I'm looking at Actions - Divert Income to Player trigger, thinking it may help. Though I don't think it will.

I hope someone can assist me. Thanks for anyone's help on the matter.
 

OMGOMGOMG

UMBWGMG (Unidentified Human Being.)
Reaction score
28
Well, if you have an action that you think may/may not work, then try it out, only way to see if it does or doesn't work.
 

afisakov

You can change this now in User CP.
Reaction score
37
One way of making it for the demons
Trigger:
  • Untitled Trigger 001
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Owner of (Killing unit)) Equal to Player 4 (Purple)
    • Actions
      • Player - Add 200 to Player 4 (Purple) Current gold

of course to do it properly I would need to know what u mean by
the Demon's generate gold is by units being slain.
the conditions would have to reflect if u want it when the demons kill a unit, or when a demon dies, or when a hero dies, or simply when anyone on the map gets killed.
You can use if/then/else functions to vary the amount given based on unit properties like who owns it or whether it is a hero.
 

afisakov

You can change this now in User CP.
Reaction score
37
One way of making it for the demons
Trigger:
  • Untitled Trigger 001
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Owner of (Killing unit)) Equal to Player 4 (Purple)
    • Actions
      • Player - Add 200 to Player 4 (Purple) Current gold

of course to do it properly I would need to know what u mean by
the Demon's generate gold is by units being slain.
the conditions would have to reflect if u want it when the demons kill a unit, or when a demon dies, or when a hero dies, or simply when anyone on the map gets killed.
You can use if/then/else functions to vary the amount given based on unit properties like who owns it or whether it is a hero.
 

Dymetreus

New Member
Reaction score
1
One way of making it for the demons
Trigger:
  • Untitled Trigger 001
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Owner of (Killing unit)) Equal to Player 4 (Purple)
    • Actions
      • Player - Add 200 to Player 4 (Purple) Current gold

of course to do it properly I would need to know what u mean by
the conditions would have to reflect if u want it when the demons kill a unit, or when a demon dies, or when a hero dies, or simply when anyone on the map gets killed.
You can use if/then/else functions to vary the amount given based on unit properties like who owns it or whether it is a hero.

The Demons aren't the concern. I actually use that trigger, (a bit opposite tbh, instead of Equal to Purple, it's false to the demons) for the demons, but the only concern is how the Trolls generate gold.

I want them to generate gold by every time I earn gold, they get per say, 50% of that I earn. Which is by killing neutral monsters, or any for that matter. It forces/encourages the player to kill enemies quicker, so that the Trolls defend themselves long enough for the player(s) to make it to the Trolls to defend, and defeat the Demons.
 

OMGOMGOMG

UMBWGMG (Unidentified Human Being.)
Reaction score
28
Trigger:
  • Untitled Trigger 001
    • Events
      • Map Init
    • Conditions
    • Actions
      • Player - Divert 50% of the Gold income of Player 1 (Red) to Player 2 (Blue)
      • Player - Divert 50% of the Gold income of Player 3 (Teal) to Player 2 (Blue) (Player 2 is the trolls, Player's 1 and 3 are the players playing)
Try something along those lines
 

Dymetreus

New Member
Reaction score
1
Trigger:
  • Untitled Trigger 001
    • Events
      • Map Init
    • Conditions
    • Actions
      • Player - Divert 50% of the Gold income of Player 1 (Red) to Player 2 (Blue)
      • Player - Divert 50% of the Gold income of Player 3 (Teal) to Player 2 (Blue) (Player 2 is the trolls, Player's 1 and 3 are the players playing)
Try something along those lines

That doesn't seem to effect it, unfortunately. I'm guessing that's gold you lose from your tax, (having too high of a population, so you get less gold) but I tried it, and nothing happened.
 

afisakov

You can change this now in User CP.
Reaction score
37
say, 50% of that I earn. Which is by killing neutral monsters
as long as most of ur gold is by killing enemy monsters and the purpose is that
It forces/encourages the player to kill enemies quicker
You can do this with
Trigger:
  • Untitled Trigger 001
    • Events
      • Unit - A unit Dies
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Owner of (Killing unit)) Equal to Player 1 (Red)
          • (Owner of (Killing unit)) Equal to Player 2 (Blue)
    • Actions
      • Player - Add (Point-value of (Unit-type of (Triggering unit))) to Player 3 (Teal) Current gold

Just set the "point-value" of the units to half their average bounty in object editor and replace Player 3 teal with whatever player ur trolls are set to.
If ur players can gain gold in a way other than slaying enemies u will have to make a separate trigger to share that with the trolls.
 

Dymetreus

New Member
Reaction score
1
as long as most of ur gold is by killing enemy monsters and the purpose is that

You can do this with
Trigger:
  • Untitled Trigger 001
    • Events
      • Unit - A unit Dies
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Owner of (Killing unit)) Equal to Player 1 (Red)
          • (Owner of (Killing unit)) Equal to Player 2 (Blue)
    • Actions
      • Player - Add (Point-value of (Unit-type of (Triggering unit))) to Player 3 (Teal) Current gold

Just set the "point-value" of the units to half their average bounty in object editor and replace Player 3 teal with whatever player ur trolls are set to.
If ur players can gain gold in a way other than slaying enemies u will have to make a separate trigger to share that with the trolls.

That sounds like what I was looking for, thanks! I'll give it a shot and tell you how it goes. It's working out well! Thank you so much for this, for awhile I thought it would be impossible to end up doing it the way I wanted to, I'm very appreciative for your effort.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      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