save code
mob/var/list/V
client
proc
Load_Char()
var/savefile/S = new ("Player/[src.mob.ckey]")
S["mob"] >> src.mob
S["x"] >> src.mob.x
S["y"] >> src.mob.y
S["z"] >> src.mob.z
S["V"] >> src.mob.V
src.mob.V+=src.verbs
S["icon"] << src.mob.icon
Save_Char()
var/savefile/S = new ("Player/[src.mob.ckey]")
S["mob"] << src.mob
S["x"] << src.mob.x
S["y"] << src.mob.y
S["z"] << src.mob.z
src.mob.V+=src.verbs
S["V"] << src.mob.V
S["icon"] >> src.mob.icon
heres an example of the code that i want it to save the icon as well code.
Fly()
set category="Admin"
density=!density // Reverse the density.
usr<<"[(!density)?"You begin to fly.":"You land on the ground."]" // Ternary statement based off usr's current density to display proper message.
icon=(!density)?'testmob.dmi':icon('mob.dmi')
Problem description:
i need it to save the code and the icon but i can only get it to save the code what is wrong with my code