How do i change game over ME?

ScoopJohn

The guy who asks too many questions
Veteran
Joined
Sep 6, 2013
Messages
254
Reaction score
33
First Language
Italian
Primarily Uses
RMVXA
Does anyone know how i can change the game over ME by a event?
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
Using pure events, nope you cannot... you'd need to modify the GameOver scene to allow you to change the ME for it
 

seita

Donn_M
Veteran
Joined
Feb 6, 2013
Messages
2,254
Reaction score
611
First Language
English
Primarily Uses
Just tested it. You can use a script call:

$data_system.gameover_me.name = "filename"

replace filename with the name of the ME in the folder. For example "Inn"

edit: You can also change the pitch and volume of the ME with the following:

$data_system.gameover_me.pitch = ##

$data_system.gameover_me.volume = ##
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
wait, what happens if we save the game then quit, then open the game again and load our saved file? Does the changes stay?


AFAIK, $data_system is loaded from the database when the game is opened and isn't part of the save file, so I do think it won't stay after I quit the game. Also, that means that the change will stay as long as I don't quit the game, so if I change it now then return to title and start a new game, it will still use the edited ME.


can't run tests at the moment, so I'm just asking. :)
 
Last edited by a moderator:

Juunanagou

Veteran
Veteran
Joined
Jul 19, 2012
Messages
122
Reaction score
42
First Language
Italian
Primarily Uses
You may delete the default ME from system tag in the database and in the event, when you lose play your ME and then call gameover. For the normal battles, you can do the same, you'll have to select continue even if lose. If victory do nothing, if lose play the one you call default ME and then call gameover. A little boring unless you want to modify it by the script.
 

ScoopJohn

The guy who asks too many questions
Veteran
Joined
Sep 6, 2013
Messages
254
Reaction score
33
First Language
Italian
Primarily Uses
RMVXA
wait, what happens if we save the game then quit, then open the game again and load our saved file? Does the changes stay?

AFAIK, $data_system is loaded from the database when the game is opened and isn't part of the save file, so I do think it won't stay after I quit the game. Also, that means that the change will stay as long as I don't quit the game, so if I change it now then return to title and start a new game, it will still use the edited ME.

can't run tests at the moment, so I'm just asking. :)
I tried this way, but it didn't work when i saved and loaded the game.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Why would you want to change it by an event?

class Scene_Gameover < Scene_Base def play_gameover_music RPG::BGM.stop RPG::BGS.stop $game_system.gameover_me.play endendclass Game_System def gameover_me @gameover_me || $data_system.gameover_me end def set_gameover_me(name, volume=100, pitch=100) @gameover_me = RPG::ME.new(name, volume, pitch) endendcall it using $game_system.set_gameover_me("me_name", 80, 100)

where 80 is volume and 100 is pitch. Both are optional - only the name (without the extension) is necessary.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
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'??

Forum statistics

Threads
105,862
Messages
1,017,045
Members
137,569
Latest member
Shtelsky
Top