Script Name : TSE-RemoveOnActions
Version : 1.0
Author : privateWright, privateer, or private (Either of them is fine...)
Introductions :
Hello, everyone at RRR!

Consider this as my registration gift.
This script will enable you to create states that will be removed once the bearer takes an action, whether it’s an attack, a skill, or an item. So, for example, if you are inflicted with a state, let's call it "Focus", that will enchance the bearer's next attack, it will be removed once the bearer attacks or use any actions.
Screenshots :
None needed.
Demo :
None needed.
Script :
CODE
#==============================================================================
# Theta Scripting Engine - Remove On Actions by privateer
#==============================================================================
# ► Version : 1.0
#==============================================================================
# ► Introduction
# This script will enable you to create states that will be removed when the
# bearer takes an action, whether it's an attack, skill, or item.
#==============================================================================
# ► Instruction
# Just put this script anywhere below Scene_Debug but above Main.
#==============================================================================
# ► Compatibility
# Designed and tested for DBS. May or not work with exotic CBS.
#==============================================================================
module TSE
module RemoveOnActions
# Just put any state id(s) that you want in the array.
# Don't forget to use comma for multiple entries!
ROA_STATES = [13, 17]
end
end
#==============================================================================
# DON'T EDIT ANY FURTHER UNLESS YOU KNOW WHAT YOU'RE DOING!
#==============================================================================
$imported = {} if $imported.nil?
$imported["TSE-RemoveOnActions"] = true
class RPG::State
include TSE
include RemoveOnActions
def remove_on_actions?
return ROA_STATES.include?(id)
end
end
class Game_Battler
alias tse_remove_on_actions_attack_effect attack_effect
def attack_effect(attacker)
for state in attacker.states
attacker.remove_state(state) if $data_states[state].remove_on_actions?
end
tse_remove_on_actions_attack_effect(attacker)
end
alias tse_remove_on_actions_skill_effect skill_effect
def skill_effect(user, skill)
for state in user.states
user.remove_state(state) if $data_states[state].remove_on_actions?
end
tse_remove_on_actions_skill_effect(user, skill)
end
alias tse_remove_on_actions_item_effect item_effect
def item_effect(user, item)
for state in user.states
user.remove_state(state) if $data_states[state].remove_on_actions?
end
tse_remove_on_actions_item_effect(user, item)
end
end
Or, for those who rather download it :
Here!Compatibility : Designed and tested for DBS. May or not work with exotic CBS.
Author Noted : I hope I will be welcomed at this forum. So, enjoy it, everyone!
-privateWright