im using a parent_type to set mob as a other name
here is the code of the verb and where the PLAYER is setting the path to mob
Code:
GAME_MOB // here i set GAME_MOB parent to mob
parent_type = /mob
step_size = 8
icon = 'Art/Player.dmi'
// step_x = -16
bound_width = 32
bound_height = 54
bound_x = 16
bound_y = 1
var
level = 1
iconset = 0
//*thoose code are not in the same page*
PLAYER // here i set the PLAYER parent to GAME_MOB
parent_type = /GAME_MOB
mob
verb
Say(T as text)
if(!T)return
var/PLAYER/p = usr
view(p)<<"<small><font color=green>([p.name]): </Font>[html_encode(T)]</Font>"
set_icon()
var/PLAYER/p = usr
if(p.iconset)return
var/choice = input("Wich icon you want?")in list("Gold")
if(choice =="Gold")
p.icon = 'Art/Player.dmi'
p.iconset = 1
Problem description:
i can't seem to find the problem
im not getting error from compiler but from the errorlog im getting this when i use the verb
runtime error: undefined variable /mob/var/iconset
proc name: set icon (/mob/verb/set_icon)
source file: Verb.dm,13
usr: (src)
src: Carcanox32 (/mob)
src.loc: the grass (1,1,1) (/turf/grass)
call stack:
Carcanox32 (/mob): set icon()
any help is apreaciate thank you !!
Your runtime error shows this:
To fix this, set your world's default mob to PLAYER:
Also, I really wouldn't recommend using parent_type like this. It seems to have caused you some confusion.