Guaranteed escape

Some time ago I was told that if I wanted to ensure that the player could escape, then the change to the default script was as follows:


Script BattleManager


line 224


change       @escape_ratio += 0.1


to read        @escape_ratio += 1


 However, in playtesting there are occasions when escape is not successful.




Does anyone know what I can do about this?


Thanks.
A couple of lines above (219) have you tried changing


success = @preemptive ? true : (rand < @escape_ratio)


to


success = true




That is what I would try first.


*hugs*


 - Zeriab
I've put that in and I'll see what happens in playtesting.  As it is a rare, random, occurrence, I may have to wait a while before I can be sure that it has worked.


Thanks
I think Zeriab's way would work.


The reason your original approach of @escape_ratio += 1 would not work is because this is adding to the escape chances (or perhaps adding to a multiplier that affects escape chance, I forget which) each time you fail to escape.  So that mod would greatly increase the chance to escape once you've failed at least once, but would do nothing to your first attempt.
@Wavelength Thanks for the explanation, that makes a lot of sense.


@Zeriab I've now tested this multiple times, standing in front of some poor grunt who never gets to see any action.  Never once did I have any problems, so I think we can count this as a success.


Thank you.


Closing

Original thread: https://forums.rpgmakerweb.com/threads/guaranteed-escape.70780/