Pokemon Toxic State

Hi.

Toxic from the Pokemon series does increasing damage over time (6% > 12% 18%). I understand that's done via progressive scripts and Hime's done one, but there may be incompatibility issues with Yanfly. I saw people scripted it for VX Ace here: 





One of the members' code were as follows:


class Game_BattlerBase TOXIC = 2 #ID for toxic status def all_features feature_objects.inject([]) {|r, obj| # ASDTsutarja extra=[] if toxic?(obj) turns = [@state_total_turns[obj.id],7].min rescue 0 print turns extra = obj.features*turns end r + obj.features + extra } end def toxic?(obj) (obj.is_a?(RPG::State))&&(obj.id==TOXIC) end alias oztx_clear_states clear_states unless $@ def clear_states oztx_clear_states @state_total_turns = {} end alias oztx_erase_state erase_state unless $@ def erase_state(state_id) oztx_erase_state(state_id) @state_total_turns.delete(state_id) endend class Game_Battler < Game_BattlerBase alias oztx_reset_state_counts reset_state_counts unless $@ def reset_state_counts(state_id) oztx_reset_state_counts(state_id) @state_total_turns[state_id] = 0 if @state_total_turns[state_id]==nil end alias oztx_update_state_turns update_state_turns unless $@ def update_state_turns oztx_update_state_turns states.each do |state| @state_total_turns[state.id] += 1 end endend



Can anyone convert this (or the other on the page) to MV?
Oh dear. In hindsight, I think this should have been placed in the plugin support section? Not sure :S
Okay I'm trying to delete my topic just now

Edit: I can't figure out how to delete my topic. Help? ._.
You can't delete your topic. Next time you don't need a topic, just report it asking for it to be closed.


However, topics can also be moved to the appropriate section, so that's what I'm going to do for you.
You can't delete your topic. Next time you don't need a topic, just report it asking for it to be closed.


However, topics can also be moved to the appropriate section, so that's what I'm going to do for you.

Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/pokemon-toxic-state.65754/