I'm designing a combat system where you still get partial XP if an event flees or surrendering, as opposed to defeating them normally.
So far, I know I can use a script to add exp when one of these events are triggered. However, I'd like to be able to lump it in with the XP gained at the end of the battle on the same screen.
This also presents another problem because if all enemies flee, the battle end automatically, but if still like to get a victory screen with partial XP awarded.
So as an example, say you're fighting two slimes. If you kill both, you get a victory screen awarding 10 XP. If you kill one and let the other escape, you get a victory screen awarding 7 XP. If both escape, you get a victory screen awarding 4 XP.
So far, I know I can use a script to add exp when one of these events are triggered. However, I'd like to be able to lump it in with the XP gained at the end of the battle on the same screen.
This also presents another problem because if all enemies flee, the battle end automatically, but if still like to get a victory screen with partial XP awarded.
So as an example, say you're fighting two slimes. If you kill both, you get a victory screen awarding 10 XP. If you kill one and let the other escape, you get a victory screen awarding 7 XP. If both escape, you get a victory screen awarding 4 XP.