Welcome to the Builder Academy

Question Question about player files

More
27 Jun 2016 01:22 #6041 by Errigour
I was looking over the player files and I was wondering how does the mud remember what sills are trained and what number they are trained to? I don't see anything concerning skills in the player files.

Please Log in or Create an account to join the conversation.

More
27 Jun 2016 18:54 #6042 by thomas
Replied by thomas on topic Question about player files
github.com/tbamud/tbamud/blob/master/src/players.c#L449

triggers load_skills() when you get to the heading "Skil"

github.com/tbamud/tbamud/blob/master/src/players.c#L872
Code:
static void load_skills(FILE *fl, struct char_data *ch) { int num = 0, num2 = 0; char line[MAX_INPUT_LENGTH + 1]; do { get_line(fl, line); sscanf(line, "%d %d", &num, &num2); if (num != 0) GET_SKILL(ch, num) = num2; } while (num != 0); }

Please Log in or Create an account to join the conversation.

Time to create page: 0.183 seconds