Hi! I am hoping someone can help me out by writing a script for me. Essentially, i want one of the characters in my game to have a skill that when their hp reaches zero, they either
a) are randomly revived with 1 hp and automatically do 1 final attack for crit damage against all enemies and then their own hp is reduced to 0.
or
b) upon death, the character will randomly do 1 final attack for crit damage against all enemies.
In either case, whichever is easier to do. any help is much appreciated as i have zero scripting knowledge.
Thanks in advance!