get skill type from classskills.txt?

Status
Not open for further replies.

ckb

Minion
Staff member
Is there an easy way to get the skill "type" from classskills.txt?

# Type can be:
# 0 (Passive)
# 1 (Noncombat item summon)
# 2 (Noncombat healing)
# 3 (Noncombat non-shruggable effect)
# 4 (Noncombat shruggable effect)
# 5 (Combat)
# 6 (One-at-a-time Noncombat Song)
# 7 (Combat/Noncombat healing)
# 8 (Combat/Passive)
# 9 (One-at-a-time Noncombat Expression)

Do I need to load and parse the whole file with a file_to_map( "classskills.txt" , skill_list);

If I do, what is the format of the skill_list map?

If the format of the file is
# id Name Type MP Cost Duration

Is there a way to just import the id and Type, and somehow skip the Name field, or does the file_to_map() just read them in order?

Thanks.
ckb


EDIT:
This seems to get me part way to what I want:
Code:
int[int, string] slist;
file_to_map("classskills.txt",slist);

but I still need to read in the name fields...
 
Last edited:

Darzil

Developer
I get the feeling there isn't a direct way to read this. You can get most of it indirectly from proxy fields but there doesn't appear to be a one stop shop for skill type. Could always make a request to add a proxy field.
 
Status
Not open for further replies.
Top