Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Reload game function?

A topic by Phantosler created Feb 25, 2020 Views: 95 Replies: 4
Viewing posts 1 to 2
Submitted

Any tips on how to make a command that allows a player to reload the game back to the start? I already have a reload on death but waht about manual reloading?

Host

The command is "QUIT".

If you want to add RELOAD as an alias for quit, add this to your on_command {} section.

: match "reload _"  {
   : ask_quit;
   : end_game;
}
Submitted

> The command is "QUIT".

As for me, I prefer "RESTART", because it's more intuitive. "QUIT" looks like ending the game at all.

Host

Both QUIT and RESTART work by default.

RELOAD does not work by default (and needs the listed code to work).

Submitted(+1)

As Adventuron said, QUIT and RESTART are synonymous. I always add Q as a synonym for QUIT in the vocabulary{} block. You could do the same for RELOAD.