mob/Login()
winshow(src,"Login",1)
mob/verb
Create()
set hidden = 1
winshow(src,"Login2",1)
winshow(src,"Login",0)
Load()
set hidden = 1
winshow(src,"Login",0)
winshow(src,"Login5",1)
Delete()
winshow(src,"Login",0)
winshow(src,"Login4",1)
mob/verb
MainMenu()
set hidden = 1
winshow(src,"Login",1)
winshow(src,"Login2",0)
winshow(src,"Login3",0)
winshow(src,"Login4",0)
winshow(src,"Login5",0)
mob/verb
DeleteSlot1()
set hidden = 1
if(src.Slot1 == 1)
if(fexists("Players/Slot1[src.key].sav"))
var/sure=alert(src,"Are you sure you want to delete your character? It will be gone forever.","Confirmation","Yes","No")
if(sure=="Yes")
sleep(0)
fdel("Players/Slot1[src.key].sav")
alert("<b>Your character has been deleted.")
else
alert("You don't have a character on this slot!")
return
DeleteSlot2()
set hidden = 1
if(src.Slot2 == 1)
if(fexists("Players/Slot2[src.key].sav"))
var/sure=alert(src,"Are you sure you want to delete your character? It will be gone forever.","Confirmation","Yes","No")
if(sure=="Yes")
sleep(0)
fdel("Players/Slot2[src.key].sav")
alert("<b>Your character has been deleted.")
else
alert("You don't have a character on this slot!")
return
DeleteSlot3()
set hidden = 1
if(src.Slot3 == 1)
if(fexists("Players/Slot1[src.key].sav"))
var/sure=alert(src,"Are you sure you want to delete your character? It will be gone forever.","Confirmation","Yes","No")
if(sure=="Yes")
sleep(0)
fdel("Players/Slot3[src.key].sav")
alert("<b>Your character has been deleted.")
else
alert("You don't have a character on this slot!")
return
mob/verb
Slot1()
set hidden = 1
src.Slot1=1
winshow(src,"Login3",1)
winshow(src,"Login2",0)
Slot2()
set hidden = 1
src.Slot2=1
winshow(src,"Login3",1)
winshow(src,"Login2",0)
Slot3()
set hidden = 1
src.Slot3=1
winshow(src,"Login3",1)
winshow(src,"Login2",0)
Problem description:
This is my login system, it works fine so far, but when i try to delete my character the alert does not show up(this is for when i do not have a character).
Hence the fexists
I don't understand what the issue is?