1 |
root |
1.1 |
This directory includes some scripts I wrote to update various archetypes |
2 |
|
|
with certain new values. |
3 |
|
|
|
4 |
|
|
These scripts were written to get the job done - they are certainly not |
5 |
|
|
in the best style. In many cases, the same script was modified for a new |
6 |
|
|
purpose, so the variable names reflect the individual script purpose. |
7 |
|
|
|
8 |
|
|
Most all of them take a list of files to work on. You can typically |
9 |
|
|
do something like script.pl *.arc */*.arc */*/*.arc, etc to update |
10 |
|
|
a large number of files at once. |
11 |
|
|
|
12 |
|
|
Mark Wedel |
13 |
|
|
July 2002 |
14 |
|
|
|
15 |
|
|
update_armor.pl: Replaces the last_heal variables with gen_sp_armour. |
16 |
|
|
Note that this doesn't look at object type, and just does a straight |
17 |
|
|
replacement, so should only be run against armor .arc files. |
18 |
|
|
|
19 |
|
|
update_body.pl: Adds appropriate body_.. to equipment objects. It |
20 |
|
|
looks at the type of equipment it is to determine what body locations |
21 |
|
|
to add. |
22 |
|
|
|
23 |
|
|
update_monster.pl: Looks at the various can_use... flags and forms |
24 |
|
|
body information for the object. |
25 |
|
|
|
26 |
|
|
update_object.pl: Used to add the name_pl and client_type fields to |
27 |
|
|
the objects. The first parameter to this script is the client |
28 |
|
|
type to set to, the rest of the parameters are the files to operate on. |
29 |
|
|
|
30 |
|
|
update_shield.pl: add can_use_shield values to players/monsters. |
31 |
|
|
Basically, it takes the value of can_use_armor and duplicates it for |
32 |
|
|
can_use_shield. Doesn't care about object type. |
33 |
|
|
|
34 |
|
|
updatearch: This is a shell script which is a bit different - basically, |
35 |
|
|
you provide a perl expression as its parameter, and it runs this |
36 |
|
|
against all the .arc files in the directory you run it in - example: |
37 |
|
|
updatearch 's/armor/prot_phys/' will make the substitution. |
38 |
|
|
|