Ending A Game

Make games! Discuss those games here.

Moderators: Bob the Hamster, marionline, SDHawk

Post Reply
User avatar
Willy Elektrix
Liquid Metal Slime
Posts: 910
Joined: Sun Aug 15, 2010 11:30 pm

Ending A Game

Post by Willy Elektrix »

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?
User avatar
Mogri
Super Slime
Posts: 4669
Joined: Mon Oct 15, 2007 6:38 pm
Location: Austin, TX
Contact:

Post by Mogri »

The only other way is to kill the player.

(edit) I mean the player character
Last edited by Mogri on Sun Sep 26, 2010 12:48 am, edited 1 time in total.
User avatar
Bob the Hamster
Lord of the Slimes
Posts: 7660
Joined: Tue Oct 16, 2007 2:34 pm
Location: Hamster Republic (Ontario Enclave)
Contact:

Post by Bob the Hamster »

Fortunately the script to do this is super-simple.

Code: Select all

include, plotscr.hsd

script, end the game, begin
  game over
end script
When you have compiled and imported it, you can attach it to your text box.
User avatar
Willy Elektrix
Liquid Metal Slime
Posts: 910
Joined: Sun Aug 15, 2010 11:30 pm

Post by Willy Elektrix »

James Paige wrote:Fortunately the script to do this is super-simple.

Code: Select all

include, plotscr.hsd

script, end the game, begin
  game over
end script
When you have compiled and imported it, you can attach it to your text box.
Thanks so much!

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
Regardless, you put me on the right track. I just need to play through the game a couple times to find bugs, write instructions, and then I'll be done! Feels great!

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.
Post Reply