Changeable title screen
Moderators: marionline, SDHawk
Changeable title screen
I had an idea to make a title screen that changes as you progress through the story of a game (like in "Spec Ops: The Line" for example). I tried to do this via tags and variables, but the are turning on only when i load the saved game . So is there a way to make tags load as you launching the game?
sorry for bad english
- Bob the Hamster
- Lord of the Slimes
- Posts: 7658
- Joined: Tue Oct 16, 2007 2:34 pm
- Location: Hamster Republic (Ontario Enclave)
- Contact:
This is a bit tricky, but possible.
So first you should disable the default title screen and load screen.
That means that as soon as your game starts up, it will immediately start a new game and run your "on new game" script.
That new game script can display the title screen, and then show a menu that can either really start a new game, or open the "load game" screen.
As for detecting what has happened in your save slots, you can do this with the "import globals" command. It can fetch a single global variable from a save slot, and you can check that variable to see what events have happened in the save.
So first you should disable the default title screen and load screen.
That means that as soon as your game starts up, it will immediately start a new game and run your "on new game" script.
That new game script can display the title screen, and then show a menu that can either really start a new game, or open the "load game" screen.
As for detecting what has happened in your save slots, you can do this with the "import globals" command. It can fetch a single global variable from a save slot, and you can check that variable to see what events have happened in the save.
Have a look at the How do I add screens before my title game screen? and
How do I make an animated title screen? articles. You can adapt what you'll learn by reading them. Probably a bit of redundancy between them...
In addition to import globals you will also need "export globals".
How do I make an animated title screen? articles. You can adapt what you'll learn by reading them. Probably a bit of redundancy between them...
In addition to import globals you will also need "export globals".
Last edited by TMC on Tue May 22, 2018 9:04 am, edited 1 time in total.
Thanks, i'll try it . But I have a fev more questions.
1. How can i download the Plotscripting Dictionary website to my hard drive, so i could use it offline?
2. Is this possible to turn off the walking battle sprites in load game menu? Or even better, to make the walking walkabout sprites or at least hero portraits.
1. How can i download the Plotscripting Dictionary website to my hard drive, so i could use it offline?
2. Is this possible to turn off the walking battle sprites in load game menu? Or even better, to make the walking walkabout sprites or at least hero portraits.
Last edited by Gaplan on Tue May 22, 2018 10:07 am, edited 1 time in total.
sorry for bad english
The Plotscripting Dictionary *is* already on your harddisk! Check the docs folder in the OHRRPGCE folder.
You can actually replace the hero graphics in the load/save menu. A few games have done that. It can be accomplished by temporarily changing the hero graphics to something else before calling the "save menu" command, and then changing it back immediately after "save menu" and also in the on-load script.
You will need to make a copy of the portrait or walkabout spriteset you want to use as a hero battle spriteset. Then use the "set hero picture" command. Something like:
You need to always call this script instead of using the builtin Save option in a menu.
On-load script is quite simple:
Oh, and here's another useful script for you to look at for your titlescreen: https://www.slimesalad.com/forum/viewto ... 713#127713
You can actually replace the hero graphics in the load/save menu. A few games have done that. It can be accomplished by temporarily changing the hero graphics to something else before calling the "save menu" command, and then changing it back immediately after "save menu" and also in the on-load script.
You will need to make a copy of the portrait or walkabout spriteset you want to use as a hero battle spriteset. Then use the "set hero picture" command. Something like:
Code: Select all
plotscript, save, begin
variable(slot)
slot := find hero(hero:bob)
if (slot >= 0 && slot <= 3) then (set hero picture(slot, 42, inside battle)) # Change to crrect hero battle spriteset number
slot := find hero(hero:misa)
if (slot >= 0 && slot <= 3) then (set hero picture(slot, 43, inside battle)) # Ditto
# ETC
save menu
# Restore originals
if (hero by slot(0) <> -1) then (reset hero picture(0, inside battle))
if (hero by slot(1) <> -1) then (reset hero picture(1, inside battle))
if (hero by slot(2) <> -1) then (reset hero picture(2, inside battle))
if (hero by slot(3) <> -1) then (reset hero picture(3, inside battle))
end
On-load script is quite simple:
Code: Select all
plotscript, onload, begin
# Restore originals
if (hero by slot(0) <> -1) then (reset hero picture(0, inside battle))
if (hero by slot(1) <> -1) then (reset hero picture(1, inside battle))
if (hero by slot(2) <> -1) then (reset hero picture(2, inside battle))
if (hero by slot(3) <> -1) then (reset hero picture(3, inside battle))
end
Oh, and here's another useful script for you to look at for your titlescreen: https://www.slimesalad.com/forum/viewto ... 713#127713
Last edited by TMC on Tue May 22, 2018 11:40 am, edited 1 time in total.