TriforceChosen 0 Report post Posted February 5, 2014 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
0 Bigace360 38 Report post Posted February 6, 2014 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
0 TriforceChosen 0 Report post Posted February 21, 2014 Ok so where do I put this? Sorry I am kinda new at javascript Share this post Link to post Share on other sites
0 Bigace360 38 Report post Posted February 21, 2014 uh javascript? :huh2: Dude this is ruby/RGSS3. :annoyed: Read this: http://bigaceworld.wordpress.com/tutorials/how-to-insert-a-script/ Share this post Link to post Share on other sites
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