I'm basically finished with my game. After the final boss dies there is a game over text box. Now I want to make the game actually end and the player is thrown to the menu.
According to the wiki, the only way to do that is through plot scripting. Is this true or is there another way?
Ending A Game
Moderators: Bob the Hamster, marionline, SDHawk
The only other way is to kill the player.
(edit) I mean the player character
(edit) I mean the player character
Last edited by Mogri on Sun Sep 26, 2010 12:48 am, edited 1 time in total.
- Bob the Hamster
- Lord of the Slimes
- Posts: 7660
- Joined: Tue Oct 16, 2007 2:34 pm
- Location: Hamster Republic (Ontario Enclave)
- Contact:
Fortunately the script to do this is super-simple.
When you have compiled and imported it, you can attach it to your text box.
Code: Select all
include, plotscr.hsd
script, end the game, begin
game over
end script
- Willy Elektrix
- Liquid Metal Slime
- Posts: 910
- Joined: Sun Aug 15, 2010 11:30 pm
Thanks so much!James Paige wrote:Fortunately the script to do this is super-simple.
When you have compiled and imported it, you can attach it to your text box.Code: Select all
include, plotscr.hsd script, end the game, begin game over end script
One thing hung me up until I read the plotscripting tutorial on the wiki. The code you gave me throws back an error unless you fix it like this:
Code: Select all
include, plotscr.hsd
plotscript, end the game, begin
game over
endscript
I don't have any music, but I don't have the means or knowledge to write MIDIs and I'd rather have silence than use unoriginal music. Maybe in the future.
Last edited by Willy Elektrix on Sun Sep 26, 2010 8:56 pm, edited 1 time in total.