ID:269336
 
I know BYOND isnt defualted to save verbs, so I tried to use myne....and I can't get it to work. Please don't tell me to use Deadrons Character Handling...Help please.
mob
proc
Save()
var/savefile/F = new("Save/[src.ckey]")
F["last_x"] << src.x
F["last_y"] << src.y
F["last_z"] << src.z
src.Verb_List = src.verbs
F["verbs"] << src.Verb_List
Write(F)
src << "<font color=blue><font size=-1>INFORMATION:<font color=white>Profile Saved."
Load()
if(fexists("Save/[src.ckey]"))
var/savefile/F = new("Save/[src.ckey]")
Read(F)
F["last_x"] >> src.x
F["last_y"] >> src.y
F["last_z"] >> src.z
F["verbs"] >> src.verbs
src << sound('Main.mid',1)
i had to end up using a special var and doing something like this

mob
Login()
if(src.has_verbs)
src.verbs += typesof(/thing/verb)
..()
var
has_verbs = 0
verb
Add_verbs()
usr.verbs += typesof(/thing/verb)
usr.has_verbs = 1
thing
verb
Ouch()
world << "Ouch"


of course you wouldn't put the check directly in the login proc, you want to put it at the very end of your load proc, make sure the mob is completely loaded and then check it.
It's very important to close your HTML tags. Also, you can combine <font> tags with different attributes like size and color into a single tag.

If you use styled text a lot, I highly recommend using a .dms file with a style sheet, and then you can use <span> to apply styles easily.

Lummox JR