Need help in creating dynamic expierience system

Ouguiya

New Member
Reaction score
11
Hello everyone!

As the title suggests, I am in need of help for a system which makes expierience gain dynamic.

Here is the problem:

In my map (a footmen type map) every player can have 0-xx heroes (I don't think any player will ever have more than 3 or so, but who knows), and every team has 3 players.

This leads to the following problem: Taking a hero is not required, which leads to the stupid situation that players with more heroes gain less expierience than players with more heroes.

Trying to regulate this, you can make it so that if the team has less heroes, it gains less expierience.

This however reverses the situation when one or more players are absent from the game, but have heroes, which leads to the situation that one player gains a lot of expierience.

Global expierience distribution is not a solution, since it leads to the problem that heroes can simply stay behind and gain a lot of expierience, which they shouldn't.

Sadly, I have no further ideas on how to make it that a hero ALWAYS gets the same amount of expierience, no matter with how many he has to "share".

If anyone has any ideas on this, I would appreciate your thoughts.

Thanks in advance!

Yours,

Ouguiya
 

Faust

You can change this now in User CP.
Reaction score
123
What "ideas" exactly are you looking for?

You said what you want to do.

What's stopping you?

Whenever a unit dies, group the nearby heroes and give them some experience.
 

Ouguiya

New Member
Reaction score
11
Hmmm, so you are saying that I should not leave the expierience stuff to the game but rather trigger it all?

Well, it's not a bad idea, but my first problem is that each level gives it's own exp, and this is not calculated mathematically, because the distribution has to be uneven.

With this, (unless I am wrong) I would either need to:

-Do a mathematical regression to approximate the expierience I want as best as possible
-Make 6 If/then/else functions (which are 6 comparisons already), to check which level the dying unit has, and then give the surrounding heroes the appropriate exp.

Also, I don't really know how to go about making a trigger which groups all heroes in a radial circle.


Thanks!

Yours,

Ouguiya
 

Faust

You can change this now in User CP.
Reaction score
123
Pick all units in range of Triggering (Dying) unit matching:
- Matching unit is an enemy of Triggering unit
- Matching unit is a hero.

You don't really need that many if then else lines, just set the creeps' level to what they are supposed to be (object editor), and then all you need is something like this:
Give picked unit 5 + 5 * Level of Triggering Unit xp, show level up graphics.
The only if then else you might need, is to check if the dying unit is a hero, in which case give more xp (probably).

If you want to give more xp to the team with more heroes, then you need to trigger it.
And for that you should create a group called Heroes for example, and put those heroes into the group, so it will be easier to check how many heroes are in the group. 5 + (( 5 * Level of Triggering Unit ) * ( Amount of units in Heroes * .35 ))
 

Ouguiya

New Member
Reaction score
11
Hello again. Thanks for the quick reply.

This would definetly be an idea, but like I said, the expierience I want each hero to gain in respect to the level that the creeps have.

This CANNOT be done mathematically.

For example:

Level 1 - Gain 30 exp

Level 2 - Gain 39 exp

Level 3 - Gain 59 exp

Level 4 - Gain 145 exp

and so on.

You will see that this is in no way approximated via a "x * y" formula.

Still, thanks for your insight (+rep)

Yours,

Ouguiya
 

Ayanami

칼리
Reaction score
288
Hello again. Thanks for the quick reply.

This would definetly be an idea, but like I said, the expierience I want each hero to gain in respect to the level that the creeps have.

This CANNOT be done mathematically.

For example:

Level 1 - Gain 30 exp

Level 2 - Gain 39 exp

Level 3 - Gain 59 exp

Level 4 - Gain 145 exp

and so on.

You will see that this is in no way approximated via a "x * y" formula.

Still, thanks for your insight (+rep)

Yours,

Ouguiya

Hmm, try using a If, then,else condition to check the level of the dying creep and give the EXP accordingly?
 

Ouguiya

New Member
Reaction score
11
Hmm, try using a If, then,else condition to check the level of the dying creep and give the EXP accordingly?

Hello !

Well, that is just the problem:

In my map, there are 6 different unit levels. Which would mean that every time a unit dies, the map has to evaluate 6 integer conditions (at most). Since in every game between 200-1300 units die, this would mean that in the worst caste, the game has to perform 7800 integer comparisons, for units alone. And then we still have to check if the dying unit is a hero, which I cannot help but feel will cause an incredible lag.

Still, this idea is the best I could find until now. The only other alternative I would have is to try to use a mathematical formula which gets as close to the values I use as possible, and use this.

Anyway, thanks for all your help, I hope that this will lead to the long-sought after solution in my case of how to make it so the experience distribution is indifferent to the amount of heroes in the game.

Thanks, and so long!

Yours,

Ouguiya
 
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