mob
var
skills=list()
proc
GiveSkill(Skill)
src.skills+=locate(Skill) in skillobjs
The skill I want to add:
obj
KIDOU
Shakkahou
icon='Kidou.dmi'
icon_state="Shakkahou"
Click()
view(usr) << output("[usr.name]:> Shakkahou!", "Say_Output")
src.using = 1
var/obj/KIDOU/Shakkahou/O = new(usr.loc)
O.owner = usr
Adding it:
mob/Login()
..()
GiveSkill(/obj/KIDOU/Shakkahou)
// More to the Login(), but has nothing to do with this problem.
Refreshing the interface:
mob/verb/RefreshGrids()
if(!usr.playing)
return
var/i = 1
for(var/obj/S in usr.skills)
usr << output(S, "Main.Skills_Grid:[i],1")
i++
var/I = 1
for(var/obj/O in usr.contents)
usr << output(O, "Main.Inventory_Grid:[I],1")
I++
Problem description:
The object doesn't show up in the grid, even when I refresh it. Please help, thanks!
~Hi1