This script is for states that cancel themselves out when they are used on the same target twice. "I don't understand, what's the point of that," you ask? This video should give you an idea...
Content Hidden
Features
Frog Attacks Aluxes -> Aluxes turns into a Frog
Frog Attacks Aluxes -> Aluxes turns back into himself
Frog Attacks Aluxes -> Aluxes turns into a Frog
Frog Attacks Aluxes -> Aluxes turns back into himself
Frog Attacks Aluxes -> Aluxes turns into a Frog
Frog has epic lulz
How to Use?
It's pretty simple, all you have to do is...
Code:
Toggle_States = [] #<--Put state ID's here
Script
Content Hidden
Code:
#===============================================================================
# ** States : Toggle
#===============================================================================
class RPG::State
#-----------------------------------------------------------------------------
# * Toggle States
#-----------------------------------------------------------------------------
Toggle_States = []
#-----------------------------------------------------------------------------
# * Toggle State
#-----------------------------------------------------------------------------
def toggle_state
Toggle_States.include?(@id)
end
end
class Game_Battler
#-----------------------------------------------------------------------------
# * Alias Listings
#-----------------------------------------------------------------------------
alias_method :togglestates_gmbattler_addstate, :add_state
#-----------------------------------------------------------------------------
# * Add State
#-----------------------------------------------------------------------------
def add_state(state_id, force = false)
# If battler already has state and it is a toggle state
if self.state?(state_id) && $data_states[state_id].toggle_state
# Remove toggle state
remove_state(state_id)
# End method
return
end
# The usual
togglestates_gmbattler_addstate(state_id, force)
end
end
Compatibility
Should be compatible with most scripts, doesn't require SDK or MACL.
Author's Notes
Oh yeah, a big shot out to the homie Victor Sant for inspiring this
script! He wrote it for VX Ace, so I decided to write it for all the
O.G.'s rockin' the XP! Word to yo motha!
Terms and Conditions
Credit is a must or I will take revenge on your soul!