ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/doc/playbook/skills2-extract
Revision: 1.2
Committed: Thu Sep 7 21:43:16 2006 UTC (17 years, 8 months ago) by pippijn
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
State: FILE REMOVED
Log Message:
Moved documents to doc/historic

File Contents

# Content
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(" &%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(" & %s & %s & %s & %s & \\\\\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 }