Hero Gaining Experience equal to Damage?

Status
Not open for further replies.

AllGhilliedUp

A

AllGhilliedUp

How could I make it so that a Hero would gain experience equal to the damage dealt on an enemy?

I've been trying to figure this out for quite some time, and I can't really get it to work in any way. If someone could help me, it would be greatly appreciated. :)
 
Create a damage detection system (here's one of my posts concerning damage detection: Damage Detection).

Change the actions "set event for Trigger" so it points towards the XP-trigger.

Then, in the XP-trigger you can simple use the condition if the attacking unit is a hero and set the action to "add XP to Damage Source: Integer(Damage Dealt).

The "Damage Source" is an event reaction, it can be found in the usual list (with triggering unit, ...).
The "Damage Dealt" is a real (I think) and can also be found in the usual list as an event reaction.

If you need more information, feel free to ask.
 
Status
Not open for further replies.
Back
Top