Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: ShadowSaber on January 21, 2011, 04:41:53 am

Title: [Resolved] Gameover Screen Changer
Post by: ShadowSaber on January 21, 2011, 04:41:53 am
Hi everyone

could someone make a gameover screen changer?
example :
I want to use gameover1.png at dungeon 1 and gameover2.png at dungeon 2, etc
Title: Re: [XP] Gameover Screen Changer
Post by: ForeverZer0 on January 21, 2011, 12:04:52 pm
Quote from: ShadowSaber on January 21, 2011, 04:41:53 am
Hi everyone

could someone make a gameover screen changer?
example :
I want to use gameover1.png at dungeon 1 and gameover2.png at dungeon 2, etc


Is there an event for changing the gameover graphic?
I can't remember off the top of my head.

If there is, simply have an event run when the player enters each area to change the graphic. This really doesn't need a script at all. At most it would be a single line script call.
Title: Re: [XP] Gameover Screen Changer
Post by: nathmatt on January 21, 2011, 05:06:49 pm
just put this in a script call
$data_system.gameover_name = 'new name'

so for your example it would be
$data_system.gameover_name = 'gameover1'
Title: Re: [XP] Gameover Screen Changer
Post by: ShadowSaber on January 21, 2011, 09:42:53 pm
@^    I know that, but it will change to default if player exit the game

----edit : ah, I think I can solve that

----edit 2 : and do you know how to change gameover sound too?
Title: Re: [XP] Gameover Screen Changer
Post by: ForeverZer0 on January 21, 2011, 09:48:32 pm
You have to create an instance of an audio file, like this:


$data_system.gameover_me =  RPG::AudioFile.new("ME_FILENAME", VOLUME, PITCH)


Replace the values in all-caps with actual values.
ME_FILENAME = name of the file to play, must be in " " and in the Audio/ME directory
VOLUME = Integer between 0-100
PITCH = Integer between 50-150
Title: Re: [XP] Gameover Screen Changer
Post by: ShadowSaber on January 22, 2011, 03:59:12 am
thanks a lot, foreverzer0  :D
you're a livesaver  :haha: