Would it be possible to display a message on the game over screen using scripts? I could probably use a common event, but it would be incredibly tedious and I'd like to do it with scripts if possible.
Game Over Message?
RGSS3 Script RequestsYou could just create that as an image and replace the Gameover image then, the Game Over image is located in Resource Manager -> System. I actually did that for a placeholder, just had what you see on screen show up via images in game, took a screenshot of it, saved it as the Gameover file, then replaced the default in system.
I know, but it'd be cool to have the transition with it.
If you mean the usual Game Over transistion when you die, that is still there. See the engine only shows what is saved as the Game Over image in that spot I mentioned, so you can replace that with whatever you want and it will show that instead.
Sorry, I only just realized how unclear my phrasing was. I meant the animation with the text box with the typewriter-esc animation.
Oh. Yeah that would take a script to do it, sadly. Let me move you to script requests.
Ruby:
module R2_Dead_Message
Fallen_Message = "Tsk, and you had so much potential"
end
class Scene_Gameover < Scene_Base
alias r2_game_over_start start
def start
r2_game_over_start
create_message_window
end
def create_message_window
@message_window = Window_Message.new
$game_message.background = 2
$game_message.add(R2_Dead_Message::Fallen_Message)
end
def update
super
if !$game_message.busy?; goto_title; end
end
end
Sorry about the delayed response, but it works, so thank you!!!
Late to the party, but! if you wantted more advanced message features (Branching text for different game overs, you can consider editing a script like Roninator's resource to call a common event script within Scene_Gameover. Or, have an array within Fallen_Message and control what message shows up with a variable number 😀
@zeroscares could you show me an example how to do it with a variable? Or how to call a common event?
Replace
$game_message.add(R2_Dead_Message::Fallen_Message)with
$game_message.add($game_variables[1]). (You could specify the variable number in the module if you want clean code)You can then define string to your variable before triggering Game Over (I used variable 1):
$game_variables[1] = "hello world"For the common event method, you could use https://himeworks.com/2013/03/scene-interpreter/ or something like it. Define a common event to load with
$game_temp.reserve_common_event(1) and you can add conditionals or case statements within Scene_Gameover if you want different common events to load for different casesOriginal thread: https://forums.rpgmakerweb.com/threads/game-over-message.131536/