Ok, Im trying to assign certain verbs to certain races and im using this coding but it keeps giving me these errors.
loading DBZPW.dme
DBZPW.dm:54:error:name:bad var
DBZPW.dm:55:error:icon:bad var
DBZPW.dm:56:error:icon_state:bad var
DBZPW.dmb - 3 errors, 0 warnings
heres the coding im usings.
proc
SSJ2()
set src = usr
name = "[usr]"
icon = 'Goku.dmi'
icon_state = "3"
I dont get how a icon can be a bad var, could someone help me but because im totally stumped on this one. Thanks
ID:150561
Aug 27 2001, 5:09 pm
|
|
In response to Vortezz
|
|
Vortezz wrote:
Tatakau wrote: ok, what you told me to do kinda worked, I didn't get any errors when i used usr., but its not doing what its suppose to do according to Lord of Water's "CharChoice" tutorial. I put this under my Login code for Saiyan but the verbs dont show up and not only that, i getting this error when i log in to test it. mob/Login() Move(locate(13,14,1)) //where the character starts out ..() usr.name = input("What is your name?","Your name?",usr.name) // ask the player their name var/r = input("What is your race?","Your race?") in list ("Saiyan","Half Saiyan","Namek","Android","Icer","GM") switch(r) if("Saiyan") verbs += Normal() verbs += SSJ1() verbs += SSJ2() verbs += SSJ3() verbs += SSJ4() if("Half Saiyan") icon = 'Trunks.dmi' the problem here id the verbs dont show up like there suppose to. this is the error i get when i log in to test it wrong type of value for list proc name: Login (/mob/Login) usr: Tatakau (/mob/GM) src: Tatakau (/mob/GM) call stack: Tatakau (/mob/GM): Login() Tatakau (/mob/GM): Login() Tatakau (/client): New() I only seem to get this error when I select my Saiyan race. Any help here would be GREATLY appreciated. Thanks |
In response to Tatakau
|
|
That's cause LoW's tutorial is wrong.. You can't refer to a proc by just typing out the name. You've gotta type out the whole proc path.
/mob/proc/SSJ() |
In response to Vortezz
|
|
Vortezz wrote:
That's cause LoW's tutorial is wrong.. You can't refer to a proc by just typing out the name. You've gotta type out the whole proc path. OK, yet once again I haev recieved no errors. I swiched all my proc/SSJ1(), proc/SSJ2(), etc... with mob/proc/SSJ1() and yet the verbs still don't show up, where might I be able to find a more reliable source on this topic. Thanks |
In response to Tatakau
|
|
Tatakau wrote:
Vortezz wrote: Recreate the character, log them in, do the verbs show up? if not, ignore the following. Verbs is a tmp var, and so it is not saved on logout, you need to do what Im doing (thanks to the people who helped me with this). Make a list, under mob, called saveverbs. Then you need to create a proc to save the persons verbs into that when they log off, and load it when they log back in. Of course, you can do that or download Deadrons char saving lib and look at how he does it (not sure havent seen it yet) Prob best to just look at his, and if your using his character handling library you should have it anyways (Only if you updated of course) Alathon |
Try <code>src.icon</code> or <code>usr.icon</code>. It might be thinking something else should be changing icon.