ID:159696
 
Ok, lets say you have a skill datum, and a skill list that is defined under mob.

var/list/skills = list(/skill/kick)

Ok, now I have a skill named Kick under my skill datum. How would I beable to find the name and other variables. Though a for loop.

Ex: for(var/A in skills)

So it would list like.

Name : Kick
//I know it wouldn't display name kick, but just for example.
Level : 3
skill
var/name
var/level
kick
name = "Kick"
level = 1

mob/var/list/Skillslist = list(new/skill/kick)

mob/verb/CheckSkills()
for(var/skill/A in Skillslist)
world << " Name : [A.name]\n - Level : [A.level]"


Something like that, not really hard. Hope it'll help.
In response to Andre-g1
Only missed, making it new...lol