ID:179592
 
I have FireKing's Shop Keeper in my game, i did every thing he did but chnged some names around and when i compiled it i got alot of bad answer.price vars and bad price vars. I dont know what to do. I have been looking over it for about an hour now and i cant figure out why I get these Bad vars.
So please help
Thanx
Greg wrote:
I have FireKing's Shop Keeper in my game, i did every thing he did but chnged some names around and when i compiled it i got alot of bad answer.price vars and bad price vars. I dont know what to do. I have been looking over it for about an hour now and i cant figure out why I get these Bad vars.
So please help
Thanx

obj
var
price = 0

you need that

and for the answer as bad vars, you change the code way too much, you dont need to change names or anything

to make new shopkeepers, you just do this

mob/shopkeeper/Billy
icon = 'whatever.dmi'
icon_state = "haha"
contents = newlist(\
/obj/sword,
/obj/apple,
/obj/somemorestuff,
/obj/imcool)

mob/shopkeeper/HARRYPOTTER
icon = 'wahtever.dmi'
icon_state = "dork"
contents = newlist(\
/obj/magicwand,
/obj/glasses,
/obj/someoddbook)

and so on and so on...

FIREking

ps. those can go anywhere in the code as long as you have the shopkeeper TEMPLATE(it is a template, not a shopkeeper) in the code.