Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
TriforceChosen

How to make a Petrified State?

Question

OK, so I have everything in place for this except if the entire party is petrified, the battle still goes... I would like to make it to where the battle ends if this happens... how can I do this?

 

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Tell me if this works as I kind of just winged it :oops:  :

module ACE
	Petrified_State_ID = 26
end
class Game_BattlerBase
  #--------------------------------------------------------------------------
  # * Determine Petrification
  #--------------------------------------------------------------------------
  def petrified?
    exist? && state?(ACE::Petrified_State_ID])
  end
end
class Game_Unit
  #--------------------------------------------------------------------------
  # * Get Array of Petrified Members
  #--------------------------------------------------------------------------
  def petrified_members
    members.select {|member| member.petrified?}
  end
  #--------------------------------------------------------------------------
  # * Overwrite: Determine Everyone is Dead
  #--------------------------------------------------------------------------
  def all_dead?
    alive_members.empty? || petrified_members
  end
end

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...