mob/demon/verb/Shapeshift(mob/X as mob|obj in oview(9))
set category = "Skills"
if(usr.Freeze==1)
usr<<"Your frozen, you can't use magic"
return
switch(alert(usr,"Shapesift into?","Shapeshift","Shapeshift","Revert"))
if("Shapeshift")
if(usr.Energy <= 0)
usr<<"You don't have the energy for this"
return
var/obj/ranked
if(X.ranked==1)
usr<<"You may not shapeshift into [X] [ranked]"
return
usr.icon = X.icon
usr.Exposing_Magic()
usr.icon_state = X.icon_state
usr<<"You shapeshifted into [X]"
usr.Energy -= 10
usr.name = X.name
if("Revert")
if(usr.Energy <= 0)
usr<<"You don't have the energy for this"
return
if(usr.rank=="The Source")
usr.icon = 'Goodwitchs.dmi'
usr.icon_state = "Source"
if(usr.rank=="Dark Force Cultist")
usr.icon = 'Goodwitchs.dmi'
usr.icon_state = "Source"
if(usr.rank=="Triad")
usr.icon = 'Goodwitchs.dmi'
usr.icon_state = "triad"
if(usr.rank=="Avatar")
usr.icon = 'Goodwitchs.dmi'
usr.icon_state = "Avatar"
else
if(usr.key=="YOUR NAME HERE")
usr.icon = 'Goodwitchs.dmi'
usr.icon_state = "lighter"
usr.Energy -= 5
usr.Exposing_Magic()
usr.name = usr.originalname
return
usr.icon = 'Goodwitchs.dmi'
usr.icon_state = "[usr.original_icon]"
usr.Energy -= 5
usr.Exposing_Magic()
usr.name = usr.originalname
Problem description:
When People Revert they dont get there name back... Idk how to make it so they get there name back... All there is is if the usr.key == "YOUR NAME HERE" IDK how to make it for everyone... Please help