WoGify Scripts for Wake of Gods 3.57f (Updated February 21, 2003) Timers, Functions, Macros and Dialogs used, Variables and Flags used permanently: (Temporary variables also shown in parenthesis as well as in a separate list below) Normal Variables (v1-v10000): (v1-v10), v11-v12, (v13-v14), (v24-v34), v40-v41, (v50-v54), (v76), v88-v93, (v94-v95), (v101-v111), v119-v142, (v143), v144, v160-v200, v205, v210-v247, v249, v250-v257, v266-v284, (v300-v308), v310-v312, v346, (v360-v370), v371-v373, v381-v386, v388-v389, v400-v420, v425-v436, z440-z444, (v451-v469), v490-v491, v508, v510-v559, (v564-v571), v572-v590, v592-v599, (v600-v739), v700-v746, v777, (v900-v916), (v920-v934), v950-v966, v975-v976, (v998-v1000), v1200-v1210, (v1211), v1212-v1214, v1218-v1256, v1260-v1262, v1300-v1327, v1332-v1335, v1340-v1357, v1500, v1600-v1983, v7000-v7010, v7020-v7053, v7080-v7087, v7183, v7185-v7197, v9001 Strings (z1-z1000): (z1-z9), z10-z21, (z22-z44), (z47-z61), z100-z103, z119-z140, (z141-z142), z143 z160-z166, z190-z199, z201-z205, z210-z231, z241, (z242-z248), z266-z269, (z270-z279), z280-z299, (z300-z303), (z310-z319), (z326-z331), z332-z354, (z360-z366), z368-z383, (z390-z393), z400-z406, z410-z428, z430-z444, z450-z454, z469, (z470-z472), (z480-z492), z493-z495, z698, z700-z706, z710-z728, z732-z752, z800-z841 ERT Z Variables 116000-116037, 127000-127003, 128000-128076, 134001-134025, 135000-135177, 136000-136058 Hero Variables (w1-w100): w10-w12, w14, w20-w32, w38, w41-w42, w45, w46, v49, w52-w54, w61-w78, w80, w90-w94 Functions (1-30000): FU1-FU2, FU10-FU11, FU20-FU24, FU100, FU141-FU145, FU160-FU161, FU180-FU184, FU451, FU491-FU493, FU599-FU611, FU620-FU627, FU631, FU640-FU641, FU643-FU661, FU670-FU686, FU690-FU726, FU730-FU815, FU820-FU869, FU950, FU1100-FU1110, FU1400-FU1409, FU2400-FU2406, FU2826, FU3610-FU3618, FU3620-FU3630, FU3633-FU3638, FU3724-FU3733, FU4850, FU5000-FU5037, FU5200-FU5211, FU5219-FU5229, FU5244-FU5253, FU5260-FU5262, FU5300-FU5309, FU6664-FU6670, FU7000-FU7025, FU7060-FU7066, FU7070-FU7073, FU8000, FU8150-FU8168, FU8170-FU8186, FU8200-FU8227, FU10799-FU10815, FU10850-FU10862, FU10900-FU10910, FU13500-FU13507, FU14000, FU18001-FU18009 Timers (1-100): TM10-TM11, TM13-TM14, TM16, TM18-TM19, TM28, TM30-TM31, TM34, TM38, TM48, TM50-TM51, TM58, TM61-TM64, TM74-TM80, TM82, TM84-TM85 TM90, TM98-TM99 Flags (1-1000): (1-10), 21, 27, 49, 56-57, 70-72, 75-77, 130-133, 140, 160-162, 170-172, 209, 211-212, 266-271, (400-408), 409-410, 412, 428-433, 490, 600-603, 870-874, 902-907, (1000) Macros: $xpos$, $ypos$, $lpos$, $hpower$, $apower$, $hsex$, $hnumber$, $aknow$, $hcolour$, $aname$, $hrname$, $hisher$, @hsex@, @slevel@, @pgold@, @sicon@, @cday@, @skillnum@, @pithnum@, @skname@, @hname@, @he-she@, @man-woman@, @pithy@ Dialogs (1-100): 1, 3, 14, 20-21, 30-32, 88 Temporary variables and flags (may also be used by other scripts): v1-v10, v13-v14, v24-v34, v50-v54, v76, v94-v95, v101-v111, v143, v300-v308, v360-v370, v451-v469, v564-v571, v600-v739, v900-v916, v920-v934, (v998-v1000), v1211 z1-z9, z22-z44, z47-z61, z141-z142, z242-z248, z270-z279, z300-z303, z310-z319, z326-z331, z360-z366, z390-z393, z470-z472, z480-z492 (x1-x16), i-n Flags: 1-10, 400-408, (1000) --------> WOGIFY.ERM (00) (WoGify) Author: Donald ** Variables Used: v508, v600-v705, v950-v966 ** Flags Used: 9,870 (used by Anders' Mithril script section] ** Functions Used: FU670-FU686, FU5209 ** Timers Used: TM19, TM79 --------> RULES.ERM (01) (Map Rules) Author: Donald ** Variables Used: z280-z299, z326-z328, z332-z354, v1-v4, v549-v559, v564-v579, v600-v602, v610-v639, v700-v739, v1219, v1262 ** Flags Used: 1-3 ** Functions Used: FU690-FU726 ** Timers Used: TM84 ** Variables w46, v549-v559, v572-v579, z280-z299, and z332-z354 must not be modified by other programs! --------> ARTIFACT.ERM (02) (Artifact Boost) Author: Donald ** Variables Used: v600-v628, v630-v631, v640-v648, z326-z331, z410-z428, i-l ** Flags Used: 1, 2, 5 ** z410-z428 must not be modified by other programs! ** The other variables may be used elsewhere but will be trashed by this code. ** Functions Used: 599-609 ** Timers Used: 85 --------> SKILLS.ERM (03) (Secondary Skills Boost) Author: Donald ** Variables Used: v580-v589, v900-v916, v920-v934, z270-z279, z310-z319, ** z390-z393, z470-z472, z430-z431 ** Flags Used: 2, 270-271 ** v580-v589 and z430-z431 must not be modified elsewhere! ** Flags 270-271 are shared with other scripts that use Fnord's network detection function. ** The other variables may be used elsewhere but will be trashed by this code. ** Use caution; this code may take place in the middle of another script, if a hero gains a level or a battle is provoked ** Functions Used: 643-661, 8166 ** Timers Used: 74 --------> ARCANE.ERM (04) (Arcane Tower) Author: Donald ** Variables Used: v590, v600-v617, v618, z403 ** Flags used: 2-5 ** z403 must not be changed in other programs! ** v590 must always be 0! Some of my other scripts also use it as 0 for hint indexing. ** The other variables may be used elsewhere but will be trashed by this code. ** Functions Used: 620-627 --------> BANK.ERM (05) (Bank) Author: Donald ** Variables Used: v590, v592-v606, m-n, z401 ** v592-v599, z401 must be untouched by other ERM programs! ** v590 must be 0! Some of my other scripts also use it as 0 for hint indexing. ** The other variables may be used elsewhere but will be trashed by this code. ** Functions Used: 631, 8165 ** Timers Used: 75 --------> DEMON.ERM (06) (Hourglass of Asmodeus) Author: Timothy Flags Used in this Script: 1, 266-271 Variables used in this Script: v234,v247,v266-284, v1255-v1256, v9300, z266-269, z444 Functions used in this Script: 6664-6670 Macro Names used in this Script: $xpos$, $ypos$, $lpos$, $hpower$, $apower$, $hsex$, $hnumber$, $aknow$, $hcolour$, $aname$, $hrname$, $hisher$ --------> FISHWELL.ERM (07) (Fishing Well) Author: Timothy Flags Used in this Script: 1-6 Variables Used in this Script: v300-v308, v998-v1000, z1-z2, z300-z303 Functions Used in this Script: 1100-1110, 14000 --------> JUNKMERC.ERM (08) (Junk Merchant) Author: Donald ** Variables Used: v590, v600-v612, z326-z330, z400 ** Flags Used: 2 ** v590 must always be 0! Some of my other scripts also use it as 0 for hint text indexing. ** z400 must not be changed by other programs! ** The other variables may be used elsewhere but will be trashed by this code. ** Functions Used: 640-641 --------> MARKTIME.ERM (09) (Market of Time) Author: Timothy Flags used: 1-4, 1000 Variables used: v50-v54, v451-v469, w45, z1, z47-z61, z241-248 Functions used: 451 Dialogs used: 14 Macros used: @hsex@, @slevel@, @pgold@, @sicon@, @cday@, @skillnum@, @pithnum@, @skname@, @hname@, @he-she@, @man-woman@, @pithy@ --------> MUSHROOM.ERM (10) (Magic Mushrooms) Author: Bruno Uses timer 10 and Functions 10-12 Uses v1-v3 just for local use Uses w20-w27 to track hero visits to mushrooms and previous skill levels Uses z10-z17 for hint texts --------> PALACE.ERM (11) (Palace of Dreams) Author: Timothy Flags Used: 1-3 Variables Used: v1-v2, v101-v111, z1, z3-z6, z450 Functions Used: 777-779 --------> SKULL.ERM (12) (Living Skull) Author: Timothy Flags used in this script: 1,21,27 Variables used in this script: v1, v24-v34,v94,v95,z1,z22-z44,z454 Function numbers used in this script: 20-24 Extended Dialogue Box numbers used in this script: 20-21 Variables that MUST be preserved outside this script: z454 --------> TAVERN.ERM (13) (Tavern Gambling Game) Author: Timothy Functions used in this code: 1, 2 Flags used in this code: 1, 400-408 Variables used in this code: v400-v420, z201-z205, w41-w42 --------> TRANSALT.ERM (14) (Altar of Transformation) Author: Timothy Flags Used in this Script: 1,209-212 Variables Used in this Script: v88-v95,x16,z451-z453 Functions Used in this Script: 18001-18009 Timers Used in this Script: 80 --------> MYSTERIO.ERM (15) (Mysterious Creature Dwelling) Author: Dieter ** Variables Used: v141-v143, z141-z143, w14 ** Flags Used: 140,141 ** Functions Used: FU141-FU145 ** Timers Used: TM14 ** Variables v141, z142, z143 and w14 must not be modified by other programs! --------> BATTLE.ERM (16) (Battle Academy) Author: Anders Flags: 1-10 Variables: (v1-v2), v381-v383, v388 z382 (may not be used in other scripts), z1-z4, w38, [z116000-z116037] Timers: TM30 Functions: FU3610-FU3618, FU8165-FU8167 --------> POTIONS.ERM (17) (Potion Fountains) Author: Bruno Variables: v1-v12, v40-v41, v1260-v1261, w10-w12, z1-z3, z18-z21 Flags: 1, 902-907 Functions: 800-802, 810-815 --------> ALMS.ERM (18) (Alms House) Author: Donald ** Variables Used: v590, v600-v606, z326, z402 ** z402 must not be changed elsewhere! ** v590 must always be 0! Some of my other scripts also use it as 0 for hint indexing ** The other variables may be used elsewhere but will be trashed by this code. ** Functions Used: 610-611 --------> MASTERS.ERM (19) *NOTE: This script is NOT part of WoG 3.57f* (Masters of Life) Author: Sir Four Variables: v777 Functions: FU100 Flags: none Timers: 11 --------> WEEK.ERM (20) (Week of Monsters) Author: Timothy Flags Used in this Script: 1, 56, 170-172, 412 v Variables used: v1-v7, v166-200, v205, v361-v367, v372-373, v1200-1210, z Variables used: z190-199, z495 Functions used: 180-184, 5300-5309, 8000 Timers used in this script: 61-63 --------> FREELANC.ERM (21) (Freelancer's Guild) Author: Timothy Variables: z1-z5, v210-247, v249-257, z210-z231 Flags: 49-51 Functions: 1400-1409 Dialogues: 30-32 Timers: 64 --------> MUTTER.ERM (22) (Monster Mutterings) Author: Timothy Variables used: v371,v1212-v1214, z119-z141,z469,(z480-z492) Flags used: 2,57 Functions used: 2826 --------> SORCERY.ERM (23) (Sorcery Skill Enhancement) Author: Timothy Flags Used in this Script: 1-3, 410, 872 Variables Used in this Script: v1-v4, v310-v312, z1-z5, z440-z443 (hint text) Functions Used in this Script: 849, 5000-5037, 8167 Timer: 18 --------> HINTTEXT.ERM (24) (Enhanced Dwelling Hint Text) Author: Timothy Flags Used in this Script: 1-3,58 Variables Used in this Script: v1,v94-v95,z1-z3 Functions Used in this Script: 2400-2406 --------> OPTIONS.ERM (25) (Map Options) Author: Timothy Variables used: v975-v976, v1-v4, z1-z4 Flags used: 1 Functions used: 10799-10815 Dialogue Box numbers used: 17 Timers: 34 --------> ARTIFICE.ERM (26) (Artificer) Author: Dieter ** Variables used: v160-v164, z160-z166, ** Functions used:FU160, FU161, ** Flags used: 160-162 ** Timers used: 16 --------> SPELLB.ERM (27) (Spell Book) Author: Anders Variables used: (v1-v4), (z1-z9), [z127000-z127003] Functions used: FU3633-FU3638 --------> WIZSCH.ERM (28) (School of Wizardry) Author: Anders Flags: (1-10) Variables: v384-v386, v389, z383, w38 (may not be used in other scripts), (v1-v5), (z1-z4), [z128000-z128076] Timers: TM30 Functions: FU3620-FU3630, FU8165-FU8167 --------> CHEST.ERM (29) (Chest) Author: Donald ** Variables Used: w63, w80, z326, v550-v559, v600-v646 ** Flags Used: 2 ** v550-v559 are a bit table used by several of my scripts. It must not be changed but may be used. ** w63 is from the Adventure Cave script and may not otherwise be modified. ** w80 must not be modified by other scripts. ** The other variables may be used elsewhere, but get trashed by this code. ** Functions Used: 840-848 --------> CAVE.ERM (30) (Adventure Cave) Author: Donald ** Variables Used: z326-z330, z360-z366, z368-z379, z404, v510-v548, v550-v559, v600-v669, w61-w78, i ** v510-v548, w61-w74, and z404 must not be changed elsewhere! ** v550-v559 is a bit table also used by the map rules, it must not be changed but may be used elsewhere. ** The other variables may be used elsewhere but will be trashed by this code. ** Flags used: 2, 600-603 ** Functions Used: 730-776, 780-799, 820-835 ** Timers Used: 90 --------> CHEST2.ERM (31) (Treasure Chest 2) Author: Timothy Flags used: 1-2, 409, 1000 Variables used: v1-v6, z1-z5, w52-w54, w64 (check only) Timers used: 28 Functions used: 5200-5208, 5210-5211 Note: Function 5209 is used in the update of WoGify: script00.erm. --------> SUMMON.ERM (32) (Summoning Stones) Author: Timothy Variables: v1-9, v234, 247, v360-370, v998-1000, v1211 z1-4, z480-494 All variables may be reused except z493 and z494 which store the hint text. Flags: 1,2,4, 57 ("Week of Monsters" flag) Functions: 5219-5229 Timers: 98 --------> LSCROLLS.ERM (33) (Living Scrolls) Author: Timothy Variables Used: v1-v6, z1-z2, v1218, v1220-v1235 Functions Used: 5244-5255, 5260-5262 --------> CARDS.ERM (34) (Cards of Prophecy) Author: Matthew ** flags used: 270,271 ** z-variable usage: 698, 134001-134025 ** v-variable usage: 1300-1327, 1332-1335 ** Function usage: 13500-13507 --------> MYST.ERM (35) (Mysticism Skill Enhancement) Author: Anders Variables used: (v1-v10), (z1-z9), z800-z803, [z135000-z135177] Flags: (1-10), 56, 172, 173, 412 Functions: FU8150-FU8165 Timers: TM30 --------> MITHRIL.ERM (36) (Mithril) Author: Anders Variables used: (v1-v6), (z1-z9), z805-z815, [z136000-z136058] Flags: (1, 9, 10), 172, 410, 870-874 Timers: TM99 Functions: FU709, FU8170-FU8188 Sets up PO:N numbers at Mine, Water Wheel and Windmill entrance squares. --------> BALANCE.ERM (37) (Rebalanced Factions) Author: Steven Variables used: v1, v346, v1500, z100-z103 Functions: 4850 Timers: 31 --------> KARMIC.ERM (38) (Karmic Battles) Author: Dieter ** Variables Used: v490-v491, w49 ** Flags Used: 490 ** Functions Used: FU491-FU494 ** Variables v490,v491 and Flag 490 must not be modified by other programs! --------> SPECIAL.ERM (39) (Hero Specialization Boost) Author: Alexis Variables: v425-v436, v9001, w28-w32, z405-406 Functions: FU803-FU808, FU836-FU838, FU850-FU852 Flags: 428, 429, 430 Timers: 77 --------> MONEY.ERM (40) (First Money) Author: Alexis Variables: v428-v429 Timers: 78 --------> EXTENDER.ERM (41) (Battle Extender) Author: Alexis Variables: v425-v427 Functions: FU809,839 ** IMPORTANT NOTE ** Scripts listed after 41 (plus script19.erm) are NOT part of WoG 3.57f but are currently being worked on (and variables reserved). They will be part of WoG 3.58 or they may be made available earlier if we release a tested script update prior to 3.58. ** IMPORTANT NOTE ** --------> GARRISONS.ERM (42) (Garrisons) Author: Timothy Variables: v1-v9, z1-z5, v1236-v1239, v1253-v1254 Functions: 10850-10862 Timers: 19 (shared with WoGify), 48 Dialogues: 88 --------> SUPPORT.ERM (43) Author: Alexis Variables: z432-439, v425-435 Functions: FU853-858 Flags: 431 --------> EMERALD.ERM (44) (Emerald Tower) Author: Timothy Permanent Variables: z816-z841, v1240-v1252 (v1255 used by script06.erm) Temporary Variables: v1-v6, v360-v369, z1-z5, z480-z490 Functions: 10900-10910 Timers: 38 Dialogues: 3 --------> ADDITION.ERM (45) Author: Alexis Variables: v425-v429, v1600-v1983 Flags 432, 433 Functions: FU859-869 Timers: TM82 --------> CREATURE.ERM (46) Author: ??? Variables: none Functions: FU950 --------> HATREDS.ERM (47) Author: Matthew Timer 13 v-vars: 1340-1357 flags: 130-132 (possibly will be using flag 133 as well but not sure yet) Functions 13520-13525 --------> SKILLS2.ERM (48) (Enhanced Secondary Skills) Author: Arstahd Variables used: s r V Variables used: v7020-v7053, v7186-v7197 Z Variables used: z1-z3, z700-z706, z710-z728, z732-z752 Y Variables used: y1-y11 W Variables used: w90-w94 Functions used: 7000-7025 Timers used: 50, 51 Flags used: 1, 2, 70-72 --------> ARTI2.ERM (49) (Enhanced Artifacts) Author: Arstahd Variables used: ? --------> MONSTERS.ERM (50) (Enhanced Monsters) Author: Arstahd Variables used: i, v7000-v7010, v7183 y1-y9 Flags used: 75-77 Functions used: 7060-7066 --------> COMMAND.ERM (51) (Enhanced Commanders) Author: Arstahd ** Variables used: v7080-v7087, v7185, y1-y9 ** Functions used: 7070-7073 ** Timers used: none --------> ??????.ERM (52) (?) Author: Sir Four Variables used: ? --------> MAGEMARK.ERM (53) Wishing Vault or Mage Market Author: Anders Variable used: Variables: (v1-v10), (v600-v684) (though fewer may actually be needed), v165, (z1-z5), z380-z381 Flags: (1-10) Functions: FU8200-FU8227; Timers: TM30