Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

disabling & enabling a command

OK I've got it to where my custom made "Limit" command is disabled under certain conditions (such as a switch being on or off) But I can't activate their limit with a switch because that would mean if one character got their limit, everyone's "limit" command would become active instead of just that charatcer. It seems like I would have to define limit and do something like if actor.limit == true but I don't know how I'm supposed to define limit. I tried making a new state called limit and tried this: if @states != nil && $data_states[state_id].actor.state_set.include?(17) but it didn't work (it didn't give me an error though). Any idea's???
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top