turf
TitleScreen1
icon = 'surround.dmi'
density = 1
TitleScreen2
icon = 'surround.dmi'
icon_state = "spawn"
New
icon = 'New.bmp'
Click()
switch(input("What engine do you want?","Engine","b1") in list("Battle1(standard)","Battle2(Advanced)"))
if("Battle1(standard)")
switch(input("What armor do you want?","Armor","Beginner") in list("Beginner","Intermediate","Advanced"))
if("Beginner")
usr.overlays += /obj/Armor1
if("Intermediate")
usr.overlays += /obj/Armor2
usr.move_delay += 1
if("Advanced")
usr.overlays += /obj/Armor3
usr.move_delay += 2
if("Battle2(advanced)")
usr.move_delay = 2
switch(input("What armor do you want?","Armor","Beginner") in list("Beginner","Intermediate","Advanced"))
if("Beginner")
usr.overlays += /obj/Armor1
if("Intermediate")
usr.overlays += /obj/Armor2
usr.move_delay += 1
if("Advanced")
usr.overlays += /obj/Armor3
usr.move_delay += 2
Load_Player
icon = 'Load.bmp'
Click()
var/savefile/F = new(key) // Where error is flagged
Read(F)
return
It gives these errors:
loading RoboWars.dme
RoboWars.dm:49:error:key:undefined var
RoboWars.dm:49:new :warning: This appears like the old syntax for new(). The type is now passed like this: new Type(args). You can leave out the type if assigning a variable of the same type.
RoboWars.dmb - 1 error, 1 warning (double-click on an error to jump to it)
~Kros~