Post new topic    
Liquid Metal Slime
Send private message
Ending A Game 
 PostSat Sep 25, 2010 8:20 pm
Send private message Reply with quote
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?
Super Slime
Send private message
 
 PostSun Sep 26, 2010 12:47 am
Send private message Reply with quote
The only other way is to kill the player.

(edit) I mean the player character
Mega Tact v1.1
Super Penguin Chef
Wizard Blocks
Liquid Metal King Slime
Send private message
 
 PostSun Sep 26, 2010 2:38 am
Send private message Reply with quote
Fortunately the script to do this is super-simple.

Code:

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.
Liquid Metal Slime
Send private message
 
 PostSun Sep 26, 2010 8:55 pm
Send private message Reply with quote
James Paige wrote:
Fortunately the script to do this is super-simple.

Code:

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:

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.
Display posts from previous: