Request - status effect Lucky Immune

This request is for a status effect that when active, if the player is inflicted with a negative status effect they have a chance (defined in note tag) to have a positive status effect applied instead.


The tag could be set up like


<lucky_immune:50%>


<lucky_negative_states: 3,4,5>


<lucky_positive_states: 2,10,11>


Where 3,4,5 are bad states (like poison) and 2,10,11 are good states (like regen or MP cost down).

Original thread: https://forums.rpgmakerweb.com/threads/request-status-effect-lucky-immune.62730/