pktpaladin
Member
This one's a fairly simple request, but I'm nonetheless appreciative of whoever provides me some direction with it.
Basically, I want to create a script that, when a particular weapon is equipped or when a particular status effect is inflicted, the damage that a character causes gets reversed. If the character ordinarily did 149 points of damage, the script would flip the numbers to inflict 941 points of damage instead. This would preferably only happen about 20% of the time (with an adjustable probability).
If I'm not mistaken, this can be done fairly easily by creating a string from the damage, converting the string to an array, and doing a for loop to flip each character. Ruby probably has an easier way to do it, but even if so, I would have no idea of how to actually import it into the battle system and set the while weapon[1] equipped condition.
Thank you in advance !
Basically, I want to create a script that, when a particular weapon is equipped or when a particular status effect is inflicted, the damage that a character causes gets reversed. If the character ordinarily did 149 points of damage, the script would flip the numbers to inflict 941 points of damage instead. This would preferably only happen about 20% of the time (with an adjustable probability).
If I'm not mistaken, this can be done fairly easily by creating a string from the damage, converting the string to an array, and doing a for loop to flip each character. Ruby probably has an easier way to do it, but even if so, I would have no idea of how to actually import it into the battle system and set the while weapon[1] equipped condition.
Thank you in advance !