State not included

Started by Viviatus, February 15, 2009, 11:50:00 am

Previous topic - Next topic

Viviatus

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.

Viviatus

nevermind... I did it myself :-P

:resolved:

Blizzard

"!self.states.include?(n)" or "not self.states.include?(n)". xD
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Viviatus

Oh? Well... I wrote a small method to have the same effect xD

def not_include

See? I am silly! :-P