- Joined
- Aug 14, 2019
- Messages
- 170
- Reaction score
- 19
- First Language
- English
- Primarily Uses
- RMMV
Background:
I have a skill that damages all enemies, and the end state would be to use the average of the damage dealt to the enemy party to recover the actor's party via a common event.
Example:
Let us say that two enemies from a battle received damage from the skills using the following numbers for simplicity's sake: enemy 1 received 1,500 damage; enemy 2 received 1,000 damage. Then, using the average of 1,250 damage, the party would receive 1,250 in healing.
I know this can be done by setting a variable equal to a script (average damage to the enemy party), but I do not know how to write the said script. Community assistance is appreciated.
I have a skill that damages all enemies, and the end state would be to use the average of the damage dealt to the enemy party to recover the actor's party via a common event.
Example:
Let us say that two enemies from a battle received damage from the skills using the following numbers for simplicity's sake: enemy 1 received 1,500 damage; enemy 2 received 1,000 damage. Then, using the average of 1,250 damage, the party would receive 1,250 in healing.
I know this can be done by setting a variable equal to a script (average damage to the enemy party), but I do not know how to write the said script. Community assistance is appreciated.
Last edited: