ID:140314
 
How I add a skill:
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
Where are you filling the skillobjs list?
In response to Garthor
world
status = "<b>CLOSED TESTING</b>"
view = 8
New()
for(var/skill in typesof(/obj/KIDOU/)) skillobjs+=new skill
for(var/skill in typesof(/obj/HOLLOW/)) skillobjs+=new skill
..()
In response to Hi1
Is the object actually getting added to skills? Check by just looping through the list and outputting everything in it.
In response to Garthor
Yes, I checked it and /obj/KIDOU/Shakkahou is in my skills, and everything is also in skillobjs.
Are you sure the playing variable is true?
In response to Ulterior Motives
I just saw that, set it to true and modified some stuff:

My "New Character" mob:
mob
NEW
icon='misc.dmi'
icon_state="clear"
Click()
if(numberofplayers >= maxplayers)
alert("Player cap has been reached, please wait...","Sorry!")
return
usr.loc=locate(null)
alert("Welcome to Seireitei RP!\nPlease note: This game -is- RP! So please roleplay! Thanks!","Welcome!")
var/tmp/chosen_name
while(findtext(chosen_name, " ")!=0||findtext(chosen_name,"'")!=0||findtext(chosen_name,"!")!=0||findtext(chosen_name,"@")!=0||findtext(chosen_name,"#")!=0||findtext(chosen_name,"$")!=0||findtext(chosen_name,"%")!=0||findtext(chosen_name,"^")!=0||findtext(chosen_name,"&")!=0||findtext(chosen_name,"*")!=0||findtext(chosen_name,"(")!=0||findtext(chosen_name,")")!=0||findtext(chosen_name,"_")!=0||findtext(chosen_name,"+")!=0||findtext(chosen_name,"-")!=0||findtext(chosen_name,"=")!=0||findtext(chosen_name,"\"")!=0||findtext(chosen_name,"{")!=0||findtext(chosen_name,"}")!=0||findtext(chosen_name,"\[")!=0||findtext(chosen_name,"\]")!=0||findtext(chosen_name,":")!=0||findtext(chosen_name,";")!=0||findtext(chosen_name,"<")!=0||findtext(chosen_name,">")!=0||findtext(chosen_name,",")!=0||findtext(chosen_name,".")!=0||findtext(chosen_name,"?")!=0||findtext(chosen_name,"/")!=0||!chosen_name)
chosen_name = input("What is your characters name? (No HTML, Spaces or Symbols)","Name?")as text
usr << "<center>PLEASE READ THE GUIDE!</center>"
sleep(10)
usr.loc=locate(/* LOCATE TO TUTORIAL */)
usr.playing = 1
usr.health = 100
usr.m_health = 100
usr.reiatsu = 100
usr.m_reiatsu = 100
usr.exp = 0
usr.m_exp = 10
usr.icon='Base.dmi'
usr.icon_state="Male"
GiveSkill(/obj/KIDOU/Shakkahou)
usr.RefreshGrids()


But it's still not doing anything...
In response to Hi1
Working now, thanks again Kaiochao...