04-24-2013, 08:16 PM
Sure is! Here is an example of how to do it;
Just add remove_state(i) inside the if statements. This will remove the state whenever its effect activates.
Code:
# Halve damage if element is protected
if $data_states[i].guard_element_set.include?(element_id)
result /= 2
remove_state(i)
end