mob
shop
Dave
icon='mob.dmi'
icon_state="dave"
verb
Talk()
set src in oview(1)
switch(alert("Hello! Would you like to buy a Tunic?","Dave","Yes","No"))
if("Yes")
if(usr.gold <= 2499)
usr << "<b>You need 2500 gold!"
if(usr.gold >= 2500)
usr.gold -= 2500
var/new_rgb = F_Color_Selector.Get_Color(src)
var/tunic/I = new('tunic.dmi')
I.Blend(new_rgb)
tunic = I
usr.contents += new /obj/tunic
usr << "<b>You get a Tunic!"
if("No")
return
obj
tunic
icon='tunic.dmi'
name="[usr]'s Tunic"
verb
Wear()
set category = "Inventory"
if(src.worn == 1)
src.worn = 0
usr.overlays -= 'tunic.dmi'
usr << "You remove the [src.name]."
else
src.worn = 1
usr.overlays += 'tunic.dmi'
usr << "You wear the [src.name]."
Obviously, i have the "f_color_code.dm" incoperated into my '.dme' file
I'm new at addapting libraries into my own game.
So, if someone can help me change it, i will be eternally greatful.
The correct way to include libraries is to tick the checkbox next to their names in the File pane on the left of Dream Maker. If you can't see it, make sure that you've expanded the "Lib" section (click the plus sign next to "Lib" in the File pane; it works like the folder view of Windows Explorer).
If you're copying and pasting library code, then that's bad (unless you really, really know what you're doing).