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.

Need help, a little rusty...

Kio

Member

I'm working on scripting again, but at a loss at the moment.

If anyone could help me, i'd like to save the folowing to variables, or isolate what funtions determine these factors:

Party members incapacitated in battle
turns spent in battle

thank you for your time.
 
turns spent in battle -- $game_temp.battle_turn

Party members incapacitated
Code:
class Game_Party
  def unable_action_members
    array = []
    for actor in @actors
      array << actor if actor.restriction == 4
    end
    return array
  end
end

(Item number 89 for my extra methods)
 

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