I've found tutorials for States such as Doom, but that's not quite what I'm looking for. What I'm trying to figure out is something similar to, say, if Poison had a small chance to inflict an instant kill with every damage tick. I figured I could use Yanfly's State Categories to keep it form being broken in boss battles, but I'm having trouble figuring out the roll for chance note tag. Any thoughts or suggestions on where to look? I'm thinking if there's a similar Lunatic state tutorial I might be able to tweak it, I just haven't stumbled upon anything about a state that has a chance to roll another state.
SOLVED: State With Small Chance To Inflict Death Possible?
RPG Maker MV SupportYou could make an event in the troop page that each turn, it checks if a charecter has the poison state. if the poison state is added, it rolls a variable between 0 and X. Then make a conditinal branch were if the variable is X, it applies the death state to the charecter. You might need to make a variable for each party member to do this
I'd suggest Yanfly's Buffs & States Core, maybe a notetag something like this on your state?
Code:
<Custom Regenerate Effect>
if (Math.random() < 0.05) { // 5% chance
user.addState(1); // add death state
}
</Custom Regenerate Effect>
I just tested this out and it works perfectly, thank you! <3
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/solved-state-with-small-chance-to-inflict-death-possible.113510/