[Script]5 Commands

Inactive Account

Old CCM Member
Premium Member
Messages
480
Reaction score
240
Points
913
Hi,
This post is a script post with : custom commands for game maker(in game)

{
//This script, will save the game, load the game, delete a save, go to the room, "room1", or quit the game!
//Make a file in the game's directory, called "saves"!!!
//Make the first room's name, "room1"
code = get_string('Command:','')
quit = 'quit/'
menu = 'menu/'
save = 'save/'
load = 'load/'
delete = 'delete/'

if code = quit then
{
game_end()
}
if code = menu then
{
room_goto(room1)
}
if code = save then
{
code2 = get_string('Save as:','')
game_save('saves/' + code2 + '.createfile')
}
if code = load then
{
code3 = get_string('Load:','')
game_load('saves/' + code3 + '.createfile')
}
if code = delete then
{
code4 = get_string('Saves name:','')
file_delete('saves/' + code4 + '.createfile')
show_message('Deleted save file!')
}
}

Put this in a keyboard action(because mouse option is not realy cool for this)
 
Top