So i made a skill called rapture and every time you cast that skill you have 50% chance to die,
but the problem is i dont know how to make it work like that.
Do i need a script or something,can somone tell me please.
Thanks and sry on my bad english.
make the skill call a common event and put this snippet in the script call command of the common event,
(rand > 0.5) ? BattleManager.actor.hp -= 9999 : nilNot tried, should work.
As an addendum to the above, you can do something similar in the formula box of the skill. If you do it in the formula box it would look like ■ ᴆᴈᴋᴉᴦᴀ ■'s code, except that BattleManager.actor.hp would become a.hp.
Yeah using custom formulas for the skills is the way to go if you are using VX or VXAce. It's amazing what you can do in the skill formula box 🙂
Yea, I usually just put mega simple things there too, like '100', but then again, I code in thousands of lines worth of modifications too, so... 😛