Code:
Problem description:
obj
Healing
Healing
verb
Heal()
set category = "Training"
set src in oview(1)
switch(input("Would you like to Heal?" , "Healing Pod", text) in list ("Yes","No"))
if(!usr) return
if(usr.blockheal==1)
usr.<<"Error: You are already Healing!"
else
if("Yes")
usr.blockheal=1
usr.paralyze=1
usr.y-=1
sleep(3)
usr.y-=1
usr<<"You begin to regain your Powerlevel!"
sleep(25)
if(!usr) return
usr.powerlevel = usr.maxpowerlevel
sleep(5)
usr<<"You begin to regain your KI!"
sleep(25)
if(!usr) return
usr.KI = usr.MaxKI
sleep(5)
usr<<"You begin to regain your Stamina!"
sleep(25)
usr.stamina2 = usr.stamina
sleep(5)
usr.y+=1
sleep(3)
usr.y+=1
usr.paralyze=0
usr.blockheal=0
alert("You are Fully Healed","Healed")
if("No")
return 0
NOTE: IT KEEPS SAYING {empty switch statement}
ID:141863
![]() Oct 19 2008, 8:12 am
|
|
2. Your switch is in the wrong place. Put it under your first else, and tab everything below appropriately.