ID:271322
 
I made a title screen with the background and tile and 3 buttons (new game, continue, delete) with the following code:


world
view = 5
turf
icon = 'Turfs.dmi'
grass
icon_state = "grass"
background
title
icon = 'title.png'
density = 1
black
icon_state = "black"
obj/New
icon='newgame.png'
Click()
usr.loc = locate(2,2,2)
obj/Load
icon='loadgame.png'
Click()
Read(var/savefile/F = new())
obj/Delete
icon='delete.png'
Click()
Write(var/savefile/F = del())
mob/Logout()
Write(var/savefile/F = new())


...I got these errors:



main.dm:24:error:var/savefile/F:undefined var
main.dm:28:error:var/savefile/F:undefined var
main.dm:28:error:del :empty argument not allowed
main.dm:28:error::missing expression
main.dm:30:error:var/savefile/F:undefined var


what's wrong? What I want to do (you probably know) is to make 3 buttons on the title screen. New game, continue and delete. I've seen naruto games do it and stuff so I know it can be done. Did I misstype something or is there a better way to do this.