Revision: | 1.1 |
Committed: | Thu Sep 7 21:43:03 2006 UTC (17 years, 10 months ago) by pippijn |
Branch: | MAIN |
CVS Tags: | rel-2_82, rel-2_81, rel-2_80, rel-3_1, rel-3_0, rel-2_6, rel-2_7, rel-2_4, rel-2_5, rel-2_2, rel-2_3, rel-2_0, rel-2_1, rel-2_72, rel-2_73, rel-2_71, rel-2_76, rel-2_77, rel-2_74, rel-2_75, rel-2_54, rel-2_55, rel-2_56, rel-2_79, rel-2_52, rel-2_53, rel-2_32, rel-2_90, rel-2_92, rel-2_93, rel-2_78, rel-2_61, rel-2_43, rel-2_42, rel-2_41, HEAD |
Log Message: | Moved documents to doc/historic |
# | 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("<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 | } |