Chaos Project

RPG Maker => RPG Maker Scripts => Script Troubleshooting => Topic started by: Viviatus on February 15, 2009, 11:50:00 am

Title: State not included
Post by: Viviatus on February 15, 2009, 11:50:00 am
I've been meesing around with another script, whereas an actor learns new skills when a certain status is applied [self.states.include?(n)].
Easy. But is it possible to say the opposite as well? self.states.not_include(n)? Would be cool if there was something like this. Doesn't have to be exactly that just anything similar will do.
Title: Re: State not included
Post by: Viviatus on February 15, 2009, 11:57:38 am
nevermind... I did it myself :-P

:resolved:
Title: Re: State not included
Post by: Blizzard on February 15, 2009, 12:13:52 pm
"!self.states.include?(n)" or "not self.states.include?(n)". xD
Title: Re: State not included
Post by: Viviatus on February 15, 2009, 12:28:27 pm
Oh? Well... I wrote a small method to have the same effect xD

def not_include

See? I am silly! :-P