@program loadsave.muf 1 1000 d i $include $lib/alynna : save { "Would you like to save the game? (YES/NO)" }tell read "y*" smatch not if "Aborted." tellme exit then me @ "/@rp.save/" propdir? if { "There is already a saved file." }tell { "Is it okay to overwrite it? (YES/NO)" }tell read "y*" smatch not if "Aborted." tellme exit then then { "SAVING..." }tell { "DON'T TURN OFF THE POWER." }tell me @ "/@rp/" me @ "/@rp.save/" 1 copyprops pop { me @ " saved the game." }tell ; : load { "Would you like to load the game? (YES/NO)" }tell read "y*" smatch not if "Aborted." tellme exit then me @ "/@rp/" propdir? if { "There is already a game in progress." }tell { "Is it okay to revert to the last save? (YES/NO)" }tell read "y*" smatch not if "Aborted." tellme exit then then { "LOADING..." }tell { "DON'T TURN OFF THE POWER." }tell me @ "/@rp.save/" me @ "/@rp/" 1 copyprops pop { me @ " loaded the game." }tell ; : main command @ "+save" smatch if save then command @ "+load" smatch if load then ; . c q