I was wondering if there is a way to make it in script to give a player exp.
I wrote my own custom code for ork to link to my custom 2d controller and in my code I manually deal damage to the enemy during a real time combat. For some reason the enemy dies using the orkframework death system, but the exp is not being given to the combatant. So is there a way to manually give exp in code using the api.
You can manually give exp by adding the value to the combatant's status value of the exp:
combatant.Status[id].AddValue(exp, false, false, true, false, true, true, null);
id is the ID/index of the status value, exp the experience that should be added (int value).
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
For real time battles using the Real Time Battle Area component how would I add exp to a player on the death of an enemy.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
I am not sure what else I could be missing. If I do the exp gain by code it works in reading the enemies exp stats.
Might be that the gains are collected, but just not shown.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!