Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: Echo Nine on February 27, 2014, 01:05:35 am

Title: Tweaking a Script [XP]
Post by: Echo Nine on February 27, 2014, 01:05:35 am
Hey guys. I am working on a game that uses the basic combat system from pokemon. You can have one creature (they are called Manifestations in the game) out on the field to battle one or more enemies at one time. I can use the default combat system with this script http://forum.chaos-project.com/index.php/topic,116.0.html (http://forum.chaos-project.com/index.php/topic,116.0.html) to make it so you cannot have more than one creature out on the field. The only problem I have so far is that if your monster out on the field 'dies' (known as fading away), you lose the game rather than opening the party menu to switch to a creature who is alive. I am looking for someone who can add to the script or create a script to go along with the one I linked that will check if anyone in the party is alive once the creature on the field dies, if so then open the menu. If not then game over.

You can check the forum if you think I didn't ask for his help to create this. He said I will have to find someone else to create a script for it.

Thank you for your time :).

PS: I have looked into using the Pokemon pack you can download and found it quite complex to cut out the part I am looking for.
Title: Re: Tweaking a Script [XP]
Post by: WhiteRose on February 27, 2014, 02:56:34 am
Hmm....

If you start a battle through an event command, there's an option not to end the battle upon player death. It does return you to the map, though. You'll still probably need a custom script, but that might at least give someone a head start if they want to reuse some of that code.
Title: Re: Tweaking a Script [XP]
Post by: Echo Nine on February 27, 2014, 03:34:35 am
Oh I didn't think of that. I'll stick to this happening for now but as soon as someone is able to make a script for me let me know asap. :)
Title: Re: Tweaking a Script [XP]
Post by: chaucer on March 06, 2014, 05:12:53 pm
So you want it to call party switcher when you die instead of game over? Or did I get it wrong. I can't test cause my PC is currently torn apart (waiting for parts to come in hopefully soon n_n). Try adding this to your battle system not sure exactly where I don't know what battle system your using and or if this would work might need a little editing.

       if $game_party.actors[0].hp == 0
          unless  $game_party.actors.size < 2 && $game_party.all_dead?
            $scene = Scene_PartySwitcher.new
             $game_player.refresh
          else $scene = Scene_Gameover
              end
        end