- Joined
- Aug 4, 2024
- Posts
- 6
Hello there, dear EeveeExpo community!
The long title pretty much says it all:
I want to throw the player instantly into my first map when there is no existing save game in Essentials v21.1.
When the player watched the opening cutscene, gets control and saves the game for the first time the original behaviour should be restored, which means the splash screens appear, the title screen appears and the new game / continue menu appears when he restarts the game.
How can I do that?
My first idea was to wrap parts of the code with a check whether a specific switch (e.g. switch 146) which i set in the opening cutscene is set, e.g. in "Data/Scripts/016_UI/001_Non-interactive UI/001_UI_SplashesAndTitleScreen.rb" i changed
to
to skip the splash screens, but the $game_switches array is still nil at this point in the program flow.
How can I make the player load directly into the first map only on the first start?
I hope you all have a wonderful day.
Best regards,
Sirius GG
The long title pretty much says it all:
I want to throw the player instantly into my first map when there is no existing save game in Essentials v21.1.
When the player watched the opening cutscene, gets control and saves the game for the first time the original behaviour should be restored, which means the splash screens appear, the title screen appears and the new game / continue menu appears when he restarts the game.
How can I do that?
My first idea was to wrap parts of the code with a check whether a specific switch (e.g. switch 146) which i set in the opening cutscene is set, e.g. in "Data/Scripts/016_UI/001_Non-interactive UI/001_UI_SplashesAndTitleScreen.rb" i changed
Ruby:
def initialize(viewport = nil)
super(viewport)
@pic = addImage(0, 0, "")
@pic.setOpacity(0, 0) # set opacity to 0 after waiting 0 frames
@pic2 = addImage(0, 0, "") # flashing "Press Enter" picture
@pic2.setOpacity(0, 0) # set opacity to 0 after waiting 0 frames
@index = 0
if SPLASH_IMAGES.empty?
open_title_screen(self, nil)
else
open_splash(self, nil)
end
end
to
Ruby:
def initialize(viewport = nil)
super(viewport)
@pic = addImage(0, 0, "")
@pic.setOpacity(0, 0) # set opacity to 0 after waiting 0 frames
@pic2 = addImage(0, 0, "") # flashing "Press Enter" picture
@pic2.setOpacity(0, 0) # set opacity to 0 after waiting 0 frames
@index = 0
if SPLASH_IMAGES.empty?
open_title_screen(self, nil)
else
if $game_switches[146] == false
open_title_screen(self, nil)
else
open_splash(self, nil)
end
end
end
to skip the splash screens, but the $game_switches array is still nil at this point in the program flow.
How can I make the player load directly into the first map only on the first start?
I hope you all have a wonderful day.
Best regards,
Sirius GG