Change Enemy Dialogue after dying?

Hi everyone.


So i've been looking around google for this type of script and only found one...


for vx...


Basically, I am looking for a script (If I can I will gladly do this with Common events) that will allow me to track how many times the player has died and use it in a conditional branch. So that everytime a player dies to a boss they'll say something different. Example:


(First Time)


"Blah Blah Blah here we go Blah Blah Blah"


(Second Time)


"Blah Blah Blah Time to die Again"


If you have played the Undertale Genocide route and died to Sans you'll understand what I mean.


Any help would be greatly appreciated.
Just realized I posted this late at night. BUMP
Noobstar, please do not bump your topic unless it has been 72 hours later since your last post. You can review our forum rules here. Thank you.
My apologies.
There is a script that can help you do this! It can even do the thing Undertale does with remembering what you've done in past save files without actually saving, and it's called the global save script. I'm actually making a fangame with this implemented in it, too. Here's the link!


Basically, all you do is go into the script and set a variable that you want to stay the same even if you create a new game. It'll create a brand new file called "Global.rvdata2" and it'll store all that information. And to have it save, all you have to do is change that variable and input a script command that says "global_save", and you're done!


Have fun! 😀
There is a script that can help you do this! It can even do the thing Undertale does with remembering what you've done in past save files without actually saving, and it's called the global save script. I'm actually making a fangame with this implemented in it, too. Here's the link!


Basically, all you do is go into the script and set a variable that you want to stay the same even if you create a new game. It'll create a brand new file called "Global.rvdata2" and it'll store all that information. And to have it save, all you have to do is change that variable and input a script command that says "global_save", and you're done!


Have fun! 😀

YOU ARE A LEGEND!
There is a script that can help you do this! It can even do the thing Undertale does with remembering what you've done in past save files without actually saving, and it's called the global save script. I'm actually making a fangame with this implemented in it, too. Here's the link!


Basically, all you do is go into the script and set a variable that you want to stay the same even if you create a new game. It'll create a brand new file called "Global.rvdata2" and it'll store all that information. And to have it save, all you have to do is change that variable and input a script command that says "global_save", and you're done!


Have fun! 😀

It works! Yay! Definitely putting you in the special thanks in the credits of my game! 
For some reason I am getting this error when trying to save after a cutscene.

Untitled.png
Wherever it's trying to save to probably has a permissions issue - are you the admin on your computer?  Do you know where it's trying to make the save file?  You don't have your project saved in Program Files or something like that, do you?


Also check the forum rules on double posting - you've posted 3 times in a row in the last 10 hours.
Wherever it's trying to save to probably has a permissions issue - are you the admin on your computer?  Do you know where it's trying to make the save file?  You don't have your project saved in Program Files or something like that, do you?


Also check the forum rules on double posting - you've posted 3 times in a row in the last 10 hours.

Well I actually just figured out the problem. My computer had crashed while playtesting and i believe that was causing the error. I moved it into a new project and it works fine now. And for the double posting thing. I'll check the forum rules so I don't make more mistakes.
You NEED to read this @Noobstar You don't wanna live up to your name, in that way 😉

Original thread: https://forums.rpgmakerweb.com/threads/change-enemy-dialogue-after-dying.64920/