Transfering XP?

Hildagarn

Member
Reaction score
20
Is there a way to transfer the xp one hero gets to another? One of my heroes has a summon. The summons are heroes with their stats based on the caster. but they end up draining xp X( even though their xp gain is disabled.
 

Beetlebomb

New Member
Reaction score
43
You may have to save the xp added up onto a variable, then remove it from the current hero and give it to the other.

Seems simple enough.

Let me know if you need further explanation.

--Beetle
 

Beetlebomb

New Member
Reaction score
43
Assuming that you don't have a bunch of units:

Whenever a unit of a certain type is killed, you add a given amount of XP to the hero and then add that same amount onto a Integer Variable. Once you're ready to have it be transferred, reset the original heroes lvl to 1 with 0 xp, and then add exp to the other hero equivalent to the integer variable(then set the variabloe to 0).

I hope this works through levels though, i haven't tested it. If there's problems, I'm sure I can think of another way.

Hope I've helped,

--Beetle
 

BcBoy

Active Member
Reaction score
6
Trigger:
  • XP Save
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • Set exp = (Hero experience of Hero_Variable)


Normally Heroes only get's xp after killing mobs. If you wanna add exp to a hero via some trigger-event, just add the Set exp line in that trigger to.
 
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