Jutsus
var/jutsu
parent_type=/obj
icon = 'Icons.dmi'
Bunshin
jutsu="Bunshin"
icon_state="Bunshin"
New()
..()
mouse_drag_pointer = icon(src.icon, src.icon_state)
MouseDrop(over_object=src,over_location,src_location,src_control,over_control)
if(src in usr.contents)
if(src_control == "map.info1")
if(over_control == "map.Aone")
usr<<output(src, "Aone:16,16")
usr.slot1=src.jutsu
if(over_control == "map.Atwo")
usr<<output(src, "Atwo:1,1")
usr.slot2=src.jutsu
if(over_control == "map.Athree")
usr<<output(src, "Athree:1,1")
usr.slot3=src.jutsu
if(over_control == "map.Afour")
usr<<output(src, "Afour:1,1")
usr.slot4=src.jutsu
if(over_control == "map.Afive")
usr<<output(src, "Afive:1,1")
usr.slot5=src.jutsu
if(over_control == "map.Asix")
usr<<output(src, "Asix:1,1")
usr.slot6=src.jutsu
if(over_control == "map.Aseven")
usr<<output(src, "Aseven:1,1")
usr.slot7=src.jutsu
if(over_control == "map.Aeight")
usr<<output(src, "Aeight:1,1")
usr.slot8=src.jutsu
if(over_control == "map.Anine")
usr<<output(src, "Anine:1,1")
usr.slot9=src.jutsu
if(over_control == "map.Azero")
usr<<output(src, "Azero:1,1")
usr.slot0=src.jutsu
This is the code to my Hotkey bar for my Naruto game in-the making...
When I load game, it loads my slot1,slot2, etc... vars, however, the icon doesn't show on the grids... How to put them in save file etc.. ?