ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/doc/playbook-html/skills2-extract
Revision: 1.1
Committed: Fri Feb 3 07:12:42 2006 UTC (18 years, 5 months ago) by root
Branch: MAIN
Branch point for: UPSTREAM
Log Message:
Initial revision

File Contents

# User Rev Content
1 root 1.1 BEGIN {
2     exper["NONE"] = 1;
3     # *sigh* I couldnt make this completely right. I had
4     # to add kludges for skills that use the word "magic"
5     # in them (since) this collides with the use of this
6     # word as an experience category too.
7     skill["use"] = skill["sense"] = 1;
8     crosscmd = crosscmd " 2>&1";
9     printit = 0;
10     while (crosscmd | getline buff == 1) {
11     if(printit) {
12     finish = 0;
13     nr = split(buff, var, " ");
14     if(var[2] in skill && var[3] in exper)
15     problem = 1;
16     else
17     problem = 0;
18     printf("<tr><td>%s",var[2]);
19     for(i=3;i<=nr;i++) {
20     if(var[i]==" ") continue;
21     if(var[i] in exper)
22     if(!problem)
23     finish = 1;
24     else
25     problem = 0;
26     if(!finish)
27     printf(" %s",var[i]);
28     else {
29     printf("</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td></tr>\n",
30     var[i], var[nr-2], var[nr-1], var[nr]);
31     break;
32     }
33     }
34     } else {
35     nr = split(buff, var, "-");
36     nr2 = split(var[2], var2, " ");
37     exper[var2[1]] = 1;
38     }
39     if(buff ~ "---") printit = 1;
40     }
41     close(crosscmd);
42     }