Can I cheat Death? Or, how to disable 'Game Over' after party demise in encounter battle.

Jernau Gurgeh

Villager
Member
Joined
Jun 2, 2014
Messages
22
Reaction score
4
First Language
English
Primarily Uses
I'm starting work on my initial project in RPMVXa which is going to be a personalised RPG-lite adventure featuring my young nieces & nephews - all 8 of them.

The limited amount of combat will be event-based, skipable and there's no death - if everyone in the party gets knocked out ('dies') in an evented battle, they will just get a bad luck message and maybe lose some cash and/or XP, and they'll have to wander off to an inn to recuperate, find a healing pool or spam some potions etc etc.

However, I have thought about offering the option for the older kids to enable random encounters too, and also jack up the RPG elements a bit, but I still don't want 'death' and the Game Over screen to be an issue. I've looked all over but can't find a satisfactory solution to this. I don't think Yanfly's Death Common Events script would handle this, or the default Immortal state, and it's probably not practical to set conditions on ALL troops for ALL party members regarding what to when their HP=0.

Does anybody know how I can manage this?

Thanks!
 
Last edited by a moderator:

Jernau Gurgeh

Villager
Member
Joined
Jun 2, 2014
Messages
22
Reaction score
4
First Language
English
Primarily Uses
Thanks for the suggestion, but that's for evented battles, which I have worked out how to do. What I'm wondering is how do I achieve the same thing for all random encounter battles?
 
Last edited by a moderator:

RyokuHasu

Developer
Veteran
Joined
Jun 23, 2012
Messages
274
Reaction score
37
First Language
English
Primarily Uses
Then it's time for some Scripting!

Open up the script editor and find the "BattleManager" script.

use Ctrl+F to find "Defeat Processing"

Then a few lines down replace

SceneManager.goto(Scene_Gameover)with

revive_battle_membersreplay_bgm_and_bgsSceneManager.returnnow it is impossible to get a Game Over from ANY BATTLE, EVER!
 
Last edited by a moderator:

Jernau Gurgeh

Villager
Member
Joined
Jun 2, 2014
Messages
22
Reaction score
4
First Language
English
Primarily Uses
Hacking the main game scripts? I like it! It's just like when I started out as PHP 'developer' - hands-on is how you learn best methinks!

It works a treat, and I'm sure I'll have a go at hacking away at it from there to include some kind of message saying "You loser!" and rob them of some XP and gold. Actually, I sort of get the gist of the code and so might see if I can rewrite (overwrite?) the whole Defeat Processing script to suit my needs.

Many thanks RyokuHasu :)

UPDATE: Wow. I've just created my first script that replaces a default script, on my third day of using RMVX Ace. How exciting!
 
Last edited by a moderator:

RyokuHasu

Developer
Veteran
Joined
Jun 23, 2012
Messages
274
Reaction score
37
First Language
English
Primarily Uses
it's not hacking it's editing/scripting. please don't use such terms for my profession.

And congrats on your achievement.
 

Jernau Gurgeh

Villager
Member
Joined
Jun 2, 2014
Messages
22
Reaction score
4
First Language
English
Primarily Uses
it's not hacking it's editing/scripting. please don't use such terms for my profession.

And congrats on your achievement.
Apologies! I've always referred to it as 'hacking' when I'm adding to, editing or otherwise messing about with someone else's code - usually PHP code in the content management systems of the websites I work on to make it do what I (or my clients) need it to do. But I'll refrain from using the term here :)
 

Mouser

Veteran
Veteran
Joined
Aug 19, 2012
Messages
1,245
Reaction score
264
First Language
English
Primarily Uses
So you know - you should copy the script, paste it down below materials and put your changes there.

Leave the original untouched up where it was. The game will use whichever code is lower down in the stack.
 

Jernau Gurgeh

Villager
Member
Joined
Jun 2, 2014
Messages
22
Reaction score
4
First Language
English
Primarily Uses
So you know - you should copy the script, paste it down below materials and put your changes there.

Leave the original untouched up where it was. The game will use whichever code is lower down in the stack.
Thanks, I've already worked that out. I'm currently working on the script to increase HP and reduce XP and gold according to settings earlier on in the script - allowing the script user to define set amounts or percentages or maybe even dependent upon level. I think I'm possibly getting a bit carried away with this though. ;)
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


Is this resolved then?
 

Jernau Gurgeh

Villager
Member
Joined
Jun 2, 2014
Messages
22
Reaction score
4
First Language
English
Primarily Uses
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.Is this resolved then?
Yes, thank you.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:

Forum statistics

Threads
105,854
Messages
1,016,998
Members
137,562
Latest member
tamedeathman
Top