mob/player
proc
getnextskill()
var/tmp/nextskill = lowertext(src.role)
nextskill = text2path("mob/role/[nextskill]")
nextskill = nextskill.skillset
mob/player/role/testclass
name="Testclass"
skillset = list("Testskill@6@5@Element@Type","Second@10@3Element@Type")
Problem description:
Evening guys, I'm back with a terribly newbie question(maybe as newbie as I): I am trying to access a variable from another mob as mob/player, namely mob/player/roles/[insertrandomrole]/skillset. I made a script so that I can extract stuff from a list the way I want to.
PS: Error is always code\tests.dm:8:error: nextskill.skillset: undefined var.