Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
story.h
Go to the documentation of this file.
1#ifndef DW3_STORY_H
2#define DW3_STORY_H
3
4/*
5 * The story: the points of GAME.progress, and the event flags by name.
6 * game_state.h includes it; FLAG(), PROGRESS() and the other condition
7 * codes are defined there.
8 */
9
10/*
11 * The points of the story (GAME.progress), each named after the event that
12 * moves the story on to it, in the order the game plays them. The stages'
13 * endEventN functions set them, and the scripts test them (PROGRESS(n), and
14 * PROGRESS_RANGES for the SPECIAL conditions). Each comment gives the stage
15 * and event that sets the point and what happens in it, and for some events
16 * the title (translated) that STAGSLCT's list of scenes, the debug menu,
17 * gives it ("DM0005" is event 5). Nothing sets 0x2A or 0x2C; PROGRESS_RANGES
18 * ends two ranges at them.
19 */
21 /* a new game; WSTAG780's event 0, where Junior meets Ivy and Teddy at the
22 Online Center in the real world, sets it again */
24 /* WSTAG785, event 1: the account is registered, and the clerk sends
25 Junior to the Chamber Room */
27 /* WSTAG225 (Login Room, Asuka City), event 5: the first login, where the
28 account clerk explains Digimon Online (DM0005, "first step online") */
30 /* WSTAG212, events 10 to 12: the Tamer Service downloads the starter
31 pack's Digimon (DM0010-DM0012, "partner get") */
33 /* WSTAG200, event 52: after the first battle, won against Tamer Genji
34 (event 50), the Digimon Navi gives its tips; the field menu opens from
35 here on */
37 /* WSTAG420, event 71: the Seiryu Leader is beaten (the Silver ID and the
38 Seiryu Badge), and an earthquake stops the gondola */
40 /* WSTAG410 (East Station), event 90: the Blue Card the player was given
41 turns out to be a fake */
43 /* WSTAG440 (South Station), event 152: a ghost's voice in the empty
44 station */
46 /* WSTAG480 (Jungle Grave), event 171: Sepikmon will say how to beat
47 Zanbamon once the player finds his lost mask (DM0180, "a mask for
48 Sepikmon", is the next event) */
50 /* WSTAG380 (Divermon's Lake), event 205: the Mischievous Mat, caught in
51 his Etemon Suit, gives the player the Agumon Suits */
53 /* WSTAG475 (Shaman House), event 230: the Smelly Herb drives Zanbamon off
54 the way */
56 /* WSTAG520, event 261: the Suzaku Leader is beaten (the Suzaku Badge),
57 and Kail says Teddy went to Asuka City's Admin Center */
59 /* WSTAG212, event 273: Kail and the player will put on the Agumon Suits
60 to look for Teddy */
62 /* WSTAG237 (Underground Path), event 300: in the Agumon Suit; Kail goes
63 on ahead alone */
65 /* WSTAG212, event 352: Teddy is found; MAGAMI is part of the A.o.A, and
66 the player sets off to beat the Game Master */
68 /* WSTAG460 (Reliability Spot), event 370: the Qing Long Chief, asked for
69 the Digi-Egg of Knowledge, fights the player (the DE Sincerity) */
71 /* WSTAG685 (Underground Cave, Byakko City), event 413: the rock blocking
72 the hole is Numemon */
74 /* WSTAG655 (Mirage Room), event 431: HiAndromon guards the way to
75 Numemon (the Byakko Badge) */
77 /* WSTAG605 (Operation Room), event 511: the player saves Lisa from
78 WaruMonzaemon (the Rusty Rifle) */
80 /* WSTAG615 (Sewers), event 531: Lucky Mouse appears (DM0531, "Lucky Mouse
81 appears") */
83 /* WSTAG620 (the rebels' hideout), event 534: the Byakko Leader takes the
84 player for the A.o.A and fights */
86 /* WSTAG620, event 551: Nick finds a Staff Pass for the player */
88 /* WSTAG325 (Control Room, Asuka City), event 560: a Soldier guards the
89 way */
91 /* WSTAG305 (Master Room), event 661: the Game Master is caught, but
92 Vemmon takes over the Optical Network; an emergency chamber is said to
93 be in the North Sector */
95 /* WSTAG210 (Main Lobby, Asuka City), event 685: the A.o.A have
96 reprogrammed Knightmon, which takes the player for a virus */
98 /* WSTAG685, event 690: Leader Chuck says stopping Knightmon takes the
99 four City Leaders' Code Passes */
101 /* WSTAG520 (Suzaku Hall), event 695: another earthquake; Bulbmon digs
102 the holes */
104 /* WSTAG545 (Bug Maze Pit), event 711: Patamon heard a weird sound from
105 the jungle, where its leader went */
107 /* WSTAG421 (Qing Long City), event 743: with the Blue ID Pass a Trooper
108 takes the player for the Qing Long Chief, and Zhu Que City opens */
110 /* WSTAG521 (Zhu Que Hall), event 751: Bulbmon is beaten (the Red ID Pass);
111 its hole leads on to the Amaterasu server */
113 /* WSTAG526 (Zhu Que UG Lake), event 760: the fight with Zanbamon (the DE
114 Knowledge) */
116 /* WSTAG755 (Battle Gate), event 781: the Xuen Wu Chief, who holds the
117 Black ID Pass, fights the player (the Genbu Badge) */
119 /* WSTAG750 (the emergency Matrix Chamber), event 820: back in the real
120 world, for 180 seconds */
122 /* WSTAG750, event 886: the news say the Optical Network is offline */
124 /* WSTAG305, events 893 and 895: the way into Amaterasu City, the A.o.A's
125 headquarters, is still to be found */
127 /* WSTAG676 (Bai Hu Dome), event 901: the General says the A.o.A came on
128 Bulbmon (the White ID Pass) */
130 /* WSTAG756 (Battle Gate), event 911: the Black ID Pass */
132 /* WSTAG206 (Amaterasu Bridge), event 922: an Attacker holds the bridge */
134 /* WSTAG226 (Login Room, Amaterasu City), event 935, after the President
135 of MAGAMI gives himself up (WSTAG311's events 931 to 933) */
137 /* WSTAG310 (A.o.A Headquarters, Asuka City), event 961 */
139 /* WSTAG311 (A.o.A Headquarters, Amaterasu City), event 982, after event
140 981, where the A.o.A's Operation Sigma and the Gunslinger come out */
142 /* WSTAG810 (Gunslinger 1F), event 1035 */
144 /* WSTAG820, event 1080, with Snatchmon: each encounter plays
145 MODE_BATTLE_MOVIE first */
147 /* WSTAG780, event 1500, in the European and Japanese versions: the extra
148 chapter, whose stages are FIELDSTG_extraStages (WSTAG920 to WSTAG974) */
150};
151
152/*
153 * The event flags, by group (FLAG(group, id), include/engine/game_state.h),
154 * each named after what sets it, with where. The names come from the texts
155 * of the talks and events that set and test them; the flags whose meaning
156 * isn't clear stay numbers.
157 */
158
159/* FLAGS_00, the temporary flags (bits 0-0x17 clear when the field changes
160 mode, GAME.clearTempFlags); the stages use bits 0-6 as their own, and
161 those stay numbers */
162
163/* set by updateModeFlags on the way back from a card battle: 1 if the
164 player won it (FLAGS_00.cardBattleWon, which the card battle sets), else
165 0 */
166#define FLAG_CARD_BATTLE_WON FLAG(0, 0x10)
167/* set by updateModeFlags on the way back from a card battle; the talks that
168 follow one test it and clear it */
169#define FLAG_CARD_BATTLE_ENDED FLAG(0, 0x11)
170
171/* GAME.flags02: the chests and the things lying about, set when the player
172 takes them, tested 0 to show them */
173
174/* wstag320: chest that gives 300 BIT ("I got 300 BIT!"); its conditions
175 test it 0 */
176#define FLAG_ASUKA_SEWERS_300_BIT_FOUND FLAG(2, 0)
177/* wstag330: chest that gives the Power Charge, "I got" text; its conditions
178 test it 0 */
179#define FLAG_CENTRAL_PARK_POWER_CHARGE_FOUND FLAG(2, 1)
180/* wstag350: chest that gives the Buckler, "I got" text; its conditions test
181 it 0 */
182#define FLAG_WEST_WIRE_FOREST_BUCKLER_FOUND FLAG(2, 2)
183/* wstag380: chest that gives the Bandanna, "I got" text; its conditions
184 test it 0 */
185#define FLAG_DIVERMON_LAKE_BANDANNA_FOUND FLAG(2, 3)
186/* wstag450: chest that gives the Tin Mail, "I got" text; its conditions
187 test it 0 */
188#define FLAG_BULK_BRIDGE_TIN_MAIL_FOUND FLAG(2, 4)
189/* wstag530: chest that gives the Power Charge, "I got" text; its conditions
190 test it 0 */
191#define FLAG_JUNGLE_SHRINE_POWER_CHARGE_FOUND FLAG(2, 5)
192/* wstag205: chest that gives the Iron Glove, "I got" text; its conditions
193 test it 0 */
194#define FLAG_ASUKA_BRIDGE_IRON_GLOVE_FOUND FLAG(2, 6)
195/* wstag320: chest that gives the Crimson Blade, "I got" text; its
196 conditions test it 0 */
197#define FLAG_ASUKA_SEWERS_CRIMSON_BLADE_FOUND FLAG(2, 7)
198/* wstag525: chest that gives the Crossbow, "I got" text; its conditions
199 test it 0 */
200#define FLAG_SUZAKU_LAKE_CROSSBOW_FOUND FLAG(2, 8)
201/* wstag565: chest that gives the Power Charge, "I got" text; its conditions
202 test it 0 */
203#define FLAG_NORTH_BADLAND_W_POWER_CHARGE_FOUND FLAG(2, 9)
204/* wstag565: chest that gives 100 BIT ("I got 100 BIT!"); its conditions
205 test it 0 */
206#define FLAG_NORTH_BADLAND_W_100_BIT_FOUND FLAG(2, 0xA)
207/* wstag565: chest that gives the Energy Disk, "I got" text; its conditions
208 test it 0 */
209#define FLAG_NORTH_BADLAND_W_ENERGY_DISK_FOUND FLAG(2, 0xB)
210/* wstag570: chest that gives 600 BIT ("I got 600 BIT!"); its conditions
211 test it 0 */
212#define FLAG_NORTH_BADLAND_E_600_BIT_FOUND FLAG(2, 0xC)
213/* wstag585: chest that gives the HP Chip, "I got" text; its conditions test
214 it 0; Dum Dum Factory (wstag580) tests it 1 to start event 0x1D6 */
215#define FLAG_DUCT_ROOM_01_HP_CHIP_FOUND FLAG(2, 0xD)
216/* wstag600: chest that gives the Mind Chip, "I got" text; its conditions
217 test it 0; Dum Dum Factory (wstag580) tests it 1 to start event 0x1E0 */
218#define FLAG_DUCT_ROOM_04_MIND_CHIP_FOUND FLAG(2, 0xE)
219/* wstag590: chest that gives the MP Chip, "I got" text; its conditions test
220 it 0; Dum Dum Factory (wstag580) tests it 1 to start event 0x1EA */
221#define FLAG_DUCT_ROOM_02_MP_CHIP_FOUND FLAG(2, 0xF)
222/* wstag595: chest that gives the Power Chip, "I got" text; its conditions
223 test it 0; Dum Dum Factory (wstag580) tests it 1 to start event 0x1F4 */
224#define FLAG_DUCT_ROOM_03_POWER_CHIP_FOUND FLAG(2, 0x10)
225/* wstag315: chest that gives the Power Charge, "I got" text; its conditions
226 test it 0 */
227#define FLAG_ASUKA_ADMIN_B1F_POWER_CHARGE_FOUND FLAG(2, 0x11)
228/* wstag315: chest that gives 100 BIT ("I got 100 BIT!"); its conditions
229 test it 0 */
230#define FLAG_ASUKA_ADMIN_B1F_100_BIT_FOUND FLAG(2, 0x12)
231/* wstag315: chest that gives the Life Disk, "I got" text; its conditions
232 test it 0 */
233#define FLAG_ASUKA_ADMIN_B1F_LIFE_DISK_FOUND FLAG(2, 0x13)
234/* wstag300: chest that gives the Power Charge, "I got" text; its conditions
235 test it 0 */
236#define FLAG_ASUKA_ADMIN_2F_POWER_CHARGE_FOUND FLAG(2, 0x14)
237/* wstag285: chest that gives the Metal Horn, "I got" text; its conditions
238 test it 0 */
239#define FLAG_ASUKA_ADMIN_1F_METAL_HORN_FOUND FLAG(2, 0x15)
240/* wstag218: chest that gives 1000 BIT ("I got 1000 BIT!"); its conditions
241 test it 0 */
242#define FLAG_ASUKA_CITY_1000_BIT_FOUND FLAG(2, 0x16)
243/* wstag218: chest that gives the Power Charge, "I got" text; its conditions
244 test it 0 */
245#define FLAG_ASUKA_CITY_POWER_CHARGE_FOUND FLAG(2, 0x17)
246/* wstag540: chest that gives the Rubber Suit, "I got" text; its conditions
247 test it 0 */
248#define FLAG_BUG_MAZE_RUBBER_SUIT_FOUND FLAG(2, 0x18)
249/* wstag540: chest that gives the Power Charge, "I got" text; its conditions
250 test it 0 */
251#define FLAG_BUG_MAZE_POWER_CHARGE_FOUND FLAG(2, 0x19)
252/* wstag540: chest that gives 1600 BIT ("I got 1600 BIT!"); its conditions
253 test it 0 */
254#define FLAG_BUG_MAZE_1600_BIT_FOUND FLAG(2, 0x1A)
255/* wstag545: chest that gives the Digitama Mail, "I got" text; its
256 conditions test it 0 */
257#define FLAG_BUG_MAZE_PIT_DIGITAMA_MAIL_FOUND FLAG(2, 0x1B)
258/* wstag381: chest that gives the Knight Shield, "I got" text; its
259 conditions test it 0 */
260#define FLAG_DIVERMON_LAKE_KNIGHT_SHIELD_FOUND FLAG(2, 0x1C)
261/* wstag331: chest that gives the Super Charge, "I got" text; its conditions
262 test it 0 */
263#define FLAG_CENTRAL_PARK_SUPER_CHARGE_FOUND FLAG(2, 0x1D)
264/* wstag531: chest that gives the Power Charge, "I got" text; its conditions
265 test it 0 */
266#define FLAG_AMATERASU_JUNGLE_SHRINE_POWER_CHARGE_FOUND FLAG(2, 0x1E)
267/* wstag526: chest that gives the Evil Fang, "I got" text; its conditions
268 test it 0 */
269#define FLAG_ZHU_QUE_LAKE_EVIL_FANG_FOUND FLAG(2, 0x1F)
270/* wstag690: chest that gives the Needle Glove, "I got" text; its conditions
271 test it 0 */
272#define FLAG_BOOT_MOUNTAIN_NEEDLE_GLOVE_FOUND FLAG(2, 0x20)
273/* wstag690: chest that gives the Power Charge, "I got" text; its conditions
274 test it 0 */
275#define FLAG_BOOT_MOUNTAIN_POWER_CHARGE_FOUND FLAG(2, 0x21)
276/* wstag695: chest that gives 3000 BIT ("I got 3000 BIT!"); its conditions
277 test it 0 */
278#define FLAG_SNOW_MOUNTAIN_3000_BIT_FOUND FLAG(2, 0x22)
279/* wstag695: chest that gives the Shamshir, "I got" text; its conditions
280 test it 0 */
281#define FLAG_SNOW_MOUNTAIN_SHAMSHIR_FOUND FLAG(2, 0x23)
282/* wstag705: chest that gives the Power Charge, "I got" text; its conditions
283 test it 0 */
284#define FLAG_FREEZE_MOUNTAIN_POWER_CHARGE_FOUND FLAG(2, 0x24)
285/* wstag705: chest that gives the Knight Shield, "I got" text; its
286 conditions test it 0 */
287#define FLAG_FREEZE_MOUNTAIN_KNIGHT_SHIELD_FOUND FLAG(2, 0x25)
288/* wstag760: chest that gives the Life Disk, "I got" text; its conditions
289 test it 0 */
290#define FLAG_GENBU_CITY_LIFE_DISK_FOUND FLAG(2, 0x26)
291/* wstag395: chest that gives the Kulon Armor, "I got" text; its conditions
292 test it 0 */
293#define FLAG_WIND_PRAIRIE_KULON_ARMOR_FOUND FLAG(2, 0x27)
294/* wstag400: chest that gives the Down Jacket, "I got" text; its conditions
295 test it 0 */
296#define FLAG_KICKING_FOREST_DOWN_JACKET_FOUND FLAG(2, 0x28)
297/* wstag560: chest that gives the Charisma Chip, "I got" text; its
298 conditions test it 0 */
299#define FLAG_PELCHE_OASIS_CHARISMA_CHIP_FOUND FLAG(2, 0x29)
300/* wstag396: chest that gives 1600 BIT ("I got 1600 BIT!"); its conditions
301 test it 0 */
302#define FLAG_WIND_PRAIRIE_1600_BIT_FOUND FLAG(2, 0x2A)
303/* wstag401: chest that gives the Gold ID, "I got" text; its conditions test
304 it 0 */
305#define FLAG_KICKING_FOREST_GOLD_ID_FOUND FLAG(2, 0x2B)
306/* wstag860: chest that gives the Charisma Chip, "I got" text; its
307 conditions test it 0 */
308#define FLAG_SEABED_CHARISMA_CHIP_FOUND FLAG(2, 0x2C)
309/* wstag880: chest that gives the HP Chip, "I got" text; its conditions test
310 it 0 */
311#define FLAG_CIRCUIT_BOARD_HP_CHIP_FOUND FLAG(2, 0x2D)
312/* wstag880: chest that gives the MP Chip, "I got" text; its conditions test
313 it 0 */
314#define FLAG_CIRCUIT_BOARD_MP_CHIP_FOUND FLAG(2, 0x2E)
315/* wstag880: chest that gives the Power Chip, "I got" text; its conditions
316 test it 0 */
317#define FLAG_CIRCUIT_BOARD_POWER_CHIP_FOUND FLAG(2, 0x2F)
318/* wstag880: chest that gives the Armor Chip, "I got" text; its conditions
319 test it 0 */
320#define FLAG_CIRCUIT_BOARD_ARMOR_CHIP_FOUND FLAG(2, 0x30)
321/* wstag880: chest that gives the Mind Chip, "I got" text; its conditions
322 test it 0 */
323#define FLAG_CIRCUIT_BOARD_MIND_CHIP_FOUND FLAG(2, 0x31)
324/* wstag880: chest that gives the Wisdom Chip, "I got" text; its conditions
325 test it 0 */
326#define FLAG_CIRCUIT_BOARD_WISDOM_CHIP_FOUND FLAG(2, 0x32)
327/* wstag880: chest that gives the Boost Chip, "I got" text; its conditions
328 test it 0 */
329#define FLAG_CIRCUIT_BOARD_BOOST_CHIP_FOUND FLAG(2, 0x33)
330/* wstag880: chest that gives the Fire Chip, "I got" text; its conditions
331 test it 0 */
332#define FLAG_CIRCUIT_BOARD_FIRE_CHIP_FOUND FLAG(2, 0x34)
333/* wstag880: chest that gives the Water Chip, "I got" text; its conditions
334 test it 0 */
335#define FLAG_CIRCUIT_BOARD_WATER_CHIP_FOUND FLAG(2, 0x35)
336/* wstag880: chest that gives the Ice Chip, "I got" text; its conditions
337 test it 0 */
338#define FLAG_CIRCUIT_BOARD_ICE_CHIP_FOUND FLAG(2, 0x36)
339/* wstag880: chest that gives the Wind Chip, "I got" text; its conditions
340 test it 0 */
341#define FLAG_CIRCUIT_BOARD_WIND_CHIP_FOUND FLAG(2, 0x37)
342/* wstag745: chest that gives 5000 BIT ("I got 5000 BIT!"); its conditions
343 test it 0 */
344#define FLAG_DARK_DUNGEON_5000_BIT_FOUND FLAG(2, 0x38)
345/* wstag795: chest that gives the Trihorn, "I got" text; its conditions test
346 it 0 */
347#define FLAG_MAGASTA_B1F_TRIHORN_FOUND FLAG(2, 0x39)
348/* wstag795: chest that gives the Power Charge, "I got" text; its conditions
349 test it 0 */
350#define FLAG_MAGASTA_B1F_POWER_CHARGE_FOUND FLAG(2, 0x3B)
351/* wstag795: chest that gives the Grey Sword, "I got" text; its conditions
352 test it 0 */
353#define FLAG_MAGASTA_B1F_GREY_SWORD_FOUND FLAG(2, 0x3E)
354/* wstag795: chest that gives the Royal Spear, "I got" text; its conditions
355 test it 0 */
356#define FLAG_MAGASTA_B1F_ROYAL_SPEAR_FOUND FLAG(2, 0x3F)
357/* wstag795: chest that gives the Super Charge, "I got" text; its conditions
358 test it 0 */
359#define FLAG_MAGASTA_B1F_SUPER_CHARGE_FOUND FLAG(2, 0x41)
360/* wstag795: chest that gives the Tenjinmaru, "I got" text; its conditions
361 test it 0 (the US text says 300 BIT; the item code and JP text say
362 otherwise) */
363#define FLAG_MAGASTA_B1F_TENJINMARU_FOUND FLAG(2, 0x42)
364/* wstag795: chest that gives the Venom Fang, "I got" text; its conditions
365 test it 0 */
366#define FLAG_MAGASTA_B1F_VENOM_FANG_FOUND FLAG(2, 0x43)
367/* wstag795: chest that gives the High Security, "I got" text; its
368 conditions test it 0 */
369#define FLAG_MAGASTA_B1F_HIGH_SECURITY_FOUND FLAG(2, 0x44)
370/* wstag800: chest that gives the Beret, "I got" text; its conditions test
371 it 0 */
372#define FLAG_MAGASTA_B2F_BERET_FOUND FLAG(2, 0x45)
373/* wstag800: chest that gives the Royal Crown, "I got" text; its conditions
374 test it 0 */
375#define FLAG_MAGASTA_B2F_ROYAL_CROWN_FOUND FLAG(2, 0x46)
376/* wstag800: chest that gives the Super Charge, "I got" text; its conditions
377 test it 0 */
378#define FLAG_MAGASTA_B2F_SUPER_CHARGE_FOUND FLAG(2, 0x47)
379/* wstag800: chest that gives the Misty Armor, "I got" text; its conditions
380 test it 0 */
381#define FLAG_MAGASTA_B2F_MISTY_ARMOR_FOUND FLAG(2, 0x49)
382/* wstag566: chest that gives the Super Charge, "I got" text; its conditions
383 test it 0 */
384#define FLAG_NORTH_BADLAND_W_SUPER_CHARGE_FOUND FLAG(2, 0x4A)
385/* wstag566: chest that gives the Life Disk, "I got" text; its conditions
386 test it 0 */
387#define FLAG_NORTH_BADLAND_W_LIFE_DISK_FOUND FLAG(2, 0x4B)
388/* wstag586: chest that gives the Armor Chip, "I got" text; its conditions
389 test it 0 */
390#define FLAG_DUCT_ROOM_01_ARMOR_CHIP_FOUND FLAG(2, 0x4C)
391/* wstag591: chest that gives the Wisdom Chip, "I got" text; its conditions
392 test it 0 (the US text says Mind Chip; the item code and JP text say
393 otherwise) */
394#define FLAG_DUCT_ROOM_02_WISDOM_CHIP_FOUND FLAG(2, 0x4D)
395/* wstag596: chest that gives the Boost Chip, "I got" text; its conditions
396 test it 0 */
397#define FLAG_DUCT_ROOM_03_BOOST_CHIP_FOUND FLAG(2, 0x4E)
398/* wstag601: chest that gives the Charisma Chip, "I got" text; its
399 conditions test it 0 */
400#define FLAG_DUCT_ROOM_04_CHARISMA_CHIP_FOUND FLAG(2, 0x4F)
401/* wstag691: chest that gives the Super Charge, "I got" text; its conditions
402 test it 0 */
403#define FLAG_BOOT_MOUNTAIN_SUPER_CHARGE_FOUND FLAG(2, 0x50)
404/* wstag706: chest that gives 3000 BIT ("I got 3000 BIT!"); its conditions
405 test it 0 */
406#define FLAG_FREEZE_MOUNTAIN_3000_BIT_FOUND FLAG(2, 0x52)
407/* wstag761: chest that gives the Kulon Shield, "I got" text; its conditions
408 test it 0 */
409#define FLAG_XUAN_WU_CITY_KULON_SHIELD_FOUND FLAG(2, 0x53)
410/* wstag561: chest that gives the Charisma Chip, "I got" text; its
411 conditions test it 0 */
412#define FLAG_AMATERASU_PELCHE_OASIS_CHARISMA_CHIP_FOUND FLAG(2, 0x54)
413/* wstag860: chest that gives the Train Chip 3, "I got" text; its conditions
414 test it 0 */
415#define FLAG_SEABED_TRAIN_CHIP_3_FOUND FLAG(2, 0x55)
416/* wstag880: chest that gives the Thunder Chip, "I got" text; its conditions
417 test it 0 */
418#define FLAG_CIRCUIT_BOARD_THUNDER_CHIP_FOUND FLAG(2, 0x56)
419/* wstag880: chest that gives the Metal Chip, "I got" text; its conditions
420 test it 0 */
421#define FLAG_CIRCUIT_BOARD_METAL_CHIP_FOUND FLAG(2, 0x57)
422/* wstag880: chest that gives the Devil Chip, "I got" text; its conditions
423 test it 0 */
424#define FLAG_CIRCUIT_BOARD_DEVIL_CHIP_FOUND FLAG(2, 0x58)
425/* wstag880: chest that gives the Wild Glove, "I got" text; its conditions
426 test it 0 */
427#define FLAG_CIRCUIT_BOARD_WILD_GLOVE_FOUND FLAG(2, 0x59)
428/* wstag880: chest that gives the Yin Yang Ward, "I got" text; its
429 conditions test it 0 */
430#define FLAG_CIRCUIT_BOARD_YIN_YANG_WARD_FOUND FLAG(2, 0x5A)
431/* wstag880: chest that gives the Ronin Shield, "I got" text; its conditions
432 test it 0 */
433#define FLAG_CIRCUIT_BOARD_RONIN_SHIELD_FOUND FLAG(2, 0x5B)
434/* wstag880: chest that gives the Divine Robe, "I got" text; its conditions
435 test it 0 */
436#define FLAG_CIRCUIT_BOARD_DIVINE_ROBE_FOUND FLAG(2, 0x5C)
437/* wstag746: chest that gives the Hazard Armor, "I got" text; its conditions
438 test it 0 */
439#define FLAG_DARK_DUNGEON_HAZARD_ARMOR_FOUND FLAG(2, 0x5D)
440/* wstag206: chest that gives 100 BIT ("I got 100 BIT!"); its conditions
441 test it 0 */
442#define FLAG_AMATERASU_BRIDGE_100_BIT_FOUND FLAG(2, 0x5E)
443/* wstag286: chest that gives the Ultra Charge, "I got" text; its conditions
444 test it 0 */
445#define FLAG_AMATERASU_ADMIN_1F_ULTRA_CHARGE_FOUND FLAG(2, 0x5F)
446/* wstag316: chest that gives 8500 BIT ("I got 8500 BIT!"); its conditions
447 test it 0 */
448#define FLAG_AMATERASU_ADMIN_B1F_8500_BIT_FOUND FLAG(2, 0x61)
449/* wstag316: chest that gives the Ultra Charge, "I got" text; its conditions
450 test it 0 */
451#define FLAG_AMATERASU_ADMIN_B1F_ULTRA_CHARGE_FOUND FLAG(2, 0x62)
452/* wstag321: chest that gives the High Security, "I got" text; its
453 conditions test it 0 */
454#define FLAG_AMATERASU_SEWER_HIGH_SECURITY_FOUND FLAG(2, 0x64)
455/* wstag321: chest that gives 5000 BIT ("I got 5000 BIT!"); its conditions
456 test it 0 */
457#define FLAG_AMATERASU_SEWER_5000_BIT_FOUND FLAG(2, 0x65)
458/* wstag922 (extra chapter): chest that gives the Boost Chip, "I got" text;
459 its conditions test it 0 (EU text says Armor Chip; item code and JP say
460 Boost) */
461#define FLAG_AMATERASU_BRIDGE_BOOST_CHIP_FOUND FLAG(2, 0x66)
462/* wstag938 (extra chapter): chest that gives the Fire Chip, "I got" text;
463 its conditions test it 0 */
464#define FLAG_AMATERASU_SEWER_FIRE_CHIP_FOUND FLAG(2, 0x67)
465/* wstag938 (extra chapter): chest that gives the Water Chip, "I got" text;
466 its conditions test it 0 */
467#define FLAG_AMATERASU_SEWER_WATER_CHIP_FOUND FLAG(2, 0x68)
468/* wstag940 (extra chapter): chest that gives the Armor Chip, "I got" text;
469 its conditions test it 0 */
470#define FLAG_CENTRAL_PARK_ARMOR_CHIP_FOUND FLAG(2, 0x69)
471/* wstag944 (extra chapter): chest that gives the Ice Chip, "I got" text;
472 its conditions test it 0 */
473#define FLAG_WEST_WIRE_FOREST_ICE_CHIP_FOUND FLAG(2, 0x6A)
474/* wstag950 (extra chapter): chest that gives the Mind Chip, "I got" text;
475 its conditions test it 0 */
476#define FLAG_DIVERMON_LAKE_MIND_CHIP_FOUND FLAG(2, 0x6B)
477/* wstag952 (extra chapter): chest that gives the Wind Chip, "I got" text;
478 its conditions test it 0 */
479#define FLAG_WIND_PRAIRIE_WIND_CHIP_FOUND FLAG(2, 0x6C)
480/* wstag953 (extra chapter): chest that gives the Thunder Chip, "I got"
481 text; its conditions test it 0 */
482#define FLAG_KICKING_FOREST_THUNDER_CHIP_FOUND FLAG(2, 0x6D)
483/* wstag967 (extra chapter): chest that gives the Saber Fang, "I got" text;
484 its conditions test it 0 */
485#define FLAG_SEABED_SABER_FANG_FOUND FLAG(2, 0x6E)
486/* wstag964 (extra chapter): chest that gives the Cluster Cannon, "I got"
487 text; its conditions test it 0 */
488#define FLAG_SEABED_CLUSTER_CANNON_FOUND FLAG(2, 0x6F)
489/* wstag964 (extra chapter): chest that gives the Khakkhara, "I got" text;
490 its conditions test it 0 */
491#define FLAG_SEABED_KHAKKHARA_FOUND FLAG(2, 0x70)
492/* wstag967 (extra chapter): chest that gives the Onimaru, "I got" text; its
493 conditions test it 0 */
494#define FLAG_SEABED_ONIMARU_FOUND FLAG(2, 0x71)
495/* wstag967 (extra chapter): chest that gives the Kaiser Fist, "I got" text;
496 its conditions test it 0 */
497#define FLAG_SEABED_KAISER_FIST_FOUND FLAG(2, 0x72)
498/* wstag964 (extra chapter): chest that gives the Wisdom Chip, "I got" text;
499 its conditions test it 0 */
500#define FLAG_SEABED_WISDOM_CHIP_FOUND FLAG(2, 0x73)
501/* wstag973 (extra chapter): chest that gives the Venom Fang, "I got" text;
502 its conditions test it 0 */
503#define FLAG_CIRCUIT_BOARD_VENOM_FANG_FOUND FLAG(2, 0x74)
504/* wstag973 (extra chapter): chest that gives the Laser Cannon, "I got"
505 text; its conditions test it 0 */
506#define FLAG_CIRCUIT_BOARD_LASER_CANNON_FOUND FLAG(2, 0x75)
507/* wstag973 (extra chapter): chest that gives the Crystal Rod, "I got" text;
508 its conditions test it 0 */
509#define FLAG_CIRCUIT_BOARD_CRYSTAL_ROD_FOUND FLAG(2, 0x76)
510/* wstag970 (extra chapter): chest that gives the Tenjinmaru, "I got" text;
511 its conditions test it 0 */
512#define FLAG_CIRCUIT_BOARD_TENJINMARU_FOUND FLAG(2, 0x77)
513/* wstag972 (extra chapter): chest that gives the Tempest Arm, "I got" text;
514 its conditions test it 0 */
515#define FLAG_CIRCUIT_BOARD_TEMPEST_ARM_FOUND FLAG(2, 0x78)
516/* wstag973 (extra chapter): chest that gives the Gold ID, "I got" text; its
517 conditions test it 0 */
518#define FLAG_CIRCUIT_BOARD_GOLD_ID_FOUND FLAG(2, 0x79)
519/* wstag970 (extra chapter): chest that gives the Platinum ID, "I got" text;
520 its conditions test it 0 */
521#define FLAG_CIRCUIT_BOARD_PLATINUM_ID_FOUND FLAG(2, 0x7A)
522/* wstag972 (extra chapter): chest that gives the Rusty Katana, "I got"
523 text; its conditions test it 0 */
524#define FLAG_CIRCUIT_BOARD_RUSTY_KATANA_FOUND FLAG(2, 0x7B)
525/* wstag972 (extra chapter): chest that gives the Old Wand, "I got" text;
526 its conditions test it 0 */
527#define FLAG_CIRCUIT_BOARD_OLD_WAND_FOUND FLAG(2, 0x7C)
528
529/* GAME.flags04: FIELDSTG_progressEvents' story events, Mr. Smith's
530 auctions; field_stage.c's END_CHOICE(n) sets 0x400 + n on either answer */
531
532/* Field story event at progress 5: Mr. Smith auctions the Divine Barrier;
533 set by END_CHOICE(0) on either answer, tested 0 to start it */
534#define FLAG_DIVINE_BARRIER_AUCTION_SEEN FLAG(4, 0)
535/* Field story event at progress 8: Mr. Smith auctions the Hazard Shield;
536 set by END_CHOICE(1) on either answer, tested 0 to start it */
537#define FLAG_HAZARD_SHIELD_AUCTION_SEEN FLAG(4, 1)
538/* Field story event at progress 12: Mr. Smith auctions the Sniper Guard;
539 set by END_CHOICE(2) on either answer, tested 0 to start it */
540#define FLAG_SNIPER_GUARD_AUCTION_SEEN FLAG(4, 2)
541/* Field story event at progress 14: Mr. Smith auctions the Dramon Shield;
542 set by END_CHOICE(3) on either answer, tested 0 to start it */
543#define FLAG_DRAMON_SHIELD_AUCTION_SEEN FLAG(4, 3)
544/* Field story event at progress 16: Mr. Smith auctions the Yin Yang Wand;
545 set by END_CHOICE(4) on either answer, tested 0 to start it */
546#define FLAG_YIN_YANG_WAND_AUCTION_SEEN FLAG(4, 4)
547/* Field story event at progress 22: Mr. Smith auctions the Hazard Fang; set
548 by END_CHOICE(5) on either answer, tested 0 to start it */
549#define FLAG_HAZARD_FANG_AUCTION_SEEN FLAG(4, 5)
550/* Field story event at progress 24: Mr. Smith auctions the Sniper Cannon;
551 set by END_CHOICE(6) on either answer, tested 0 to start it */
552#define FLAG_SNIPER_CANNON_AUCTION_SEEN FLAG(4, 6)
553/* Field story event at progress 26: Mr. Smith auctions the Ronin Blade; set
554 by END_CHOICE(7) on either answer, tested 0 to start it */
555#define FLAG_RONIN_BLADE_AUCTION_SEEN FLAG(4, 7)
556/* Field story event at progress 28: Mr. Smith auctions the Sniper Goggle;
557 set by END_CHOICE(8) on either answer, tested 0 to start it */
558#define FLAG_SNIPER_GOGGLE_AUCTION_SEEN FLAG(4, 8)
559/* Field story event at progress 30: Mr. Smith auctions the Divine Crown;
560 set by END_CHOICE(9) on either answer, tested 0 to start it */
561#define FLAG_DIVINE_CROWN_AUCTION_SEEN FLAG(4, 9)
562/* Field story event at progress 31: Mr. Smith auctions the Brave Helmet;
563 set by END_CHOICE(10) on either answer, tested 0 to start it */
564#define FLAG_BRAVE_HELMET_AUCTION_SEEN FLAG(4, 0xA)
565/* Field story event at progress 34: Mr. Smith auctions the Ronin Helmet;
566 set by END_CHOICE(11) on either answer, tested 0 to start it */
567#define FLAG_RONIN_HELMET_AUCTION_SEEN FLAG(4, 0xB)
568/* Field story event at progress 36: Mr. Smith auctions the Yin Yang Suit;
569 set by END_CHOICE(12) on either answer, tested 0 to start it */
570#define FLAG_YIN_YANG_SUIT_AUCTION_SEEN FLAG(4, 0xC)
571/* Field story event at progress 37: Mr. Smith auctions the Ronin Armor; set
572 by END_CHOICE(13) on either answer, tested 0 to start it */
573#define FLAG_RONIN_ARMOR_AUCTION_SEEN FLAG(4, 0xD)
574/* Field story event at progress 38: Mr. Smith auctions the Wild Suit; set
575 by END_CHOICE(14) on either answer, tested 0 to start it */
576#define FLAG_WILD_SUIT_AUCTION_SEEN FLAG(4, 0xE)
577/* Field story event at progress 39: Mr. Smith auctions the Oioi Oink; set
578 by END_CHOICE(15) on either answer, tested 0 to start it */
579#define FLAG_OIOI_OINK_AUCTION_SEEN FLAG(4, 0xF)
580
581/* GAME.flags06: the DRI agents' DDNA requests */
582
583/* wstag405: DRI Johann asks the player to get Agumon's DDNA from
584 MetalGreymon; tested in wstag445 with the DDNA not yet had */
585#define FLAG_AGUMON_DDNA_REQUESTED FLAG(6, 0)
586/* wstag420: DRI Jimmy asks the player to get Guilmon DDNA from WarGrowlmon;
587 tested in wstag490 with the DDNA not yet had */
588#define FLAG_GUILMON_DDNA_REQUESTED FLAG(6, 1)
589/* wstag330: DRI Kazuki asks for Patamon's DDNA; tested at MagnaAngemon in
590 wstag550 with the DDNA not yet had */
591#define FLAG_PATAMON_DDNA_REQUESTED FLAG(6, 2)
592/* wstag330: DRI Michael asks for Renamon's DDNA; tested at Taomon in
593 wstag565 with the DDNA not yet had */
594#define FLAG_RENAMON_DDNA_REQUESTED FLAG(6, 3)
595/* wstag635: DRI Ken wants Kotemon DDNA from Kyukimon; tested at Kyukimon in
596 wstag525 with the DDNA not yet had */
597#define FLAG_KOTEMON_DDNA_REQUESTED FLAG(6, 4)
598/* wstag635: DRI Yuji wants Kumamon DDNA from GrapLeomon; tested at
599 GrapLeomon in wstag490 with the DDNA not yet had */
600#define FLAG_KUMAMON_DDNA_REQUESTED FLAG(6, 5)
601/* wstag635: DRI Yang asks for Monmon DDNA from Armormon; tested at Armormon
602 in wstag385 with the DDNA not yet had */
603#define FLAG_MONMON_DDNA_REQUESTED FLAG(6, 6)
604
605/* GAME.flags0A: the battles with the named Digimon */
606
607/* wstag375 Protocol Ruins: set when Pharaohmon's event 1260 starts ("I
608 lose!", gives the Old Wand); later talks praise the win */
609#define FLAG_PHARAOHMON_BEATEN FLAG(0xA, 0)
610/* wstag405 Tyranno Valley: set with event 60, MasterTyranno lost and gives
611 the Old Claw for the Seiryu Leader; never tested */
612#define FLAG_MASTER_TYRANNO_BEATEN FLAG(0xA, 1)
613/* wstag535/537 Catacomb: set with Zanbamon's event 1262/1455 ("I lost...",
614 gives the Rusty Katana); tested 0 to offer the fight */
615#define FLAG_ZANBAMON_BEATEN FLAG(0xA, 2)
616/* wstag325 Asuka Control Room: set with event 375, Datamon gives the Rusty
617 Gloves for winning; tested 1 for his later talks */
618#define FLAG_DATAMON_BEATEN FLAG(0xA, 3)
619/* wstag605 Operation Room: set with event 510, HiAndromon says "You pass!",
620 opens the Secret Stairs and gives the Rusty Rifle */
621#define FLAG_HIANDROMON_BEATEN FLAG(0xA, 4)
622/* wstag376 Protocol Ruins: set with event 1283, BK MagnaGargomon lost and
623 gives the Wild Helmet; later talks after the win */
624#define FLAG_BK_MAGNAGARGOMON_BEATEN FLAG(0xA, 7)
625/* wstag406 Tyranno Valley: set with event 1285, BK Imperialdramon says
626 "Hey, I lost" and gives an item */
627#define FLAG_BK_IMPERIALDRAMON_BEATEN FLAG(0xA, 9)
628/* wstag538 Catacomb (Amaterasu server): set with event 1287, BK Seraphimon
629 says the player passed and gives an item */
630#define FLAG_BK_SERAPHIMON_BEATEN FLAG(0xA, 0xA)
631/* wstag606 Operation Room: set with event 1289, BK WarGrowlmon lost and
632 gives the Hazard Armor */
633#define FLAG_BK_WARGROWLMON_BEATEN FLAG(0xA, 0xB)
634/* wstag616 Sewers: set with event 1291, BK KingNumemon says "I, the King,
635 lost" and gives an item */
636#define FLAG_BK_KINGNUMEMON_BEATEN FLAG(0xA, 0xC)
637/* wstag326 Amaterasu Control Room: set with event 1281, BK WarGreymon lost
638 and gives the Platinum ID */
639#define FLAG_BK_WARGREYMON_BEATEN FLAG(0xA, 0xD)
640/* wstag973 Circuit Board (extra chapter): B-Sent Gargoylemon accepts the
641 challenge and starts a battle; set with it */
642#define FLAG_B_SENT_GARGOYLEMON_FOUGHT FLAG(0xA, 0xE)
643/* wstag973 Circuit Board (extra chapter): B-IP Doramon ("you're still
644 here!") starts a battle; set with it */
645#define FLAG_B_IP_DORAMON_FOUGHT FLAG(0xA, 0xF)
646/* wstag972 Circuit Board (extra chapter): B Seraphimon ("you must first
647 defeat me") starts a battle; set with it */
648#define FLAG_B_SERAPHIMON_FOUGHT FLAG(0xA, 0x10)
649/* wstag973 Circuit Board (extra chapter): B MegaroGrowlmon ("You have the
650 audacity to challenge me?") starts a battle; set with it */
651#define FLAG_B_MEGAROGROWLMON_FOUGHT FLAG(0xA, 0x11)
652/* wstag973 Circuit Board (extra chapter): B WarGreymon ("since you insist I
653 will destroy you") starts a battle; set with it */
654#define FLAG_B_WARGREYMON_FOUGHT FLAG(0xA, 0x12)
655/* wstag972 Circuit Board (extra chapter): B King Numemon ("You still insist
656 on fighting?") starts a battle; set with it */
657#define FLAG_B_KING_NUMEMON_FOUGHT FLAG(0xA, 0x13)
658/* wstag971 Circuit Board (extra chapter): MetalGreymon ("Alright, let's
659 battle!") starts a battle, rewards an item; set with it */
660#define FLAG_METALGREYMON_FOUGHT FLAG(0xA, 0x14)
661/* wstag971 Circuit Board (extra chapter): MegaroGrowlmon, woken from his
662 sleep, starts a battle; set with it */
663#define FLAG_MEGAROGROWLMON_FOUGHT FLAG(0xA, 0x15)
664/* wstag970 Circuit Board (extra chapter): Piledrimon ("If you win, I'll
665 give you a valuable item") starts a battle; set with it */
666#define FLAG_PILEDRIMON_FOUGHT FLAG(0xA, 0x16)
667/* wstag971 Circuit Board (extra chapter): Taomon, disturbed while
668 meditating, starts a battle; set with it */
669#define FLAG_TAOMON_FOUGHT FLAG(0xA, 0x17)
670/* wstag970 Circuit Board (extra chapter): HolyAngemon ("let's begin the
671 battle") starts a battle; set with it */
672#define FLAG_HOLYANGEMON_FOUGHT FLAG(0xA, 0x18)
673/* wstag970 Circuit Board (extra chapter): Kyukimon ("If you fight well... a
674 gift") starts a battle; set with it */
675#define FLAG_KYUKIMON_FOUGHT FLAG(0xA, 0x19)
676/* wstag971 Circuit Board (extra chapter): Armormon ("Are you up to a fight
677 against me?") starts a battle; set with it */
678#define FLAG_ARMORMON_FOUGHT FLAG(0xA, 0x1A)
679/* wstag970 Circuit Board (extra chapter): GrapLeomon ("here I come!")
680 starts a battle and gives an item after; set with it */
681#define FLAG_GRAPLEOMON_FOUGHT FLAG(0xA, 0x1B)
682
683/* GAME.flags0C: the A.o.A guards of the Admin Centers, set with the battle */
684
685/* wstag285 Asuka Admin Center 1F (from progress 0x16): an A.o.A Trooper
686 (char 0x132) starts a battle; set with it, tested 0 so he stands there */
687#define FLAG_ASUKA_ADMIN_1F_TROOPER_A_FOUGHT FLAG(0xC, 5)
688/* wstag285 Asuka Admin Center 1F (from progress 0x16): an A.o.A Trooper
689 (char 0x133) starts a battle; set with it, tested 0 so he stands there */
690#define FLAG_ASUKA_ADMIN_1F_TROOPER_B_FOUGHT FLAG(0xC, 6)
691/* wstag285 Asuka Admin Center 1F (from progress 0x16): an A.o.A Trooper
692 (char 0x134) starts a battle; set with it, tested 0 so he stands there */
693#define FLAG_ASUKA_ADMIN_1F_TROOPER_C_FOUGHT FLAG(0xC, 7)
694/* wstag290 Asuka Basement Stairs (from progress 0x16): an A.o.A Trooper
695 (char 0x132) starts a battle; set with it, tested 0 so he stands there */
696#define FLAG_ASUKA_BASEMENT_STAIRS_TROOPER_A_FOUGHT FLAG(0xC, 8)
697/* wstag290 Asuka Basement Stairs (from progress 0x16): an A.o.A Trooper
698 (char 0x133) starts a battle; set with it, tested 0 so he stands there */
699#define FLAG_ASUKA_BASEMENT_STAIRS_TROOPER_B_FOUGHT FLAG(0xC, 9)
700/* wstag290 Asuka Basement Stairs (from progress 0x16): an A.o.A Trooper
701 (char 0x134) starts a battle; set with it, tested 0 so he stands there */
702#define FLAG_ASUKA_BASEMENT_STAIRS_TROOPER_C_FOUGHT FLAG(0xC, 0xA)
703/* wstag300 Asuka Admin Center 2F (from progress 0x16): an A.o.A Trooper
704 (char 0x132) starts a battle; set with it, tested 0 so he stands there */
705#define FLAG_ASUKA_ADMIN_2F_TROOPER_A_FOUGHT FLAG(0xC, 0xB)
706/* wstag300 Asuka Admin Center 2F (from progress 0x16): an A.o.A Trooper
707 (char 0x133) starts a battle; set with it, tested 0 so he stands there */
708#define FLAG_ASUKA_ADMIN_2F_TROOPER_B_FOUGHT FLAG(0xC, 0xC)
709/* wstag300 Asuka Admin Center 2F (from progress 0x16): an A.o.A Trooper
710 (char 0x134) starts a battle; set with it, tested 0 so he stands there */
711#define FLAG_ASUKA_ADMIN_2F_TROOPER_C_FOUGHT FLAG(0xC, 0xD)
712/* wstag300 Asuka Admin Center 2F (from progress 0x16): an A.o.A Trooper
713 (char 0x135) starts a battle; set with it, tested 0 so he stands there */
714#define FLAG_ASUKA_ADMIN_2F_TROOPER_D_FOUGHT FLAG(0xC, 0xE)
715/* wstag300 Asuka Admin Center 2F (from progress 0x16): an A.o.A Soldier
716 (char 0x12B) starts a battle; set with it, tested 0 so he stands there */
717#define FLAG_ASUKA_ADMIN_2F_SOLDIER_A_FOUGHT FLAG(0xC, 0xF)
718/* wstag300 Asuka Admin Center 2F (from progress 0x16): an A.o.A Soldier
719 (char 0x12F) starts a battle; set with it, tested 0 so he stands there */
720#define FLAG_ASUKA_ADMIN_2F_SOLDIER_B_FOUGHT FLAG(0xC, 0x10)
721/* wstag300 Asuka Admin Center 2F: the Soldier "not letting you pass" (char
722 0x130); set with his battle, from his talk or the end of event 570 */
723#define FLAG_ASUKA_ADMIN_2F_SOLDIER_C_FOUGHT FLAG(0xC, 0x11)
724/* wstag310 A.o.A Headquarters (Asuka): set at the end of event 680
725 (Operation Sigma announced) with the battle against Guards A, B and C */
726#define FLAG_ASUKA_AOA_HQ_GUARDS_FOUGHT FLAG(0xC, 0x13)
727/* wstag315 Asuka Admin Center B1F (from progress 0x16): an A.o.A Trooper
728 (char 0x132) starts a battle; set with it, tested 0 so he stands there */
729#define FLAG_ASUKA_ADMIN_B1F_TROOPER_A_FOUGHT FLAG(0xC, 0x14)
730/* wstag315 Asuka Admin Center B1F (from progress 0x16): an A.o.A Trooper
731 (char 0x133) starts a battle; set with it, tested 0 so he stands there */
732#define FLAG_ASUKA_ADMIN_B1F_TROOPER_B_FOUGHT FLAG(0xC, 0x15)
733/* wstag315 Asuka Admin Center B1F (from progress 0x16): an A.o.A Trooper
734 (char 0x134) starts a battle; set with it, tested 0 so he stands there */
735#define FLAG_ASUKA_ADMIN_B1F_TROOPER_C_FOUGHT FLAG(0xC, 0x16)
736/* wstag315 Asuka Admin Center B1F (from progress 0x16): an A.o.A Trooper
737 (char 0x136) starts a battle; set with it, tested 0 so he stands there */
738#define FLAG_ASUKA_ADMIN_B1F_TROOPER_D_FOUGHT FLAG(0xC, 0x17)
739/* wstag315 Asuka Admin Center B1F (from progress 0x16): an A.o.A Trooper
740 (char 0x137) starts a battle; set with it, tested 0 so he stands there */
741#define FLAG_ASUKA_ADMIN_B1F_TROOPER_E_FOUGHT FLAG(0xC, 0x18)
742/* wstag211 Amaterasu Main Lobby: set with the Attacker's battle, from his
743 talk or the end of event 925; tested 0 so he appears */
744#define FLAG_AMATERASU_LOBBY_ATTACKER_FOUGHT FLAG(0xC, 0x23)
745/* wstag286 Amaterasu Admin Center 1F (from progress 0x25): an A.o.A Soldier
746 (char 0x12F) starts a battle; set with it, tested 0 so he stands there */
747#define FLAG_AMATERASU_ADMIN_1F_SOLDIER_A_FOUGHT FLAG(0xC, 0x25)
748/* wstag286 Amaterasu Admin Center 1F (from progress 0x25): an A.o.A Soldier
749 (char 0x12B) starts a battle; set with it, tested 0 so he stands there */
750#define FLAG_AMATERASU_ADMIN_1F_SOLDIER_B_FOUGHT FLAG(0xC, 0x26)
751/* wstag286 Amaterasu Admin Center 1F (from progress 0x25): an A.o.A
752 Attacker (char 0x12D) starts a battle; set with it, tested 0 so he stands
753 there */
754#define FLAG_AMATERASU_ADMIN_1F_ATTACKER_A_FOUGHT FLAG(0xC, 0x27)
755/* wstag291 Amaterasu Basement Stairs (from progress 0x25): an A.o.A Soldier
756 (char 0x12B) starts a battle; set with it, tested 0 so he stands there */
757#define FLAG_AMATERASU_BASEMENT_STAIRS_SOLDIER_A_FOUGHT FLAG(0xC, 0x28)
758/* wstag291 Amaterasu Basement Stairs (from progress 0x25): an A.o.A Soldier
759 (char 0x12F) starts a battle; set with it, tested 0 so he stands there */
760#define FLAG_AMATERASU_BASEMENT_STAIRS_SOLDIER_B_FOUGHT FLAG(0xC, 0x29)
761/* wstag291 Amaterasu Basement Stairs (from progress 0x25): an A.o.A
762 Attacker (char 0x12D) starts a battle; set with it, tested 0 so he stands
763 there */
764#define FLAG_AMATERASU_BASEMENT_STAIRS_ATTACKER_A_FOUGHT FLAG(0xC, 0x2A)
765/* wstag301 Amaterasu Admin Center 2F (from progress 0x25): an A.o.A Soldier
766 (char 0x12B) starts a battle; set with it, tested 0 so he stands there */
767#define FLAG_AMATERASU_ADMIN_2F_SOLDIER_A_FOUGHT FLAG(0xC, 0x2B)
768/* wstag301 Amaterasu Admin Center 2F (from progress 0x25): an A.o.A Soldier
769 (char 0x12F) starts a battle; set with it, tested 0 so he stands there */
770#define FLAG_AMATERASU_ADMIN_2F_SOLDIER_B_FOUGHT FLAG(0xC, 0x2C)
771/* wstag301 Amaterasu Admin Center 2F (from progress 0x25): an A.o.A Soldier
772 (char 0x130) starts a battle; set with it, tested 0 so he stands there */
773#define FLAG_AMATERASU_ADMIN_2F_SOLDIER_C_FOUGHT FLAG(0xC, 0x2D)
774/* wstag301 Amaterasu Admin Center 2F (from progress 0x25): an A.o.A Soldier
775 (char 0x131) starts a battle; set with it, tested 0 so he stands there */
776#define FLAG_AMATERASU_ADMIN_2F_SOLDIER_D_FOUGHT FLAG(0xC, 0x2E)
777/* wstag301 Amaterasu Admin Center 2F (from progress 0x25): an A.o.A
778 Attacker (char 0x12D) starts a battle; set with it, tested 0 so he stands
779 there */
780#define FLAG_AMATERASU_ADMIN_2F_ATTACKER_A_FOUGHT FLAG(0xC, 0x30)
781/* wstag301 Amaterasu Admin Center 2F (from progress 0x25): an A.o.A
782 Attacker (char 0x12E) starts a battle; set with it, tested 0 so he stands
783 there */
784#define FLAG_AMATERASU_ADMIN_2F_ATTACKER_B_FOUGHT FLAG(0xC, 0x31)
785/* wstag311 A.o.A Headquarters (Amaterasu): set at the end of event 931 (the
786 Chief Officer) with the battle against the Royal Guard (actors 4-6 shown
787 while 0) */
788#define FLAG_ROYAL_GUARDS_FOUGHT FLAG(0xC, 0x33)
789/* wstag316 Amaterasu Admin Center B1F (from progress 0x25): an A.o.A
790 Soldier (char 0x12B) starts a battle; set with it, tested 0 so he stands
791 there */
792#define FLAG_AMATERASU_ADMIN_B1F_SOLDIER_A_FOUGHT FLAG(0xC, 0x34)
793/* wstag316 Amaterasu Admin Center B1F (from progress 0x25): an A.o.A
794 Soldier (char 0x12F) starts a battle; set with it, tested 0 so he stands
795 there */
796#define FLAG_AMATERASU_ADMIN_B1F_SOLDIER_B_FOUGHT FLAG(0xC, 0x35)
797/* wstag316 Amaterasu Admin Center B1F (from progress 0x25): an A.o.A
798 Soldier (char 0x130) starts a battle; set with it, tested 0 so he stands
799 there */
800#define FLAG_AMATERASU_ADMIN_B1F_SOLDIER_C_FOUGHT FLAG(0xC, 0x36)
801/* wstag316 Amaterasu Admin Center B1F (from progress 0x25): an A.o.A
802 Attacker (char 0x12D) starts a battle; set with it, tested 0 so he stands
803 there */
804#define FLAG_AMATERASU_ADMIN_B1F_ATTACKER_A_FOUGHT FLAG(0xC, 0x38)
805/* wstag316 Amaterasu Admin Center B1F (from progress 0x25): an A.o.A
806 Attacker (char 0x12E) starts a battle; set with it, tested 0 so he stands
807 there */
808#define FLAG_AMATERASU_ADMIN_B1F_ATTACKER_B_FOUGHT FLAG(0xC, 0x39)
809
810/* GAME.flags0E: the roaming tamers' and the troopers' battles, set with the
811 battle */
812
813/* wstag200 (Asuka City): Tamer Genji says "Let's see how well you've
814 trained your Digimon." and starts a Digimon battle; set with the battle */
815#define FLAG_GENJI_FOUGHT FLAG(0xE, 0)
816/* wstag330 (Central Park): Tamer Natsumi says "Hey, let's Digimon Battle!"
817 and starts a Digimon battle; set with the battle */
818#define FLAG_NATSUMI_FOUGHT FLAG(0xE, 1)
819/* wstag335 (Wire Forest Entrance): Tamer Mitch says "Hey you, let's Digimon
820 Battle!" and starts a Digimon battle; set with the battle */
821#define FLAG_MITCH_FOUGHT FLAG(0xE, 2)
822/* wstag350 (West Wire Forest): Tamer Catherine says "Let's Digimon Battle
823 now... but go easy on me." and starts a Digimon battle; set with the
824 battle */
825#define FLAG_CATHERINE_FOUGHT FLAG(0xE, 3)
826/* wstag355 (East Wire Forest): Tamer Lucia says "I'm still a pro at Digimon
827 Battle!" and starts a Digimon battle; set with the battle */
828#define FLAG_LUCIA_FOUGHT FLAG(0xE, 4)
829/* wstag355 (East Wire Forest): Tamer Robert says "I'm not doing anything,
830 so I'll play with you in a Digimon B" and starts a Digimon battle; set
831 with the battle */
832#define FLAG_ROBERT_FOUGHT FLAG(0xE, 5)
833/* wstag395 (Wind Prairie): Tamer Akiba says "All I need is to Digimon
834 Battle now!" and starts a Digimon battle; set with the battle */
835#define FLAG_AKIBA_FOUGHT FLAG(0xE, 6)
836/* wstag400 (Kicking Forest): Tamer Bob says "I guess you must battle to get
837 the answer." and starts a Digimon battle; set with the battle */
838#define FLAG_BOB_FOUGHT FLAG(0xE, 7)
839/* wstag410 (East Station): Tamer Tomomi says "I know, I'll decide with
840 this!" and starts a Digimon battle; set with the battle */
841#define FLAG_TOMOMI_FOUGHT FLAG(0xE, 8)
842/* wstag420 (Seiryu City): Tamer Chris says "All right then! Digimon
843 Battle!" and starts a Digimon battle; set with the battle */
844#define FLAG_CHRIS_FOUGHT FLAG(0xE, 9)
845/* wstag440 (South Station): Tamer Andy says "I'll prove it by showing you
846 my powers." and starts a Digimon battle; set with the battle */
847#define FLAG_ANDY_FOUGHT FLAG(0xE, 0xA)
848/* wstag445 (Bulk Swamp): Tamer George says "I'll show who's the boss in
849 Digimon Battle!" and starts a Digimon battle; set with the battle */
850#define FLAG_GEORGE_FOUGHT FLAG(0xE, 0xB)
851/* wstag450 (Bulk Bridge): Tamer Mei Lin says "Then let's Digimon Battle!"
852 and starts a Digimon battle; set with the battle */
853#define FLAG_MEI_LIN_FOUGHT FLAG(0xE, 0xC)
854/* wstag465 (Tranquil Swamp): Tamer Jessica says "Well, shall we start this
855 battle?" and starts a Digimon battle; set with the battle */
856#define FLAG_JESSICA_FOUGHT FLAG(0xE, 0xD)
857/* wstag495 (South Cape): Tamer Gordon says "Then let's Digimon Battle!" and
858 starts a Digimon battle; set with the battle */
859#define FLAG_GORDON_FOUGHT FLAG(0xE, 0xE)
860/* wstag500 (Suzaku City): Tamer Alice says "...if it's... ...Digimon
861 Battle..." and starts a Digimon battle; set with the battle */
862#define FLAG_ALICE_FOUGHT FLAG(0xE, 0xF)
863/* wstag650 (Mirage Hall): Tamer Nakano says "Oh - your Digimon look
864 interesting." and starts a Digimon battle; set with the battle */
865#define FLAG_NAKANO_FOUGHT FLAG(0xE, 0x10)
866/* wstag690 (Boot Mountain): Tamer Haruka says "I can defeat your Digimon so
867 easily!" and starts a Digimon battle; set with the battle */
868#define FLAG_HARUKA_FOUGHT FLAG(0xE, 0x11)
869/* wstag695 (Snow Mountain): Tamer Poemy says "Oh, great Hero!" and starts a
870 Digimon battle; set with the battle */
871#define FLAG_POEMY_FOUGHT FLAG(0xE, 0x12)
872/* wstag705 (Freeze Mountain): Tamer Shingo says "So, first I'll defeat you
873 in a battle!" and starts a Digimon battle; set with the battle */
874#define FLAG_SHINGO_FOUGHT FLAG(0xE, 0x13)
875/* wstag710 (Kulon Mine): Tamer Makoto says "So can you duel with me and
876 throw the fight?" and starts a Digimon battle; set with the battle */
877#define FLAG_MAKOTO_FOUGHT FLAG(0xE, 0x14)
878/* wstag710 (Kulon Mine): Tamer Brown says "I'm still an active tamer
879 though. Ho ho ho ho." and starts a Digimon battle; set with the battle */
880#define FLAG_BROWN_FOUGHT FLAG(0xE, 0x15)
881/* wstag720 (Legendary Gym): Tamer Pierre says "Monsieur, how great are your
882 Digimon? Please show me." and starts a Digimon battle; set with the
883 battle */
884#define FLAG_PIERRE_FOUGHT FLAG(0xE, 0x16)
885/* wstag725 (Kulon Pit): Tamer Mitaka says "Though I may perish, I will
886 defeat you!" and starts a Digimon battle; set with the battle */
887#define FLAG_MITAKA_FOUGHT FLAG(0xE, 0x17)
888/* wstag331 (Central Park): a Trooper says "You're suspicious." and starts a
889 battle; set with it */
890#define FLAG_CENTRAL_PARK_TROOPER_FOUGHT FLAG(0xE, 0x1B)
891/* wstag351 (West Wire Forest): a Trooper says "You're suspicious." and
892 starts a battle; set with it */
893#define FLAG_WEST_WIRE_FOREST_TROOPER_FOUGHT FLAG(0xE, 0x1C)
894/* wstag396 (Wind Prairie): a Trooper says "You're suspicious." and starts a
895 battle; set with it */
896#define FLAG_WIND_PRAIRIE_TROOPER_FOUGHT FLAG(0xE, 0x1E)
897/* wstag401 (Kicking Forest): a Trooper says "You're suspicious." and starts
898 a battle; set with it */
899#define FLAG_KICKING_FOREST_TROOPER_FOUGHT FLAG(0xE, 0x1F)
900/* wstag446 (Bulk Swamp): a Trooper says "You're suspicious." and starts a
901 battle; set with it */
902#define FLAG_BULK_SWAMP_TROOPER_FOUGHT FLAG(0xE, 0x20)
903/* wstag451 (Bulk Bridge): a Trooper says "You're suspicious." and starts a
904 battle; set with it */
905#define FLAG_BULK_BRIDGE_TROOPER_FOUGHT FLAG(0xE, 0x21)
906/* wstag466 (Tranquil Swamp): a Trooper says "You're suspicious." and starts
907 a battle; set with it */
908#define FLAG_TRANQUIL_SWAMP_TROOPER_FOUGHT FLAG(0xE, 0x22)
909/* wstag501 (Zhu Que City): a Trooper says "You're suspicious." and starts a
910 battle; set with it */
911#define FLAG_ZHU_QUE_CITY_TROOPER_FOUGHT FLAG(0xE, 0x23)
912/* wstag551 (South Badland): a Trooper says "You're suspicious." and starts
913 a battle; set with it */
914#define FLAG_SOUTH_BADLAND_TROOPER_FOUGHT FLAG(0xE, 0x25)
915/* wstag556 (Noise Desert): a Trooper says "You're suspicious." and starts a
916 battle; set with it */
917#define FLAG_NOISE_DESERT_TROOPER_FOUGHT FLAG(0xE, 0x26)
918/* wstag566 (North Badland W): a Trooper says "You're suspicious." and
919 starts a battle; set with it */
920#define FLAG_NORTH_BADLAND_WEST_TROOPER_FOUGHT FLAG(0xE, 0x27)
921/* wstag571 (North Badland E): a Trooper says "You're suspicious." and
922 starts a battle; set with it */
923#define FLAG_NORTH_BADLAND_EAST_TROOPER_FOUGHT FLAG(0xE, 0x28)
924/* wstag631 (S Noise Desert): a Trooper says "You're suspicious." and starts
925 a battle; set with it */
926#define FLAG_SOUTH_NOISE_DESERT_TROOPER_FOUGHT FLAG(0xE, 0x29)
927/* wstag646 (Mirage Tower): Tamer Heinrich says "Hey, since we're here, how
928 about a battle?" and starts a Digimon battle; set with the battle */
929#define FLAG_HEINRICH_FOUGHT FLAG(0xE, 0x2A)
930/* wstag651 (Mirage Hall): Tamer Takuya says "Well, let's see how good you
931 are in a battle." and starts a Digimon battle; set with the battle */
932#define FLAG_TAKUYA_FOUGHT FLAG(0xE, 0x2B)
933/* wstag651 (Mirage Hall): Tamer Murdock says "Worrying about it here won't
934 make a difference." and starts a Digimon battle; set with the battle */
935#define FLAG_MURDOCK_FOUGHT FLAG(0xE, 0x2C)
936/* wstag651 (Mirage Hall): Guard Banch says "If you're not a spy defeat me
937 in battle!" and starts a Digimon battle; set with the battle */
938#define FLAG_BANCH_FOUGHT FLAG(0xE, 0x2D)
939/* wstag691 (Boot Mountain): a Trooper says "You're suspicious." and starts
940 a battle; set with it */
941#define FLAG_BOOT_MOUNTAIN_TROOPER_FOUGHT FLAG(0xE, 0x2F)
942/* wstag696 (Snow Mountain): a Trooper says "You're suspicious." and starts
943 a battle; set with it */
944#define FLAG_SNOW_MOUNTAIN_TROOPER_FOUGHT FLAG(0xE, 0x31)
945/* wstag706 (Freeze Mountain): a Trooper says "Hey, you wanna Digimon Battle
946 with me?" and starts a battle; set with it */
947#define FLAG_FREEZE_MOUNTAIN_TROOPER_FOUGHT FLAG(0xE, 0x32)
948/* wstag721 (Legendary Gym): Tamer Mai says "It's safe here. You can battle
949 here." and starts a Digimon battle; set with the battle */
950#define FLAG_MAI_FOUGHT FLAG(0xE, 0x34)
951/* wstag721 (Legendary Gym): Tamer Gon says "...I guess I'll fight as well!"
952 and starts a Digimon battle; set with the battle */
953#define FLAG_GON_FOUGHT FLAG(0xE, 0x35)
954/* wstag761 (Xuan Wu City): a Trooper says "Oh, you're that tamer! Let's
955 battle!" and starts a battle; set with it */
956#define FLAG_XUAN_WU_CITY_TROOPER_FOUGHT FLAG(0xE, 0x3B)
957
958/* GAME.flags10: the extra chapter's (European and Japanese versions) */
959
960/* wstag927 (extra chapter) event 1608: the player beat Kurt and is the new
961 strongest tamer; set at its end, tested to start it */
962#define FLAG_KURT_ARENA_WIN_SEEN FLAG(0x10, 0xC)
963/* wstag956 (extra chapter): the Chinron Leader sees the 5 strongest Epic
964 Items and starts a battle; set with the battle */
965#define FLAG_CHINRON_LEADER_FOUGHT FLAG(0x10, 0xD)
966/* wstag949 (extra chapter): the Zhu Que Leader sees the 5 strongest Epic
967 Items and starts a battle; set with the battle */
968#define FLAG_ZHU_QUE_LEADER_FOUGHT FLAG(0x10, 0xE)
969/* wstag949 (extra chapter): the Bai Hu Leader sees the 5 strongest Epic
970 Items and starts a battle; set with the battle */
971#define FLAG_BAI_HU_LEADER_FOUGHT FLAG(0x10, 0xF)
972/* wstag954 (extra chapter): the Xuan Wu Leader sees the 5 Epic Items and
973 starts a battle; set with the battle */
974#define FLAG_XUAN_WU_LEADER_FOUGHT FLAG(0x10, 0x10)
975/* wstag951 Duel Island (extra chapter): Keith loses the card battle and
976 gives the KoC Trophy, "proof that you beat the Card King" */
977#define FLAG_CARD_KING_KEITH_BEATEN FLAG(0x10, 0x11)
978/* wstag951 Duel Island (extra chapter): Tamer Alice loses the card battle
979 ("I...lose") and lets the player pass */
980#define FLAG_DUEL_ISLAND_ALICE_BEATEN FLAG(0x10, 0x12)
981/* wstag951 Duel Island (extra chapter): Tamer Bomujii loses the card battle
982 and lets the player proceed */
983#define FLAG_DUEL_ISLAND_BOMUJII_BEATEN FLAG(0x10, 0x13)
984/* wstag951 Duel Island (extra chapter): Tamer Pierre is "defeated soundly"
985 at cards and lets the player pass */
986#define FLAG_DUEL_ISLAND_PIERRE_BEATEN FLAG(0x10, 0x14)
987/* wstag951 Duel Island (extra chapter): Tamer Poemy loses the card battle
988 and lets the "Hero" go on */
989#define FLAG_DUEL_ISLAND_POEMY_BEATEN FLAG(0x10, 0x15)
990/* wstag951 Duel Island (extra chapter): Tamer Haruka loses the card battle
991 ("once in awhile one does have to let others win") */
992#define FLAG_DUEL_ISLAND_HARUKA_BEATEN FLAG(0x10, 0x16)
993
994/* GAME.flags18: the extra chapter's (European and Japanese versions) */
995
996/* wstag928 Amaterasu Inn 1F (extra chapter): "Hey! There's something here!
997 I got 8500 BIT!!"; afterwards "nothing here" */
998#define FLAG_AMATERASU_INN_BIT_FOUND FLAG(0x18, 5)
999/* wstag936 Water Tunnel (extra chapter): the player finds a Platinum
1000 Members Card in a crack (item 0x25 given) */
1001#define FLAG_PLATINUM_CARD_FOUND FLAG(0x18, 6)
1002
1003/* GAME.flags1A: what the characters have said and done */
1004
1005/* wstag210 Main Lobby: the Tamer Service / Guide at the Digimon Online Help
1006 Counter introduce the hints once; set there, later talks differ */
1007#define FLAG_HELP_COUNTER_TALKED FLAG(0x1A, 0)
1008/* wstag485 Phoenix Bay: Nami saw a Crest behind the Bios Swamp shrine; then
1009 the player recognises the Symbol of Sincerity there */
1010#define FLAG_NAMI_SWAMP_CREST_TALKED FLAG(0x1A, 2)
1011/* wstag220 Digimon Lab: Dr. Kadomatsu introduces himself and the lab once;
1012 set there, later talks differ */
1013#define FLAG_KADOMATSU_TALKED FLAG(0x1A, 4)
1014/* wstag280 El Dorado: Ponchomon welcomes the player to the Item Maniac's El
1015 Dorado once; set there, later talks differ */
1016#define FLAG_PONCHOMON_TALKED FLAG(0x1A, 5)
1017/* wstag220 Digimon Lab: the Digivolve Navi explains its desk once; set
1018 there, later talks differ */
1019#define FLAG_DIGIVOLVE_NAVI_TALKED FLAG(0x1A, 6)
1020/* wstag220 Digimon Lab: the Digimon Navi explains its desk once; set there,
1021 later talks differ */
1022#define FLAG_DIGIMON_NAVI_TALKED FLAG(0x1A, 7)
1023/* Inns (wstag235/360/425/470): Gatomon says they manage the Inn once; set
1024 there, later talks differ */
1025#define FLAG_INN_GATOMON_TALKED FLAG(0x1A, 8)
1026/* Inns (wstag235/360/430/470): Save Officer Guardromon introduces saving
1027 once; set there, later talks differ */
1028#define FLAG_SAVE_GUARDROMON_TALKED FLAG(0x1A, 9)
1029/* wstag435 Gale Tower: Airdramon spins the windmill and turns everyone back
1030 from Oinkmon; tested in 62 stages (talks "back to normal") */
1031#define FLAG_OINKMON_CITIZENS_RESTORED FLAG(0x1A, 0xA)
1032/* wstag255 Lamb Chop: Master John says lost Digimon may enter the Admin
1033 Center; Kail's talk then picks up that idea */
1034#define FLAG_MASTER_JOHN_LOST_DIGIMON_TALKED FLAG(0x1A, 0xC)
1035/* wstag245/425: Gargomon says the Armory is run by them once; set there,
1036 later talks differ */
1037#define FLAG_ARMORY_GARGOMON_TALKED FLAG(0x1A, 0xE)
1038/* wstag245/425: Wizardmon says they run the Item Shop once; set there,
1039 later talks differ */
1040#define FLAG_ITEM_SHOP_WIZARDMON_TALKED FLAG(0x1A, 0xF)
1041/* wstag245 Smith's Shop: Gomamon introduces the Pawn Shop once; set there,
1042 later talks differ */
1043#define FLAG_PAWN_SHOP_GOMAMON_TALKED FLAG(0x1A, 0x10)
1044/* wstag245 Smith's Shop: Mr. Smith introduces himself as the manager once;
1045 set there, later talks differ */
1046#define FLAG_MR_SMITH_TALKED FLAG(0x1A, 0x11)
1047/* wstag250 Junk Shop: Gargomon introduces the Heavy Armory once; set there,
1048 later talks differ */
1049#define FLAG_HEAVY_ARMORY_GARGOMON_TALKED FLAG(0x1A, 0x12)
1050/* wstag250 Junk Shop: Wizardmon introduces the Black Market once; set
1051 there, later talks differ */
1052#define FLAG_BLACK_MARKET_WIZARDMON_TALKED FLAG(0x1A, 0x13)
1053/* wstag202: Jake and Grandma Beth show their Digimon suits from Etemon;
1054 then a man replaces Etemon in the Asuka Sewers */
1055#define FLAG_SUIT_COUPLE_TALKED FLAG(0x1A, 0x14)
1056/* wstag320 Asuka Sewers: Mischievous Mat says no Etemon was there; Kail
1057 then reacts to "a man instead of Etemon" */
1058#define FLAG_MISCHIEVOUS_MAT_TALKED FLAG(0x1A, 0x15)
1059/* wstag210 Main Lobby: Kail explains the man used an Etemon Suit and sends
1060 the player to ask about Digimon suits */
1061#define FLAG_KAIL_ETEMON_SUIT_TALKED FLAG(0x1A, 0x16)
1062/* wstag475 Shaman House event 180: the player meets maskless Sepikmon ("A
1063 monster!"), who asks for his mask; keeps it from playing again */
1064#define FLAG_SEPIKMON_LOST_MASK_SEEN FLAG(0x1A, 0x17)
1065/* wstag375 Protocol Ruins: Baronmon says Sepikmon had his mask and was last
1066 seen in Asuka City; Asuka talks of his pranks follow */
1067#define FLAG_BARONMON_SEPIKMON_TALKED FLAG(0x1A, 0x18)
1068/* wstag205 Asuka Bridge: a "Sepikmon" boasts he found his mask and won't
1069 help; then Etemon says Sepikmon ran to Divermon Lake */
1070#define FLAG_BRIDGE_SEPIKMON_TALKED FLAG(0x1A, 0x19)
1071/* wstag202: Etemon says Sepikmon ran towards the Divermon Lake; set there,
1072 tested at Divermon's Lake */
1073#define FLAG_ETEMON_DIVERMON_LAKE_TALKED FLAG(0x1A, 0x1A)
1074/* wstag270/425: Divermon says they handle Booster Packs once (also set
1075 after event 1415 with the Folder Bag); later talks differ */
1076#define FLAG_BOOSTER_DIVERMON_TALKED FLAG(0x1A, 0x1C)
1077/* wstag330 Central Park: DRI Kazuki introduces himself as the MagnaAngemon
1078 researcher once; set there, later talks differ */
1079#define FLAG_DRI_KAZUKI_TALKED FLAG(0x1A, 0x1F)
1080/* wstag330 Central Park: DRI Michael (Mike) introduces himself and asks for
1081 his Taomon once; set there, later talks differ */
1082#define FLAG_DRI_MICHAEL_TALKED FLAG(0x1A, 0x20)
1083/* wstag340 Shell Beach: Tai Kong Wang offers to make a fishing pole from a
1084 pole, string and hook; tested at Divermon's Lake */
1085#define FLAG_TAI_KONG_WANG_POLE_TALKED FLAG(0x1A, 0x21)
1086/* wstag235 Asuka Inn 1F: "Oh! It's Gabumon card! So that's where it was!"
1087 (card 0xB7 given); afterwards "nothing left" */
1088#define FLAG_HIDE_GABUMON_CARD_FOUND FLAG(0x1A, 0x23)
1089/* wstag345 Plug Cape: Soccer Kid Hide gets his Gabumon card back and tells
1090 about the Tree Boots and Veemon */
1091#define FLAG_HIDE_GABUMON_CARD_GIVEN FLAG(0x1A, 0x24)
1092/* wstag255 Lamb Chop: Waitress Debbie saw Veemon looking for something at
1093 Wind Prairie; makes Veemon appear there, cleared when his game starts */
1094#define FLAG_DEBBIE_VEEMON_TALKED FLAG(0x1A, 0x25)
1095/* wstag395 Wind Prairie: set when Veemon asks "You want to play?"; Kicking
1096 Forest hiders appear; cleared on finding him or giving up */
1097#define FLAG_VEEMON_HIDE_AND_SEEK_ACTIVE FLAG(0x1A, 0x26)
1098/* wstag395 Wind Prairie event 1305: Veemon gives the player the Tree Boots;
1099 set at its end, keeps it from playing again */
1100#define FLAG_VEEMON_TREE_BOOTS_SEEN FLAG(0x1A, 0x28)
1101/* wstag375 Protocol Ruins: DRI Bob introduces himself once ("I'll tell you
1102 a secret"); set there, later talks differ */
1103#define FLAG_DRI_BOB_TALKED FLAG(0x1A, 0x29)
1104/* wstag455 Bios Swamp: "There it is! The Symbol of Sincerity!" behind a
1105 wall; then Sepikmon advises asking Baronmon about bombs */
1106#define FLAG_SINCERITY_SYMBOL_FOUND FLAG(0x1A, 0x2A)
1107/* wstag475 Shaman House: Sepikmon says to ask his friend Baronmon about
1108 bombs; Baronmon then talks about the TNT Chip */
1109#define FLAG_SEPIKMON_BOMB_HINT_TALKED FLAG(0x1A, 0x2B)
1110/* wstag380 Divermon's Lake: the player frees a Red Snapper stuck in
1111 Divermon's throat and gets it (item 7); later talks differ */
1112#define FLAG_DIVERMON_RED_SNAPPER_TAKEN FLAG(0x1A, 0x2C)
1113/* wstag405 Tyranno Valley: DRI Johann introduces himself as the Agumon
1114 researcher once; set there, later talks differ */
1115#define FLAG_DRI_JOHANN_TALKED FLAG(0x1A, 0x2D)
1116/* wstag420 Seiryu City: DRI Jimmy introduces himself as a DRI researcher
1117 once; set there, later talks differ */
1118#define FLAG_DRI_JIMMY_TALKED FLAG(0x1A, 0x2E)
1119/* wstag635 Mobius Desert: DRI Ken introduces himself as an athletic
1120 researcher once; set there, later talks differ */
1121#define FLAG_DRI_KEN_TALKED FLAG(0x1A, 0x2F)
1122/* wstag635 Mobius Desert: DRI Yuji introduces himself once; set there,
1123 later talks differ */
1124#define FLAG_DRI_YUJI_TALKED FLAG(0x1A, 0x30)
1125/* wstag635 Mobius Desert: DRI Yang, with a twisted ankle, introduces
1126 himself once; set there, later talks differ */
1127#define FLAG_DRI_YANG_TALKED FLAG(0x1A, 0x31)
1128/* wstag430 Seiryu Tower: Piximon says it handles Digimon data (switching)
1129 once; set there, later talks differ */
1130#define FLAG_SEIRYU_PIXIMON_TALKED FLAG(0x1A, 0x33)
1131/* wstag656 Mirage Room: Leader Chuck recognises the player and an event
1132 starts; Lisa (Master Room) then asks "Did you find someone?" */
1133#define FLAG_RESISTANCE_CHUCK_MET FLAG(0x1A, 0x34)
1134/* wstag340 Shell Beach: Fisherman Tai Kong Wang introduces himself once;
1135 set there, later talks differ */
1136#define FLAG_TAI_KONG_WANG_TALKED FLAG(0x1A, 0x36)
1137/* wstag386 Duel Island: MetalEtemon loses the card battle ("...I lost!");
1138 cleared when KingEtemon loses */
1139#define FLAG_DUEL_ISLAND_METALETEMON_BEATEN FLAG(0x1A, 0x40)
1140
1141/* GAME.flags1C: the story's states, puzzles and talks */
1142
1143/* wstag750 Chamber Room: Chamber Clark checks the 4 Leader Badges and the
1144 player goes to the Real World; afterwards "the Matrix Chamber cannot be
1145 used" */
1146#define FLAG_MATRIX_CHAMBER_USED FLAG(0x1C, 2)
1147/* wstag285 Admin Center 1F event 340: Kail suddenly leaves and the player
1148 sets off for West Sector after Lucky Mouse; keeps it from playing again */
1149#define FLAG_KAIL_LEAVES_SEEN FLAG(0x1C, 0xC)
1150/* wstag305 Master Room event 350: the Game Master finds the player and Kail
1151 looking for Teddy; set at its end, tested in 4 stages */
1152#define FLAG_GAME_MASTER_MEETING_SEEN FLAG(0x1C, 0xD)
1153/* wstag430 Seiryu Tower: Repeating Tom says the Seiryu Leader trains at the
1154 Protocol Ruins; the Leader is named there afterwards */
1155#define FLAG_TOM_SEIRYU_LEADER_TALKED FLAG(0x1C, 0xF)
1156/* wstag375 Protocol Ruins: the Seiryu Leader won't fight until
1157 MasterTyranno is beaten; MasterTyranno then accepts a challenge */
1158#define FLAG_SEIRYU_LEADER_REFUSED FLAG(0x1C, 0x10)
1159/* wstag445 Bulk Swamp: set when talking to MetalGreymon starts his Agumon
1160 DDNA challenge event; later he says to use the DNA well */
1161#define FLAG_METALGREYMON_DDNA_FOUGHT FLAG(0x1C, 0x12)
1162/* wstag490 Ether Jungle: set when talking to WarGrowlmon starts his Guilmon
1163 DDNA challenge event; later "That battle was great!" */
1164#define FLAG_WARGROWLMON_DDNA_FOUGHT FLAG(0x1C, 0x13)
1165/* wstag550 South Badland: set when talking to MagnaAngemon starts his
1166 Patamon DDNA challenge event; later talks differ */
1167#define FLAG_MAGNAANGEMON_DDNA_FOUGHT FLAG(0x1C, 0x14)
1168/* wstag565 North Badland W: set when talking to Taomon starts her Renamon
1169 DDNA challenge event; later talks differ */
1170#define FLAG_TAOMON_DDNA_FOUGHT FLAG(0x1C, 0x15)
1171/* wstag525 Suzaku UG Lake: set when talking to Kyukimon starts his Kotemon
1172 DDNA challenge event; later talks differ */
1173#define FLAG_KYUKIMON_DDNA_FOUGHT FLAG(0x1C, 0x16)
1174/* wstag385 Duel Island: set when talking to Armormon starts his Monmon DDNA
1175 challenge event; later "I lost to you..." */
1176#define FLAG_ARMORMON_DDNA_FOUGHT FLAG(0x1C, 0x17)
1177/* wstag490 Ether Jungle: set when talking to GrapLeomon starts his Kumamon
1178 DDNA challenge event; later talks differ */
1179#define FLAG_GRAPLEOMON_DDNA_FOUGHT FLAG(0x1C, 0x18)
1180/* wstag450 Bulk Bridge: set when talking to Paildramon starts his Veemon
1181 DDNA challenge event; later talks differ */
1182#define FLAG_PAILDRAMON_DDNA_FOUGHT FLAG(0x1C, 0x19)
1183/* wstag325 Control Room: Datamon will open the basement gate only for a DO
1184 Staff Pass holder; set by that talk, later talks differ */
1185#define FLAG_DATAMON_STAFF_PASS_TALKED FLAG(0x1C, 0x1B)
1186/* wstag620 Secret Room: set after event 540; then Lisa says "Find Keith and
1187 Nick" and people in 10 stages answer about them */
1188#define FLAG_KEITH_NICK_SEARCH_STARTED FLAG(0x1C, 0x1C)
1189/* wstag245 Smith's Shop: with the El Dorado ID, talking to the staff starts
1190 the event where Smith Junior lets the player pass through */
1191#define FLAG_SMITH_EL_DORADO_ID_SHOWN FLAG(0x1C, 0x1E)
1192/* wstag305 Master Room: the player touches the "M" letter sensor of
1193 MONSTER; all sensor flags are cleared once every letter is touched */
1194#define FLAG_MASTER_ROOM_SENSOR_M_TOUCHED FLAG(0x1C, 0x27)
1195/* wstag305 Master Room: the player touches the "O" letter sensor of
1196 MONSTER; all sensor flags are cleared once every letter is touched */
1197#define FLAG_MASTER_ROOM_SENSOR_O_TOUCHED FLAG(0x1C, 0x28)
1198/* wstag305 Master Room: the player touches the "N" letter sensor of
1199 MONSTER; all sensor flags are cleared once every letter is touched */
1200#define FLAG_MASTER_ROOM_SENSOR_N_TOUCHED FLAG(0x1C, 0x29)
1201/* wstag305 Master Room: the player touches the "S" letter sensor of
1202 MONSTER; all sensor flags are cleared once every letter is touched */
1203#define FLAG_MASTER_ROOM_SENSOR_S_TOUCHED FLAG(0x1C, 0x2A)
1204/* wstag305 Master Room: the player touches the "T" letter sensor of
1205 MONSTER; all sensor flags are cleared once every letter is touched */
1206#define FLAG_MASTER_ROOM_SENSOR_T_TOUCHED FLAG(0x1C, 0x2B)
1207/* wstag305 Master Room: the player touches the "E" letter sensor of
1208 MONSTER; all sensor flags are cleared once every letter is touched */
1209#define FLAG_MASTER_ROOM_SENSOR_E_TOUCHED FLAG(0x1C, 0x2C)
1210/* wstag305 Master Room: the player touches the "R" letter sensor of
1211 MONSTER; all sensor flags are cleared once every letter is touched */
1212#define FLAG_MASTER_ROOM_SENSOR_R_TOUCHED FLAG(0x1C, 0x2D)
1213/* wstag305 Master Room: set when the "M" sensor is touched right after the
1214 previous letters of MONSTER in order; cleared with the others */
1215#define FLAG_MASTER_ROOM_SENSOR_M_IN_ORDER FLAG(0x1C, 0x2E)
1216/* wstag305 Master Room: set when the "O" sensor is touched right after the
1217 previous letters of MONSTER in order; cleared with the others */
1218#define FLAG_MASTER_ROOM_SENSOR_O_IN_ORDER FLAG(0x1C, 0x2F)
1219/* wstag305 Master Room: set when the "N" sensor is touched right after the
1220 previous letters of MONSTER in order; cleared with the others */
1221#define FLAG_MASTER_ROOM_SENSOR_N_IN_ORDER FLAG(0x1C, 0x30)
1222/* wstag305 Master Room: set when the "S" sensor is touched right after the
1223 previous letters of MONSTER in order; cleared with the others */
1224#define FLAG_MASTER_ROOM_SENSOR_S_IN_ORDER FLAG(0x1C, 0x31)
1225/* wstag305 Master Room: set when the "T" sensor is touched right after the
1226 previous letters of MONSTER in order; cleared with the others */
1227#define FLAG_MASTER_ROOM_SENSOR_T_IN_ORDER FLAG(0x1C, 0x32)
1228/* wstag305 Master Room: set when the "E" sensor is touched right after the
1229 previous letters of MONSTER in order; cleared with the others */
1230#define FLAG_MASTER_ROOM_SENSOR_E_IN_ORDER FLAG(0x1C, 0x33)
1231/* wstag235 Asuka Inn 1F: "Hey! Someone hid money here! I got 300 BIT!";
1232 afterwards "There's nothing left" */
1233#define FLAG_ASUKA_INN_BIT_FOUND FLAG(0x1C, 0x34)
1234/* wstag475 Shaman House: Baronmon announces his "Change Account" art for
1235 renaming Digimon once; later talks differ */
1236#define FLAG_BARONMON_CHANGE_ACCOUNT_TALKED FLAG(0x1C, 0x35)
1237/* wstag305 Master Room: "OK, I touched all the sensors, so now what?"
1238 (letter flags cleared, event starts); cleared after event 660 */
1239#define FLAG_MASTER_ROOM_SENSORS_ALL_TOUCHED FLAG(0x1C, 0x36)
1240/* wstag305 Master Room event 894: the player tells Lisa he met the
1241 Resistance; set at its end, tested to start it */
1242#define FLAG_LISA_RESISTANCE_REPORT_SEEN FLAG(0x1C, 0x39)
1243/* lift.c / wstag261 Cargo Tower: "There's a switch here! Let's push it."
1244 sets it, "let's go downstairs" clears it; the lift is raised while set */
1245#define FLAG_LIFT_RAISED FLAG(0x1C, 0x3D)
1246/* wstag875 Circuit Board: BK Agumon loses ("What?! I lost!") and says the
1247 Black Kingz leader has Etemon's Mic; the leader then appears */
1248#define FLAG_BK_AGUMON_BEATEN FLAG(0x1C, 0x3F)
1249/* wstag875 Circuit Board: the BKZ Leader loses and hands over Etemon's Mic
1250 (item 0x18D given) */
1251#define FLAG_BKZ_LEADER_BEATEN FLAG(0x1C, 0x40)
1252/* wstag386 Duel Island: Etemon says Black Agumon took his mic; makes BK
1253 Agumon appear in the Circuit Board */
1254#define FLAG_ETEMON_MIC_STOLEN_TALKED FLAG(0x1C, 0x42)
1255/* wstag470 Swamp Inn: Gatomon says Sepikmon of the Shaman House could stop
1256 Zanbamon but is missing; lets the Shaman House event start */
1257#define FLAG_SWAMP_INN_SEPIKMON_HINT_TALKED FLAG(0x1C, 0x43)
1258/* wstag240 Asuka Inn 2F: Guilmon says his cousin has the Blue Card
1259 (gondola) and went to Seiryu City; a Guilmon then shows at Forest Inn */
1260#define FLAG_ASUKA_INN_GUILMON_TALKED FLAG(0x1C, 0x44)
1261/* wstag360 Forest Inn: Guilmon says another Guilmon has the Blue Card and
1262 went to Seiryu City; Tricky Guilmon then shows at Zephyr Tower */
1263#define FLAG_FOREST_INN_GUILMON_TALKED FLAG(0x1C, 0x45)
1264/* wstag420 Seiryu City: a Guilmon says the card is a fake by Trickster
1265 Guilmon, hiding underground; then he is found in Forest Inn BF */
1266#define FLAG_FAKE_BLUE_CARD_TALKED FLAG(0x1C, 0x47)
1267/* wstag386 Duel Island: Etemon gets his mic back ("Let's battle!") and
1268 starts a card battle; set with it, later he offers rematches */
1269#define FLAG_DUEL_ISLAND_ETEMON_FOUGHT FLAG(0x1C, 0x4A)
1270/* wstag375 Protocol Ruins: Baronmon can make the TNT Chip but needs a TNT
1271 Ball; then he says Triceramon has it */
1272#define FLAG_BARONMON_TNT_BALL_TALKED FLAG(0x1C, 0x4F)
1273/* wstag410 East Station: the player tries the fake Blue Card ("this time it
1274 should work"); afterwards the monitor says he has no Blue Card */
1275#define FLAG_FAKE_BLUE_CARD_TRIED FLAG(0x1C, 0x50)
1276/* wstag385 Duel Island: KingDivermon loses ("I lost... I must train
1277 more..."), gives item 0x12 and resets the five Divermon duelists */
1278#define FLAG_KING_DIVERMON_BEATEN FLAG(0x1C, 0x53)
1279/* wstag386 Duel Island: KingEtemon loses and gives the Sun Trophy (item
1280 0x14); resets the Etemon duelists */
1281#define FLAG_KING_ETEMON_BEATEN FLAG(0x1C, 0x54)
1282/* wstag385 Duel Island: after the trophy, KingDivermon's "ultimate folder"
1283 rematch is won ("You defeated my ultimate folder...") */
1284#define FLAG_KING_DIVERMON_REMATCH_BEATEN FLAG(0x1C, 0x55)
1285/* wstag386 Duel Island: KingEtemon loses the rematch ("Why did I lose?!");
1286 afterwards he won't battle "jinxes like you" */
1287#define FLAG_KING_ETEMON_REMATCH_BEATEN FLAG(0x1C, 0x56)
1288
1289/* GAME.flags40: the events seen, set at an event's end and tested to start
1290 it (or the next one) once */
1291
1292/* wstag755 event 780: "I won against Genbu Leader too!", he gives a reward;
1293 set at its end, tested 0 to start it and 1 to start event 781 */
1294#define FLAG_GENBU_LEADER_WIN_SEEN FLAG(0x40, 1)
1295/* wstag520 event 260: Suzaku Leader lost and gives the Suzaku Badge; set at
1296 its end, tested 1 to start event 261 with Kail */
1297#define FLAG_SUZAKU_LEADER_WIN_SEEN FLAG(0x40, 2)
1298/* wstag525 event 550: Suzaku Leader shows the security hole behind the
1299 earthquake; set at its end, tested 1 to start event 551 in wstag620 */
1300#define FLAG_SECURITY_HOLE_SEEN FLAG(0x40, 3)
1301/* wstag212 event 271: the DO Guard lets only authorized personnel pass; set
1302 at its end, tested 0 to start it, 1 to start event 273 */
1303#define FLAG_DO_GUARD_BLOCK_SEEN FLAG(0x40, 4)
1304/* wstag205 event 100: the player beats Keith on Asuka Bridge; set at its
1305 end, tested 0 to start it and 1 to start event 101 with Etemon */
1306#define FLAG_KEITH_BRIDGE_WIN_SEEN FLAG(0x40, 6)
1307/* wstag455 event 360: "I got the Digi-Egg of Sincerity!"; set at its end,
1308 tested 0 to show actor 0 in Bios Swamp */
1309#define FLAG_SINCERITY_EGG_FOUND FLAG(0x40, 7)
1310/* wstag325 event 375: Datamon loses and gives the Rusty Gloves; set at its
1311 end, tested 1 to start event 376 */
1312#define FLAG_DATAMON_WIN_SEEN FLAG(0x40, 8)
1313/* wstag325 event 376: Datamon sees the Staff Pass and opens the gate; set
1314 at its end, tested 0 to start it */
1315#define FLAG_DATAMON_OPENS_GATE_SEEN FLAG(0x40, 9)
1316/* wstag537 event 700: "I won against Zhu Que Chief!", the player gets the
1317 Red ID Pass; set at its end, swaps Suzaku Leader actors 22/25 */
1318#define FLAG_ZHU_QUE_CHIEF_WIN_SEEN FLAG(0x40, 0xB)
1319/* wstag200 event 50: after the first battle, Tamer Genji tells the player
1320 to learn more; set at its end, tested 0 to start it */
1321#define FLAG_GENJI_FIRST_BATTLE_SEEN FLAG(0x40, 0xD)
1322/* wstag735 event 790: Ice Witch admits defeat and lets the player go on;
1323 set at its end, tested 0 to start it and 1 to start event 791 */
1324#define FLAG_ICE_WITCH_WIN_SEEN FLAG(0x40, 0xE)
1325/* wstag405 event 60: MasterTyranno loses and gives the Old Claw for Seiryu
1326 Leader; set at its end, tested 1 to start event 61 */
1327#define FLAG_MASTERTYRANNO_WIN_SEEN FLAG(0x40, 0xF)
1328/* wstag405 event 61: the player shows the Old Claw and Seiryu Leader
1329 accepts the battle; set at its end, tested 0 to start it */
1330#define FLAG_SEIRYU_LEADER_CHALLENGE_SEEN FLAG(0x40, 0x10)
1331/* wstag395 event 80: the player meets Nick ("I'm only 21!") in Wind
1332 Prairie; set at its end, tested 0 to start it */
1333#define FLAG_NICK_FIRST_MEETING_SEEN FLAG(0x40, 0x11)
1334/* wstag420 event 70: Seiryu Leader loses and gives the player his badge;
1335 set at its end, tested 1 to start event 71 (the earthquake) */
1336#define FLAG_SEIRYU_LEADER_WIN_SEEN FLAG(0x40, 0x12)
1337/* wstag205 event 101: the player asks Etemon about Sepikmon's mask and he
1338 runs; set at its end, tested 0 to start it */
1339#define FLAG_ETEMON_MASK_QUESTION_SEEN FLAG(0x40, 0x16)
1340/* wstag675 event 390: Byakko citizens say they waited and send the player
1341 to their leader; set at its end, swaps actors 42/43 */
1342#define FLAG_BYAKKO_DOME_WELCOME_SEEN FLAG(0x40, 0x17)
1343/* wstag735 event 791: Fire Knight, bored, challenges the player; set at its
1344 end (gives the Yin Yang Hat), tested 0 to start it */
1345#define FLAG_FIRE_KNIGHT_BATTLE_SEEN FLAG(0x40, 0x19)
1346/* wstag366 event 720: Teddy catches up before Amaterasu City and the player
1347 gets the Crony ID; set at its end, tested 0 to start it */
1348#define FLAG_TEDDY_FOREST_INN_SEEN FLAG(0x40, 0x1D)
1349/* wstag675 event 410: Byakko Leader loses and sends the player to the badge
1350 room; set at its end, tested 1 to start event 411 */
1351#define FLAG_BYAKKO_LEADER_WIN_SEEN FLAG(0x40, 0x1E)
1352/* wstag580 event 450: "OK, I found you!", the player corners Numemon in the
1353 Dum Dum Factory; set at its end, tested 0 to start it */
1354#define FLAG_NUMEMON_FACTORY_FOUND_SEEN FLAG(0x40, 0x21)
1355/* wstag445 event 1265: MetalGreymon loses and gives the Agumon DDNA; set at
1356 its end, tested 1 to start event 1266 */
1357#define FLAG_METALGREYMON_WIN_SEEN FLAG(0x40, 0x23)
1358/* wstag445 event 1266: the player asks WarGrowlmon for the Guilmon DDNA and
1359 he wants a battle; set at its end, tested 0 to start it */
1360#define FLAG_WARGROWLMON_DDNA_REQUEST_SEEN FLAG(0x40, 0x24)
1361/* wstag490 event 1267: WarGrowlmon loses and gives the Guilmon DDNA; set at
1362 its end, tested 1 to start event 1268 */
1363#define FLAG_WARGROWLMON_WIN_SEEN FLAG(0x40, 0x25)
1364/* wstag490 event 1268: the player asks GrapLeomon for the Kumamon DDNA and
1365 he wants a battle; set at its end, tested 0 to start it */
1366#define FLAG_GRAPLEOMON_DDNA_REQUEST_SEEN FLAG(0x40, 0x26)
1367/* wstag550 event 1269: MagnaAngemon loses and gives the Patamon DDNA; set
1368 at its end, tested 1 to start event 1270 */
1369#define FLAG_MAGNAANGEMON_WIN_SEEN FLAG(0x40, 0x27)
1370/* wstag550 event 1270: the player asks Taomon for the Renamon DDNA and she
1371 wants a battle; set at its end, tested 0 to start it */
1372#define FLAG_TAOMON_DDNA_REQUEST_SEEN FLAG(0x40, 0x28)
1373/* wstag565 event 1271: Taomon loses and gives the Renamon DDNA; set at its
1374 end, tested 1 to start event 1272 */
1375#define FLAG_TAOMON_WIN_SEEN FLAG(0x40, 0x29)
1376/* wstag565 event 1272: the player asks Kyukimon for the Kotemon DDNA and he
1377 wants a battle; set at its end, tested 0 to start it */
1378#define FLAG_KYUKIMON_DDNA_REQUEST_SEEN FLAG(0x40, 0x2A)
1379/* wstag525 event 1273: Kyukimon loses and gives the Kotemon DDNA; set at
1380 its end, tested 1 to start event 1274 */
1381#define FLAG_KYUKIMON_WIN_SEEN FLAG(0x40, 0x2B)
1382/* wstag525 event 1274: BK Seraphimon says the player must fight him; set at
1383 its end, tested 0 to start it */
1384#define FLAG_BK_SERAPHIMON_CHALLENGE_SEEN FLAG(0x40, 0x2C)
1385/* wstag385 event 1275: Armormon loses and gives the Monmon DDNA; set at its
1386 end, tested 1 to start event 1276 */
1387#define FLAG_ARMORMON_WIN_SEEN FLAG(0x40, 0x2D)
1388/* wstag385 event 1276: the player accepts BK WarGreymon's battle; set at
1389 its end, tested 0 to start it */
1390#define FLAG_BK_WARGREYMON_CHALLENGE_SEEN FLAG(0x40, 0x2E)
1391/* wstag490 event 1277: GrapLeomon loses and gives the Kumamon DDNA; set at
1392 its end, tested 1 to start event 1278 */
1393#define FLAG_GRAPLEOMON_WIN_SEEN FLAG(0x40, 0x2F)
1394/* wstag490 event 1278: the player asks Paildramon for the Veemon DDNA and
1395 he wants a battle; set at its end, tested 0 to start it */
1396#define FLAG_PAILDRAMON_DDNA_REQUEST_SEEN FLAG(0x40, 0x30)
1397/* wstag450 event 1279: Paildramon loses and gives the Veemon DDNA; set at
1398 its end, tested 1 to start event 1280 */
1399#define FLAG_PAILDRAMON_WIN_SEEN FLAG(0x40, 0x31)
1400/* wstag450 event 1280: the player accepts BK Imperialdramon's battle; set
1401 at its end, tested 0 to start it */
1402#define FLAG_BK_IMPERIALDRAMON_CHALLENGE_SEEN FLAG(0x40, 0x32)
1403/* wstag580 event 520: the player finds Nick and Keith arguing in the Dum
1404 Dum Factory; set at its end, tested 0 to start it */
1405#define FLAG_NICK_KEITH_FACTORY_SEEN FLAG(0x40, 0x38)
1406/* wstag620 event 540: Lisa sets Nick and Keith to look for a pass code in
1407 the computer; set at its end, tested 0 to start it */
1408#define FLAG_PASS_CODE_SEARCH_SEEN FLAG(0x40, 0x3A)
1409/* wstag580 event 440: "Numemon isn't here.", in the Dum Dum Factory; set at
1410 its end, tested 0 to start it */
1411#define FLAG_NUMEMON_MISSING_SEEN FLAG(0x40, 0x3C)
1412/* wstag655 event 430: Byakko Leader apologizes for mistaking the player for
1413 the A.o.A; set at its end, tested 1 to start event 431 */
1414#define FLAG_BYAKKO_LEADER_APOLOGY_SEEN FLAG(0x40, 0x3E)
1415/* wstag740 event 800: "Man, I lost!", Fire Knight warns of the Dark Dungeon
1416 ahead; set at its end, tested 0 to start it */
1417#define FLAG_FIRE_KNIGHT_WIN_SEEN FLAG(0x40, 0x3F)
1418/* wstag740 event 801: Dark Knight, the Dark Dungeon's strongest boss,
1419 blocks the player; set at its end (gives the Divine Rod), tested 0 to
1420 start it */
1421#define FLAG_DARK_KNIGHT_CHALLENGE_SEEN FLAG(0x40, 0x40)
1422/* wstag745 event 810: Dark Knight, beaten, says the player will make a
1423 great tamer; set at its end, tested 1 to start event 811 */
1424#define FLAG_DARK_KNIGHT_WIN_SEEN FLAG(0x40, 0x41)
1425/* wstag745 event 811: the player asks Genbu Leader for his badge and he
1426 won't give it for free; set at its end, tested 0 to start it */
1427#define FLAG_GENBU_LEADER_CHALLENGE_SEEN FLAG(0x40, 0x42)
1428/* wstag795 event 830: the player pushes a button on a control panel in
1429 Magasta B1F; set at its end, tested there and in wstag800 */
1430#define FLAG_MAGASTA_BUTTON_PRESSED FLAG(0x40, 0x43)
1431/* wstag800 event 870: the player wins and finds the Dramon Guard in Magasta
1432 B2F; set at its end, tested 1 to start event 871 */
1433#define FLAG_MECH_SOLDIER_WIN_SEEN FLAG(0x40, 0x44)
1434/* wstag800 event 871: the player tells the Royal Guard to stop the launch;
1435 set at its end, tested 0 to start it */
1436#define FLAG_ROYAL_GUARD_CHALLENGE_SEEN FLAG(0x40, 0x45)
1437/* wstag805 event 880: the player wins but the field is gone and the
1438 Juggernaut launches; set at its end, tested in wstag750/805 */
1439#define FLAG_JUGGERNAUT_LAUNCH_SEEN FLAG(0x40, 0x46)
1440/* wstag750 event 883: "...they took the Juggernaut...", in the Chamber
1441 Room; set at its end, tested 0 to start it */
1442#define FLAG_JUGGERNAUT_TAKEN_SEEN FLAG(0x40, 0x47)
1443/* wstag750 event 860: the realize transfer limit is reached and the player
1444 is forced back to digital; set at its end, tested in wstag750/805 */
1445#define FLAG_FORCED_DIGITIZATION_SEEN FLAG(0x40, 0x48)
1446/* wstag300 event 570: "GUBIIIII!", a Digimon the player has never seen
1447 appears in Admin Center 2F; set at its end, tested 0 to start it */
1448#define FLAG_STRANGE_DIGIMON_SEEN FLAG(0x40, 0x4A)
1449/* wstag300 event 572: the player spots the Game Master and three guards
1450 block the way; set at its end, tested 0 to start it */
1451#define FLAG_GAME_MASTER_GUARDS_SEEN FLAG(0x40, 0x4C)
1452/* wstag310 event 680: the fusion experiment succeeds and the A.o.A commence
1453 Operation Sigma; set at its end, tested to start events there */
1454#define FLAG_OPERATION_SIGMA_SEEN FLAG(0x40, 0x4E)
1455/* wstag310 event 681: the Game Master's Persiamon loses and Lisa, Teddy and
1456 Nick arrive to arrest her; set at its end */
1457#define FLAG_GAME_MASTER_WIN_SEEN FLAG(0x40, 0x4F)
1458/* wstag545 event 710: the player asks Zhu Que Chief where the Digi-Egg of
1459 Knowledge is; set at its end, tested to start it */
1460#define FLAG_ZHU_QUE_CHIEF_CHALLENGE_SEEN FLAG(0x40, 0x51)
1461/* wstag521 event 750: "I got the Digi-Egg of Knowledge!"; set at its end,
1462 tested 0 to show Zhu Que Chief (actor 16) */
1463#define FLAG_KNOWLEDGE_EGG_FOUND FLAG(0x40, 0x52)
1464/* wstag375 event 1260: Pharaohmon loses and gives the Old Wand; set at its
1465 end, tested 1 to start event 1261 */
1466#define FLAG_PHARAOHMON_WIN_SEEN FLAG(0x40, 0x53)
1467/* wstag535 event 1262: Zanbamon loses and gives the Rusty Katana; set at
1468 its end, tested 1 to start event 1263 */
1469#define FLAG_ZANBAMON_WIN_SEEN FLAG(0x40, 0x55)
1470/* wstag535 event 1263: the player asks MagnaAngemon for the Patamon DDNA
1471 and he wants a battle; set at its end, tested 0 to start it */
1472#define FLAG_MAGNAANGEMON_DDNA_REQUEST_SEEN FLAG(0x40, 0x56)
1473/* wstag305 event 890: Lisa and Nick plan how to get into Amaterasu City
1474 past the Knightmon Guard System; set at its end */
1475#define FLAG_AMATERASU_PLAN_SEEN FLAG(0x40, 0x57)
1476/* wstag295 event 891: the Game Master reveals Destromon, born from Vemmon
1477 and the Juggernaut; set at its end, tested to start it */
1478#define FLAG_DESTROMON_REVEAL_SEEN FLAG(0x40, 0x58)
1479/* wstag676 event 900: the player wins and gets the White ID Pass; set at
1480 its end, tested 11 times in Bai Hu Dome (troopers' talks) */
1481#define FLAG_BAI_HU_CHIEF_WIN_SEEN FLAG(0x40, 0x5A)
1482/* wstag756 event 910: "I won against Xuen Wu Chief!" and the Black ID Pass;
1483 set at its end, tested 0 to show Xuen Wu Chief */
1484#define FLAG_XUEN_WU_CHIEF_WIN_SEEN FLAG(0x40, 0x5B)
1485/* wstag331 event 920: the player finds Central Park empty and guesses the
1486 secret door's code; set at its end, tested 0 to start it */
1487#define FLAG_CENTRAL_PARK_SECRET_DOOR_SEEN FLAG(0x40, 0x5C)
1488/* wstag311 event 931: the MAGAMI President asks to be called Chief Officer;
1489 set at its end, tested 0 to start it */
1490#define FLAG_CHIEF_OFFICER_MEETING_SEEN FLAG(0x40, 0x5E)
1491/* wstag311 event 934: looking for the Matrix System, the player finds
1492 Vemmon there; set at its end, tested 1 in the Login Room (wstag226) */
1493#define FLAG_VEMMON_AT_HQ_SEEN FLAG(0x40, 0x60)
1494/* wstag800 event 850: a Mech Soldier sounds the intruder alert at the
1495 Juggernaut launch; set at its end, tested 0 to start it */
1496#define FLAG_MECH_SOLDIER_ALERT_SEEN FLAG(0x40, 0x61)
1497/* wstag311 event 932: the Chief Officer turns himself in and Nick arrests
1498 him; set at its end, tested 0 to start it */
1499#define FLAG_CHIEF_OFFICER_ARREST_SEEN FLAG(0x40, 0x67)
1500/* wstag311 event 981: the real goal was Gunslinger, the Digitize Wave will
1501 launch from Ragnarok; set at its end, tested 0 to start it */
1502#define FLAG_DIGITIZE_WAVE_PLAN_SEEN FLAG(0x40, 0x6C)
1503/* wstag810 event 1010: a Metal Soldier sounds the intruder alert in
1504 Gunslinger 1F; set at its end, tested 0 to start it */
1505#define FLAG_GUNSLINGER_1F_SOLDIER_SEEN FLAG(0x40, 0x6F)
1506/* wstag815 event 1020: a Metal Soldier sounds the intruder alert in
1507 Gunslinger 2F; set at its end, tested 0 to start it */
1508#define FLAG_GUNSLINGER_2F_SOLDIER_SEEN FLAG(0x40, 0x70)
1509/* wstag815 event 1030: Lord Megadeath taunts the player from beyond the
1510 Warp Gate; set at its end, tested 0 to start it */
1511#define FLAG_MEGADEATH_TAUNT_SEEN FLAG(0x40, 0x71)
1512/* wstag815 event 1050: Lord Megadeath, a life form born in the network,
1513 meets the player; set at its end, tested 0 to start it */
1514#define FLAG_MEGADEATH_MEETING_SEEN FLAG(0x40, 0x73)
1515/* wstag820 event 1060: beaten, Lord Megadeath calls it a test and brings
1516 out Snatchmon; set at its end, tested to start events there */
1517#define FLAG_MEGADEATH_WIN_SEEN FLAG(0x40, 0x74)
1518/* wstag820 event 1070: Snatchmon appears and questions Lord Megadeath's
1519 orders; set at its end, tested 0 to start it */
1520#define FLAG_SNATCHMON_APPEARS_SEEN FLAG(0x40, 0x75)
1521/* wstag326 event 1281: BK WarGreymon loses and gives the Platinum ID; set
1522 at its end, tested 1 to start event 1282 */
1523#define FLAG_BK_WARGREYMON_WIN_SEEN FLAG(0x40, 0x76)
1524/* wstag326 event 1282: the player accepts the battle of BK MegaGargomon,
1525 bored since no one comes; set at its end, tested 0 to start it */
1526#define FLAG_BK_MEGAGARGOMON_CHALLENGE_SEEN FLAG(0x40, 0x77)
1527/* wstag376 event 1283: BK MegaGargomon loses and gives the Wild Helmet; set
1528 at its end, tested 1 to start event 1284 */
1529#define FLAG_BK_MEGAGARGOMON_WIN_SEEN FLAG(0x40, 0x78)
1530/* wstag406 event 1285: BK Imperialdramon loses and gives the player a
1531 reward; set at its end, tested 1 to start event 1286 */
1532#define FLAG_BK_IMPERIALDRAMON_WIN_SEEN FLAG(0x40, 0x7A)
1533/* wstag538 event 1287: BK Seraphimon says the player has passed his test of
1534 courage; set at its end, tested 1 to start event 1288 */
1535#define FLAG_BK_SERAPHIMON_WIN_SEEN FLAG(0x40, 0x7C)
1536/* wstag606 event 1289: BK WarGrowlmon loses and gives the Hazard Armor; set
1537 at its end, tested 1 to start event 1290 */
1538#define FLAG_BK_WARGROWLMON_WIN_SEEN FLAG(0x40, 0x7E)
1539/* wstag606 event 1290: BK KingNumemon claims to be far superior to other
1540 Numemon; set at its end, tested 0 to start it */
1541#define FLAG_BK_KINGNUMEMON_CHALLENGE_SEEN FLAG(0x40, 0x7F)
1542/* wstag616 event 1291: BK KingNumemon loses and gives the player a reward;
1543 set at its end, tested 1 to start event 1292 */
1544#define FLAG_BK_KINGNUMEMON_WIN_SEEN FLAG(0x40, 0x80)
1545/* wstag741 event 1295: Fire Master loses and gives the Mind Chip; set at
1546 its end, tested 0 to start it */
1547#define FLAG_FIRE_MASTER_WIN_SEEN FLAG(0x40, 0x84)
1548/* wstag741 event 1296: the player challenges Dark Master; set at its end
1549 (gives the Mind Chip), tested 0 to show Fire Master */
1550#define FLAG_DARK_MASTER_CHALLENGE_SEEN FLAG(0x40, 0x85)
1551/* wstag746 event 1297: Dark Master loses and gives the EXP Adaptor; set at
1552 its end, tested 0 to start it */
1553#define FLAG_DARK_MASTER_WIN_SEEN FLAG(0x40, 0x86)
1554/* wstag575 event 422: the player finds Numemon in Bullet Valley, who has
1555 nothing to tell; set at its end, tested 0 to start it */
1556#define FLAG_NUMEMON_BULLET_VALLEY_SEEN FLAG(0x40, 0xA2)
1557/* wstag421 event 740: "Yeah, I beat Qing Long Chief!"; set at its end,
1558 tested 0 to show Qing Long Chief (actor 21) */
1559#define FLAG_QING_LONG_CHIEF_WIN_SEEN FLAG(0x40, 0xA3)
1560/* wstag605 event 510: HiAndromon lets the player pass, unlocks the Secret
1561 Stairs and gives the Rusty Rifle; set at its end */
1562#define FLAG_HIANDROMON_WIN_SEEN FLAG(0x40, 0xA6)
1563/* wstag740 event 9000: a Fire Dungeon trap (Asuka server) leaves the party
1564 at 1 HP; set at its end, tested 0 to start it */
1565#define FLAG_ASUKA_FIRE_TRAP_9000_SPRUNG FLAG(0x40, 0xAA)
1566/* wstag740 event 9001: a Fire Dungeon trap (Asuka server) leaves the party
1567 at 1 HP; set at its end, tested 0 to start it */
1568#define FLAG_ASUKA_FIRE_TRAP_9001_SPRUNG FLAG(0x40, 0xAB)
1569/* wstag740 event 9002: a Fire Dungeon trap (Asuka server) leaves the party
1570 at 1 HP; set at its end, tested 0 to start it */
1571#define FLAG_ASUKA_FIRE_TRAP_9002_SPRUNG FLAG(0x40, 0xAC)
1572/* wstag740 event 9003: a Fire Dungeon trap (Asuka server) leaves the party
1573 at 1 HP; set at its end, tested 0 to start it */
1574#define FLAG_ASUKA_FIRE_TRAP_9003_SPRUNG FLAG(0x40, 0xAD)
1575/* wstag740 event 9004: a Fire Dungeon trap (Asuka server) leaves the party
1576 at 1 HP; set at its end, tested 0 to start it */
1577#define FLAG_ASUKA_FIRE_TRAP_9004_SPRUNG FLAG(0x40, 0xAE)
1578/* wstag740 event 9005: a Fire Dungeon trap (Asuka server) leaves the party
1579 at 1 HP; set at its end, tested 0 to start it */
1580#define FLAG_ASUKA_FIRE_TRAP_9005_SPRUNG FLAG(0x40, 0xAF)
1581/* wstag740 event 9006: a Fire Dungeon trap (Asuka server) leaves the party
1582 at 1 HP; set at its end, tested 0 to start it */
1583#define FLAG_ASUKA_FIRE_TRAP_9006_SPRUNG FLAG(0x40, 0xB0)
1584/* wstag740 event 9007: a Fire Dungeon trap (Asuka server) leaves the party
1585 at 1 HP; set at its end, tested 0 to start it */
1586#define FLAG_ASUKA_FIRE_TRAP_9007_SPRUNG FLAG(0x40, 0xB1)
1587/* wstag740 event 9008: a Fire Dungeon trap (Asuka server) leaves the party
1588 at 1 HP; set at its end, tested 0 to start it */
1589#define FLAG_ASUKA_FIRE_TRAP_9008_SPRUNG FLAG(0x40, 0xB2)
1590/* wstag740 event 9009: a Fire Dungeon trap (Asuka server) leaves the party
1591 at 1 HP; set at its end, tested 0 to start it */
1592#define FLAG_ASUKA_FIRE_TRAP_9009_SPRUNG FLAG(0x40, 0xB3)
1593/* wstag740 event 9010: a Fire Dungeon trap (Asuka server) leaves the party
1594 at 1 HP; set at its end, tested 0 to start it */
1595#define FLAG_ASUKA_FIRE_TRAP_9010_SPRUNG FLAG(0x40, 0xB4)
1596/* wstag740 event 9011: a Fire Dungeon trap (Asuka server) leaves the party
1597 at 1 HP; set at its end, tested 0 to start it */
1598#define FLAG_ASUKA_FIRE_TRAP_9011_SPRUNG FLAG(0x40, 0xB5)
1599/* wstag740 event 9012: a Fire Dungeon trap (Asuka server) leaves the party
1600 at 1 HP; set at its end, tested 0 to start it */
1601#define FLAG_ASUKA_FIRE_TRAP_9012_SPRUNG FLAG(0x40, 0xB6)
1602/* wstag740 event 9013: a Fire Dungeon trap (Asuka server) leaves the party
1603 at 1 HP; set at its end, tested 0 to start it */
1604#define FLAG_ASUKA_FIRE_TRAP_9013_SPRUNG FLAG(0x40, 0xB7)
1605/* wstag740 event 9014: a Fire Dungeon trap (Asuka server) leaves the party
1606 at 1 HP; set at its end, tested 0 to start it */
1607#define FLAG_ASUKA_FIRE_TRAP_9014_SPRUNG FLAG(0x40, 0xB8)
1608/* wstag740 event 9015: a Fire Dungeon trap (Asuka server) leaves the party
1609 at 1 HP; set at its end, tested 0 to start it */
1610#define FLAG_ASUKA_FIRE_TRAP_9015_SPRUNG FLAG(0x40, 0xB9)
1611/* wstag741 event 9000: a Fire Dungeon trap (Amaterasu server) leaves the
1612 party at 1 HP; set at its end, tested 0 to start it */
1613#define FLAG_AMATERASU_FIRE_TRAP_9000_SPRUNG FLAG(0x40, 0xBA)
1614/* wstag741 event 9001: a Fire Dungeon trap (Amaterasu server) leaves the
1615 party at 1 HP; set at its end, tested 0 to start it */
1616#define FLAG_AMATERASU_FIRE_TRAP_9001_SPRUNG FLAG(0x40, 0xBB)
1617/* wstag741 event 9002: a Fire Dungeon trap (Amaterasu server) leaves the
1618 party at 1 HP; set at its end, tested 0 to start it */
1619#define FLAG_AMATERASU_FIRE_TRAP_9002_SPRUNG FLAG(0x40, 0xBC)
1620/* wstag741 event 9003: a Fire Dungeon trap (Amaterasu server) leaves the
1621 party at 1 HP; set at its end, tested 0 to start it */
1622#define FLAG_AMATERASU_FIRE_TRAP_9003_SPRUNG FLAG(0x40, 0xBD)
1623/* wstag741 event 9004: a Fire Dungeon trap (Amaterasu server) leaves the
1624 party at 1 HP; set at its end, tested 0 to start it */
1625#define FLAG_AMATERASU_FIRE_TRAP_9004_SPRUNG FLAG(0x40, 0xBE)
1626/* wstag741 event 9005: a Fire Dungeon trap (Amaterasu server) leaves the
1627 party at 1 HP; set at its end, tested 0 to start it */
1628#define FLAG_AMATERASU_FIRE_TRAP_9005_SPRUNG FLAG(0x40, 0xBF)
1629/* wstag741 event 9006: a Fire Dungeon trap (Amaterasu server) leaves the
1630 party at 1 HP; set at its end, tested 0 to start it */
1631#define FLAG_AMATERASU_FIRE_TRAP_9006_SPRUNG FLAG(0x40, 0xC0)
1632/* wstag741 event 9007: a Fire Dungeon trap (Amaterasu server) leaves the
1633 party at 1 HP; set at its end, tested 0 to start it */
1634#define FLAG_AMATERASU_FIRE_TRAP_9007_SPRUNG FLAG(0x40, 0xC1)
1635/* wstag741 event 9008: a Fire Dungeon trap (Amaterasu server) leaves the
1636 party at 1 HP; set at its end, tested 0 to start it */
1637#define FLAG_AMATERASU_FIRE_TRAP_9008_SPRUNG FLAG(0x40, 0xC2)
1638/* wstag741 event 9009: a Fire Dungeon trap (Amaterasu server) leaves the
1639 party at 1 HP; set at its end, tested 0 to start it */
1640#define FLAG_AMATERASU_FIRE_TRAP_9009_SPRUNG FLAG(0x40, 0xC3)
1641/* wstag741 event 9010: a Fire Dungeon trap (Amaterasu server) leaves the
1642 party at 1 HP; set at its end, tested 0 to start it */
1643#define FLAG_AMATERASU_FIRE_TRAP_9010_SPRUNG FLAG(0x40, 0xC4)
1644/* wstag741 event 9011: a Fire Dungeon trap (Amaterasu server) leaves the
1645 party at 1 HP; set at its end, tested 0 to start it */
1646#define FLAG_AMATERASU_FIRE_TRAP_9011_SPRUNG FLAG(0x40, 0xC5)
1647/* wstag741 event 9012: a Fire Dungeon trap (Amaterasu server) leaves the
1648 party at 1 HP; set at its end, tested 0 to start it */
1649#define FLAG_AMATERASU_FIRE_TRAP_9012_SPRUNG FLAG(0x40, 0xC6)
1650/* wstag741 event 9013: a Fire Dungeon trap (Amaterasu server) leaves the
1651 party at 1 HP; set at its end, tested 0 to start it */
1652#define FLAG_AMATERASU_FIRE_TRAP_9013_SPRUNG FLAG(0x40, 0xC7)
1653/* wstag741 event 9014: a Fire Dungeon trap (Amaterasu server) leaves the
1654 party at 1 HP; set at its end, tested 0 to start it */
1655#define FLAG_AMATERASU_FIRE_TRAP_9014_SPRUNG FLAG(0x40, 0xC8)
1656/* wstag741 event 9015: a Fire Dungeon trap (Amaterasu server) leaves the
1657 party at 1 HP; set at its end, tested 0 to start it */
1658#define FLAG_AMATERASU_FIRE_TRAP_9015_SPRUNG FLAG(0x40, 0xC9)
1659
1660/*
1661 * The SPECIAL conditions (SPECIAL(id), checkSpecialCondition), named after
1662 * what the check function of their SPECIAL_CONDITIONS entry tests with its
1663 * argument (src/engine/game/events.c). A condition list tests one against 1
1664 * or 0; an action list runs it, and the ones that give or take something
1665 * are only actions.
1666 */
1667
1668/* checkItemSet: whether the player has a set of items */
1669
1670/* the player has a Red Snapper, a Spider Web and a Bamboo Spear (items 7, 0x59
1671 and 0xA7, checkItemSet 0): what Tai Kong Wong asks for to make the Fishing
1672 Pole (wstag340) */
1673#define SPECIAL_HAS_FISHING_POLE_PARTS SPECIAL(0x3A)
1674/* the European and Japanese versions: the player has the Muramasa, Super Nova,
1675 Punishment, Eternally and Invincible (items 0x69, 0x77, 0x83, 0x90 and 0x9C,
1676 checkItemSet 1), the "5 strongest Epic Items" the extra chapter's leaders
1677 ask for (wstag949) */
1678#define SPECIAL_HAS_FIVE_EPIC_ITEMS SPECIAL(0x96)
1679
1680/* checkPartner: the starter pack (enum StarterPack), the partners (enum
1681 PartnerId) and the party */
1682
1683/* the player chose the Balanced Pack at registration (GAME.partySet
1684 STARTER_PACK_BALANCED; NAMEET's string 10) */
1685#define SPECIAL_BALANCED_PACK_CHOSEN SPECIAL(0)
1686/* the player chose the Powerful Pack at registration (GAME.partySet
1687 STARTER_PACK_POWERFUL; NAMEET's string 11) */
1688#define SPECIAL_POWERFUL_PACK_CHOSEN SPECIAL(1)
1689/* the player chose the Maniac Pack at registration (GAME.partySet
1690 STARTER_PACK_MANIAC; NAMEET's string 12) */
1691#define SPECIAL_MANIAC_PACK_CHOSEN SPECIAL(2)
1692/* PARTNER_KOTEMON is unlocked */
1693#define SPECIAL_KOTEMON_UNLOCKED SPECIAL(0x10)
1694/* PARTNER_KUMAMON is unlocked */
1695#define SPECIAL_KUMAMON_UNLOCKED SPECIAL(0x12)
1696/* PARTNER_MONMON is unlocked */
1697#define SPECIAL_MONMON_UNLOCKED SPECIAL(0x11)
1698/* PARTNER_AGUMON is unlocked */
1699#define SPECIAL_AGUMON_UNLOCKED SPECIAL(0xB)
1700/* PARTNER_VEEMON is unlocked */
1701#define SPECIAL_VEEMON_UNLOCKED SPECIAL(0xD)
1702/* PARTNER_GUILMON is unlocked */
1703#define SPECIAL_GUILMON_UNLOCKED SPECIAL(0xC)
1704/* PARTNER_RENAMON is unlocked */
1705#define SPECIAL_RENAMON_UNLOCKED SPECIAL(0xF)
1706/* PARTNER_PATAMON is unlocked */
1707#define SPECIAL_PATAMON_UNLOCKED SPECIAL(0xE)
1708/* PARTNER_KOTEMON is in the party */
1709#define SPECIAL_KOTEMON_IN_PARTY SPECIAL(0x42)
1710/* PARTNER_KUMAMON is in the party */
1711#define SPECIAL_KUMAMON_IN_PARTY SPECIAL(0x44)
1712/* PARTNER_MONMON is in the party */
1713#define SPECIAL_MONMON_IN_PARTY SPECIAL(0x43)
1714/* PARTNER_AGUMON is in the party */
1715#define SPECIAL_AGUMON_IN_PARTY SPECIAL(0x47)
1716/* PARTNER_VEEMON is in the party */
1717#define SPECIAL_VEEMON_IN_PARTY SPECIAL(0x46)
1718/* PARTNER_GUILMON is in the party */
1719#define SPECIAL_GUILMON_IN_PARTY SPECIAL(0x45)
1720/* PARTNER_RENAMON is in the party */
1721#define SPECIAL_RENAMON_IN_PARTY SPECIAL(0x49)
1722/* PARTNER_PATAMON is in the party */
1723#define SPECIAL_PATAMON_IN_PARTY SPECIAL(0x48)
1724/* an action: unlocks PARTNER_KOTEMON; the talks that take or give its DDNA
1725 apply it */
1726#define SPECIAL_UNLOCK_KOTEMON SPECIAL(0x37)
1727/* an action: unlocks PARTNER_KUMAMON; the talks that take or give its DDNA
1728 apply it */
1729#define SPECIAL_UNLOCK_KUMAMON SPECIAL(0x39)
1730/* an action: unlocks PARTNER_MONMON; the talks that take or give its DDNA
1731 apply it */
1732#define SPECIAL_UNLOCK_MONMON SPECIAL(0x38)
1733/* an action: unlocks PARTNER_AGUMON; the talks that take or give its DDNA
1734 apply it */
1735#define SPECIAL_UNLOCK_AGUMON SPECIAL(0x31)
1736/* an action: unlocks PARTNER_VEEMON; the talks that take or give its DDNA
1737 apply it */
1738#define SPECIAL_UNLOCK_VEEMON SPECIAL(0x32)
1739/* an action: unlocks PARTNER_GUILMON; the talks that take or give its DDNA
1740 apply it */
1741#define SPECIAL_UNLOCK_GUILMON SPECIAL(0x33)
1742/* an action: unlocks PARTNER_RENAMON; the talks that take or give its DDNA
1743 apply it */
1744#define SPECIAL_UNLOCK_RENAMON SPECIAL(0x35)
1745/* an action: unlocks PARTNER_PATAMON; the talks that take or give its DDNA
1746 apply it */
1747#define SPECIAL_UNLOCK_PATAMON SPECIAL(0x34)
1748/* PARTNER_KOTEMON is unlocked and at level 45 or more */
1749#define SPECIAL_KOTEMON_LEVEL_45 SPECIAL(0x4A)
1750/* PARTNER_KUMAMON is unlocked and at level 45 or more */
1751#define SPECIAL_KUMAMON_LEVEL_45 SPECIAL(0x4C)
1752/* PARTNER_MONMON is unlocked and at level 45 or more */
1753#define SPECIAL_MONMON_LEVEL_45 SPECIAL(0x4B)
1754/* PARTNER_AGUMON is unlocked and at level 45 or more */
1755#define SPECIAL_AGUMON_LEVEL_45 SPECIAL(0x4F)
1756/* PARTNER_VEEMON is unlocked and at level 45 or more */
1757#define SPECIAL_VEEMON_LEVEL_45 SPECIAL(0x4E)
1758/* PARTNER_GUILMON is unlocked and at level 45 or more */
1759#define SPECIAL_GUILMON_LEVEL_45 SPECIAL(0x4D)
1760/* PARTNER_RENAMON is unlocked and at level 45 or more */
1761#define SPECIAL_RENAMON_LEVEL_45 SPECIAL(0x51)
1762/* PARTNER_PATAMON is unlocked and at level 45 or more */
1763#define SPECIAL_PATAMON_LEVEL_45 SPECIAL(0x50)
1764/* the party's levels add up to 30 or more (0 * 15 + 30) */
1765#define SPECIAL_PARTY_LEVEL_TOTAL_30 SPECIAL(0x25)
1766/* the party's levels add up to 45 or more (1 * 15 + 30) */
1767#define SPECIAL_PARTY_LEVEL_TOTAL_45 SPECIAL(0x26)
1768/* the party's levels add up to 60 or more (2 * 15 + 30) */
1769#define SPECIAL_PARTY_LEVEL_TOTAL_60 SPECIAL(0x27)
1770/* the party's levels add up to 75 or more (3 * 15 + 30) */
1771#define SPECIAL_PARTY_LEVEL_TOTAL_75 SPECIAL(0x28)
1772/* the party's levels add up to 90 or more (4 * 15 + 30) */
1773#define SPECIAL_PARTY_LEVEL_TOTAL_90 SPECIAL(0x29)
1774/* PARTNER_KOTEMON is still locked */
1775#define SPECIAL_KOTEMON_LOCKED SPECIAL(0x2E)
1776/* PARTNER_KUMAMON is still locked */
1777#define SPECIAL_KUMAMON_LOCKED SPECIAL(0x30)
1778/* PARTNER_MONMON is still locked */
1779#define SPECIAL_MONMON_LOCKED SPECIAL(0x2F)
1780/* PARTNER_AGUMON is still locked */
1781#define SPECIAL_AGUMON_LOCKED SPECIAL(0x2A)
1782/* PARTNER_VEEMON is still locked */
1783#define SPECIAL_VEEMON_LOCKED SPECIAL(0x2B)
1784/* PARTNER_GUILMON is still locked */
1785#define SPECIAL_GUILMON_LOCKED SPECIAL(0x2C)
1786/* PARTNER_RENAMON is still locked */
1787#define SPECIAL_RENAMON_LOCKED SPECIAL(0x36)
1788/* PARTNER_PATAMON is still locked */
1789#define SPECIAL_PATAMON_LOCKED SPECIAL(0x2D)
1790/* the European and Japanese versions: every unlocked partner is at level 45 or
1791 more */
1792#define SPECIAL_ALL_PARTNERS_LEVEL_45 SPECIAL(0x95)
1793/* the European and Japanese versions, an action: restores the party's HP and
1794 MP */
1795#define SPECIAL_HEAL_PARTY SPECIAL(0x53)
1796/* the European and Japanese versions: all eight partners are unlocked */
1797#define SPECIAL_ALL_PARTNERS_UNLOCKED SPECIAL(0x55)
1798
1799/* checkMoney: whether the player has an amount, or gives or takes one */
1800
1801/* the player has 800 BIT or more (MONEY_REQUIRED[0]) */
1802#define SPECIAL_HAS_800_BIT SPECIAL(0x74)
1803/* the player has 1600 BIT or more (MONEY_REQUIRED[1]) */
1804#define SPECIAL_HAS_1600_BIT SPECIAL(0x75)
1805/* the player has 2700 BIT or more (MONEY_REQUIRED[2]) */
1806#define SPECIAL_HAS_2700_BIT SPECIAL(0x76)
1807/* the player has 4000 BIT or more (MONEY_REQUIRED[3]) */
1808#define SPECIAL_HAS_4000_BIT SPECIAL(0x77)
1809/* the player has 6000 BIT or more (MONEY_REQUIRED[4]) */
1810#define SPECIAL_HAS_6000_BIT SPECIAL(0x78)
1811/* the player has 8700 BIT or more (MONEY_REQUIRED[5]) */
1812#define SPECIAL_HAS_8700_BIT SPECIAL(0x79)
1813/* the player has 11500 BIT or more (MONEY_REQUIRED[6]) */
1814#define SPECIAL_HAS_11500_BIT SPECIAL(0x7A)
1815/* the player has 17500 BIT or more (MONEY_REQUIRED[7]) */
1816#define SPECIAL_HAS_17500_BIT SPECIAL(0x7B)
1817/* the player has 24000 BIT or more (MONEY_REQUIRED[8]) */
1818#define SPECIAL_HAS_24000_BIT SPECIAL(0x7C)
1819/* the player has 32000 BIT or more (MONEY_REQUIRED[9]) */
1820#define SPECIAL_HAS_32000_BIT SPECIAL(0x7D)
1821/* an action: gives the player 100 BIT (MONEY_GAINS[0]) */
1822#define SPECIAL_GAIN_100_BIT SPECIAL(0x8B)
1823/* an action: gives the player 300 BIT (MONEY_GAINS[1]) */
1824#define SPECIAL_GAIN_300_BIT SPECIAL(0x8C)
1825/* an action: gives the player 600 BIT (MONEY_GAINS[2]) */
1826#define SPECIAL_GAIN_600_BIT SPECIAL(0x8D)
1827/* an action: gives the player 1000 BIT (MONEY_GAINS[3]) */
1828#define SPECIAL_GAIN_1000_BIT SPECIAL(0x8E)
1829/* an action: gives the player 1600 BIT (MONEY_GAINS[4]) */
1830#define SPECIAL_GAIN_1600_BIT SPECIAL(0x8F)
1831/* an action: gives the player 3000 BIT (MONEY_GAINS[5]) */
1832#define SPECIAL_GAIN_3000_BIT SPECIAL(0x90)
1833/* an action: gives the player 5000 BIT (MONEY_GAINS[6]) */
1834#define SPECIAL_GAIN_5000_BIT SPECIAL(0x91)
1835/* an action: gives the player 8500 BIT (MONEY_GAINS[7]) */
1836#define SPECIAL_GAIN_8500_BIT SPECIAL(0x92)
1837/* an action: takes 800 BIT (MONEY_LOSSES[0]) */
1838#define SPECIAL_LOSE_800_BIT SPECIAL(0x7E)
1839/* an action: takes 1600 BIT (MONEY_LOSSES[1]) */
1840#define SPECIAL_LOSE_1600_BIT SPECIAL(0x7F)
1841/* an action: takes 2700 BIT (MONEY_LOSSES[2]) */
1842#define SPECIAL_LOSE_2700_BIT SPECIAL(0x80)
1843/* an action: takes 4000 BIT (MONEY_LOSSES[3]) */
1844#define SPECIAL_LOSE_4000_BIT SPECIAL(0x81)
1845/* an action: takes 6000 BIT (MONEY_LOSSES[4]) */
1846#define SPECIAL_LOSE_6000_BIT SPECIAL(0x82)
1847/* an action: takes 8700 BIT (MONEY_LOSSES[5]) */
1848#define SPECIAL_LOSE_8700_BIT SPECIAL(0x83)
1849/* an action: takes 11500 BIT (MONEY_LOSSES[6]) */
1850#define SPECIAL_LOSE_11500_BIT SPECIAL(0x84)
1851/* an action: takes 17500 BIT (MONEY_LOSSES[7]) */
1852#define SPECIAL_LOSE_17500_BIT SPECIAL(0x85)
1853/* an action: takes 24000 BIT (MONEY_LOSSES[8]) */
1854#define SPECIAL_LOSE_24000_BIT SPECIAL(0x86)
1855/* an action: takes 32000 BIT (MONEY_LOSSES[9]) */
1856#define SPECIAL_LOSE_32000_BIT SPECIAL(0x87)
1857
1858/* checkProgressRange: whether GAME.progress is within a range of
1859 PROGRESS_RANGES */
1860
1861/* GAME.progress is from STORY_LOGGED_IN to STORY_LISA_SAVED
1862 (PROGRESS_RANGES[0]) */
1863#define SPECIAL_STORY_LOGGED_IN_TO_LISA_SAVED SPECIAL(6)
1864/* GAME.progress is from STORY_GENJI_BEATEN to STORY_GAME_MASTER_CAUGHT
1865 (PROGRESS_RANGES[1]) */
1866#define SPECIAL_STORY_GENJI_BEATEN_TO_GAME_MASTER_CAUGHT SPECIAL(3)
1867/* GAME.progress is from STORY_GENJI_BEATEN to 0x2C (PROGRESS_RANGES[2]);
1868 nothing sets 0x2C, so to STORY_MOVIE_BATTLES */
1869#define SPECIAL_STORY_GENJI_BEATEN_TO_MOVIE_BATTLES SPECIAL(0xA)
1870/* GAME.progress is from STORY_BYAKKO_LEADER_FOUGHT to STORY_GAME_MASTER_CAUGHT
1871 (PROGRESS_RANGES[3]) */
1872#define SPECIAL_STORY_BYAKKO_LEADER_FOUGHT_TO_GAME_MASTER_CAUGHT SPECIAL(7)
1873/* GAME.progress is from STORY_KNIGHTMON_REPROGRAMMED to STORY_AMATERASU_BRIDGE
1874 (PROGRESS_RANGES[4]) */
1875#define SPECIAL_STORY_KNIGHTMON_REPROGRAMMED_TO_AMATERASU_BRIDGE SPECIAL(4)
1876/* GAME.progress is from STORY_ASUKA_HEADQUARTERS to 0x2A (PROGRESS_RANGES[5]);
1877 nothing sets 0x2A, so to STORY_GUNSLINGER */
1878#define SPECIAL_STORY_ASUKA_HEADQUARTERS_TO_GUNSLINGER SPECIAL(5)
1879/* GAME.progress is STORY_GENJI_BEATEN or later (PROGRESS_RANGES[6], to 0x63)
1880 */
1881#define SPECIAL_STORY_SINCE_GENJI_BEATEN SPECIAL(9)
1882/* GAME.progress is STORY_SOUTH_STATION_GHOST or later (PROGRESS_RANGES[7], to
1883 0x63) */
1884#define SPECIAL_STORY_SINCE_SOUTH_STATION_GHOST SPECIAL(0x14)
1885/* GAME.progress is STORY_KNIGHTMON_REPROGRAMMED or later (PROGRESS_RANGES[8],
1886 to 0x63) */
1887#define SPECIAL_STORY_SINCE_KNIGHTMON_REPROGRAMMED SPECIAL(8)
1888/* GAME.progress is from STORY_CONTROL_ROOM to 0x2A (PROGRESS_RANGES[9]);
1889 nothing sets 0x2A, so to STORY_GUNSLINGER */
1890#define SPECIAL_STORY_CONTROL_ROOM_TO_GUNSLINGER SPECIAL(0x3F)
1891/* GAME.progress is STORY_LISA_SAVED or later (PROGRESS_RANGES[0xA], to 0x63)
1892 */
1893#define SPECIAL_STORY_SINCE_LISA_SAVED SPECIAL(0x40)
1894/* GAME.progress is STORY_BYAKKO_LEADER_FOUGHT or later (PROGRESS_RANGES[0xB],
1895 to 0x63) */
1896#define SPECIAL_STORY_SINCE_BYAKKO_LEADER_FOUGHT SPECIAL(0x41)
1897/* GAME.progress is STORY_DE_SINCERITY or later (PROGRESS_RANGES[0xC], to 0x63)
1898 */
1899#define SPECIAL_STORY_SINCE_DE_SINCERITY SPECIAL(0x93)
1900/* GAME.progress is STORY_DE_KNOWLEDGE or later (PROGRESS_RANGES[0xD], to 0x63)
1901 */
1902#define SPECIAL_STORY_SINCE_DE_KNOWLEDGE SPECIAL(0x94)
1903/* GAME.progress is from STORY_SEIRYU_BADGE to STORY_ZANBAMON_DRIVEN_OFF
1904 (PROGRESS_RANGES[0xE]) */
1905#define SPECIAL_STORY_SEIRYU_BADGE_TO_ZANBAMON_DRIVEN_OFF SPECIAL(0x15)
1906/* GAME.progress is from STORY_DE_SINCERITY to STORY_LISA_SAVED
1907 (PROGRESS_RANGES[0xF]) */
1908#define SPECIAL_STORY_DE_SINCERITY_TO_LISA_SAVED SPECIAL(0x16)
1909/* GAME.progress is from STORY_BYAKKO_LEADER_FOUGHT to STORY_CONTROL_ROOM
1910 (PROGRESS_RANGES[0x10]) */
1911#define SPECIAL_STORY_BYAKKO_LEADER_FOUGHT_TO_CONTROL_ROOM SPECIAL(0x17)
1912/* GAME.progress is from STORY_KNIGHTMON_REPROGRAMMED to STORY_BULBMON_FOUND
1913 (PROGRESS_RANGES[0x11]) */
1914#define SPECIAL_STORY_KNIGHTMON_REPROGRAMMED_TO_BULBMON_FOUND SPECIAL(0x18)
1915/* GAME.progress is from STORY_JUNGLE_SOUND to STORY_AMATERASU_BRIDGE
1916 (PROGRESS_RANGES[0x12]) */
1917#define SPECIAL_STORY_JUNGLE_SOUND_TO_AMATERASU_BRIDGE SPECIAL(0x19)
1918/* GAME.progress is from STORY_ASUKA_HEADQUARTERS to STORY_OPERATION_SIGMA
1919 (PROGRESS_RANGES[0x13]) */
1920#define SPECIAL_STORY_ASUKA_HEADQUARTERS_TO_OPERATION_SIGMA SPECIAL(0x1A)
1921/* GAME.progress is from STORY_AMATERASU_BRIDGE to STORY_PRESIDENT_ARRESTED
1922 (PROGRESS_RANGES[0x14]) */
1923#define SPECIAL_STORY_AMATERASU_BRIDGE_TO_PRESIDENT_ARRESTED SPECIAL(0x1C)
1924/* GAME.progress is from STORY_JUNGLE_SOUND to STORY_BLACK_ID_PASS
1925 (PROGRESS_RANGES[0x15]) */
1926#define SPECIAL_STORY_JUNGLE_SOUND_TO_BLACK_ID_PASS SPECIAL(0x1D)
1927/* GAME.progress is from STORY_WAY_TO_AMATERASU to STORY_PRESIDENT_ARRESTED
1928 (PROGRESS_RANGES[0x16]) */
1929#define SPECIAL_STORY_WAY_TO_AMATERASU_TO_PRESIDENT_ARRESTED SPECIAL(0x21)
1930/* GAME.progress is from STORY_JUNGLE_SOUND to STORY_PRESIDENT_ARRESTED
1931 (PROGRESS_RANGES[0x17]) */
1932#define SPECIAL_STORY_JUNGLE_SOUND_TO_PRESIDENT_ARRESTED SPECIAL(0x1E)
1933/* GAME.progress is from STORY_BLUE_ID_PASS to STORY_AMATERASU_BRIDGE
1934 (PROGRESS_RANGES[0x18]) */
1935#define SPECIAL_STORY_BLUE_ID_PASS_TO_AMATERASU_BRIDGE SPECIAL(0x1F)
1936/* GAME.progress is from STORY_JUNGLE_SOUND to STORY_NETWORK_OFFLINE
1937 (PROGRESS_RANGES[0x19]) */
1938#define SPECIAL_STORY_JUNGLE_SOUND_TO_NETWORK_OFFLINE SPECIAL(0x20)
1939/* GAME.progress is from STORY_GENJI_BEATEN to STORY_PRESIDENT_ARRESTED
1940 (PROGRESS_RANGES[0x1A]) */
1941#define SPECIAL_STORY_GENJI_BEATEN_TO_PRESIDENT_ARRESTED SPECIAL(0x22)
1942/* GAME.progress is from STORY_GENJI_BEATEN to STORY_STAFF_PASS
1943 (PROGRESS_RANGES[0x1B]) */
1944#define SPECIAL_STORY_GENJI_BEATEN_TO_STAFF_PASS SPECIAL(0x23)
1945/* GAME.progress is from STORY_TEDDY_FOUND to STORY_PRESIDENT_ARRESTED
1946 (PROGRESS_RANGES[0x1C]) */
1947#define SPECIAL_STORY_TEDDY_FOUND_TO_PRESIDENT_ARRESTED SPECIAL(0x24)
1948/* GAME.progress is from STORY_BYAKKO_BADGE to STORY_PRESIDENT_ARRESTED
1949 (PROGRESS_RANGES[0x1D]) */
1950#define SPECIAL_STORY_BYAKKO_BADGE_TO_PRESIDENT_ARRESTED SPECIAL(0x3B)
1951/* GAME.progress is from STORY_ZANBAMON_DRIVEN_OFF to STORY_AGUMON_DISGUISE
1952 (PROGRESS_RANGES[0x1E]) */
1953#define SPECIAL_STORY_ZANBAMON_DRIVEN_OFF_TO_AGUMON_DISGUISE SPECIAL(0x3C)
1954/* GAME.progress is from STORY_BULBMON_BEATEN to STORY_PRESIDENT_ARRESTED
1955 (PROGRESS_RANGES[0x1F]) */
1956#define SPECIAL_STORY_BULBMON_BEATEN_TO_PRESIDENT_ARRESTED SPECIAL(0x3D)
1957/* GAME.progress is from STORY_LOOKING_FOR_TEDDY to STORY_CONTROL_ROOM
1958 (PROGRESS_RANGES[0x20]) */
1959#define SPECIAL_STORY_LOOKING_FOR_TEDDY_TO_CONTROL_ROOM SPECIAL(0x3E)
1960
1961/* checkFlagCount: the Master Room's sensors (wstag305), the letters M, O,
1962 N, S, T, E and R (FLAG_MASTER_ROOM_SENSOR_M_TOUCHED to _R_, GAME.flags1C
1963 0x27-0x2D), and the four leaders. Entry 0x72 (mode 3) is never true,
1964 and nothing uses it */
1965
1966/* one of the Master Room's sensors or more is touched */
1967#define SPECIAL_MASTER_ROOM_SENSOR_TOUCHED SPECIAL(0x71)
1968/* two of the Master Room's sensors or more are still untouched */
1969#define SPECIAL_MASTER_ROOM_SENSORS_LEFT SPECIAL(0x70)
1970/* exactly one of the Master Room's sensors is untouched */
1971#define SPECIAL_MASTER_ROOM_LAST_SENSOR_LEFT SPECIAL(0x73)
1972/* the European and Japanese versions: FLAG_CHINRON_LEADER_FOUGHT,
1973 FLAG_ZHU_QUE_LEADER_FOUGHT, FLAG_BAI_HU_LEADER_FOUGHT and
1974 FLAG_XUAN_WU_LEADER_FOUGHT are all set, as the extra chapter's arena asks
1975 (wstag926) */
1976#define SPECIAL_FOUR_LEADERS_FOUGHT SPECIAL(0x54)
1977
1978/* showActorIcon */
1979
1980/* an action: the player's icon plays its animation 3 with SOUND_ITEM_GET
1981 (FIELD_COMMAND_ICON3); the talks that give an item or a partner apply it */
1982#define SPECIAL_SHOW_ITEM_GET_ICON SPECIAL(0x13)
1983
1984#endif
StoryProgress
The points of the story (GAME.progress), each named after the event that moves the story on to it,...
Definition story.h:20
@ STORY_BLACK_ID_PASS
WSTAG756 (Battle Gate), event 911: the Black ID Pass.
Definition story.h:131
@ STORY_BYAKKO_BADGE
WSTAG655 (Mirage Room), event 431: HiAndromon guards the way to Numemon (the Byakko Badge)
Definition story.h:76
@ STORY_WHITE_ID_PASS
WSTAG676 (Bai Hu Dome), event 901: the General says the A.o.A came on Bulbmon (the White ID Pass)
Definition story.h:129
@ STORY_PRESIDENT_ARRESTED
WSTAG226 (Login Room, Amaterasu City), event 935, after the President of MAGAMI gives himself up (WST...
Definition story.h:136
@ STORY_BULBMON_FOUND
WSTAG520 (Suzaku Hall), event 695: another earthquake; Bulbmon digs the holes.
Definition story.h:103
@ STORY_BLUE_ID_PASS
WSTAG421 (Qing Long City), event 743: with the Blue ID Pass a Trooper takes the player for the Qing L...
Definition story.h:109
@ STORY_LOGGED_IN
WSTAG225 (Login Room, Asuka City), event 5: the first login, where the account clerk explains Digimon...
Definition story.h:29
@ STORY_LUCKY_MOUSE
WSTAG615 (Sewers), event 531: Lucky Mouse appears (DM0531, "Lucky Mouse appears")
Definition story.h:82
@ STORY_OPERATION_SIGMA
WSTAG311 (A.o.A Headquarters, Amaterasu City), event 982, after event 981, where the A....
Definition story.h:141
@ STORY_START
a new game; WSTAG780's event 0, where Junior meets Ivy and Teddy at the Online Center in the real wor...
Definition story.h:23
@ STORY_AGUMON_SUITS
WSTAG380 (Divermon's Lake), event 205: the Mischievous Mat, caught in his Etemon Suit,...
Definition story.h:52
@ STORY_BYAKKO_LEADER_FOUGHT
WSTAG620 (the rebels' hideout), event 534: the Byakko Leader takes the player for the A....
Definition story.h:85
@ STORY_SEPIKMON_MASK_LOST
WSTAG480 (Jungle Grave), event 171: Sepikmon will say how to beat Zanbamon once the player finds his ...
Definition story.h:49
@ STORY_AMATERASU_BRIDGE
WSTAG206 (Amaterasu Bridge), event 922: an Attacker holds the bridge.
Definition story.h:133
@ STORY_ZANBAMON_DRIVEN_OFF
WSTAG475 (Shaman House), event 230: the Smelly Herb drives Zanbamon off the way.
Definition story.h:55
@ STORY_CONTROL_ROOM
WSTAG325 (Control Room, Asuka City), event 560: a Soldier guards the way.
Definition story.h:90
@ STORY_GUNSLINGER
WSTAG810 (Gunslinger 1F), event 1035.
Definition story.h:143
@ STORY_BULBMON_BEATEN
WSTAG521 (Zhu Que Hall), event 751: Bulbmon is beaten (the Red ID Pass); its hole leads on to the Ama...
Definition story.h:112
@ STORY_GENJI_BEATEN
WSTAG200, event 52: after the first battle, won against Tamer Genji (event 50), the Digimon Navi give...
Definition story.h:36
@ STORY_NUMEMON_FOUND
WSTAG685 (Underground Cave, Byakko City), event 413: the rock blocking the hole is Numemon.
Definition story.h:73
@ STORY_KNIGHTMON_REPROGRAMMED
WSTAG210 (Main Lobby, Asuka City), event 685: the A.o.A have reprogrammed Knightmon,...
Definition story.h:97
@ STORY_SUZAKU_BADGE
WSTAG520, event 261: the Suzaku Leader is beaten (the Suzaku Badge), and Kail says Teddy went to Asuk...
Definition story.h:58
@ STORY_EXTRA
WSTAG780, event 1500, in the European and Japanese versions: the extra chapter, whose stages are FIEL...
Definition story.h:149
@ STORY_TEDDY_FOUND
WSTAG212, event 352: Teddy is found; MAGAMI is part of the A.o.A, and the player sets off to beat the...
Definition story.h:67
@ STORY_LISA_SAVED
WSTAG605 (Operation Room), event 511: the player saves Lisa from WaruMonzaemon (the Rusty Rifle)
Definition story.h:79
@ STORY_LOOKING_FOR_TEDDY
WSTAG212, event 273: Kail and the player will put on the Agumon Suits to look for Teddy.
Definition story.h:61
@ STORY_ACCOUNT_REGISTERED
WSTAG785, event 1: the account is registered, and the clerk sends Junior to the Chamber Room.
Definition story.h:26
@ STORY_JUNGLE_SOUND
WSTAG545 (Bug Maze Pit), event 711: Patamon heard a weird sound from the jungle, where its leader wen...
Definition story.h:106
@ STORY_SOUTH_STATION_GHOST
WSTAG440 (South Station), event 152: a ghost's voice in the empty station.
Definition story.h:45
@ STORY_WAY_TO_AMATERASU
WSTAG305, events 893 and 895: the way into Amaterasu City, the A.o.A's headquarters,...
Definition story.h:126
@ STORY_DE_KNOWLEDGE
WSTAG526 (Zhu Que UG Lake), event 760: the fight with Zanbamon (the DE Knowledge)
Definition story.h:115
@ STORY_MOVIE_BATTLES
WSTAG820, event 1080, with Snatchmon: each encounter plays MODE_BATTLE_MOVIE first.
Definition story.h:146
@ STORY_GENBU_BADGE
WSTAG755 (Battle Gate), event 781: the Xuen Wu Chief, who holds the Black ID Pass,...
Definition story.h:118
@ STORY_STAFF_PASS
WSTAG620, event 551: Nick finds a Staff Pass for the player.
Definition story.h:87
@ STORY_PARTNERS_RECEIVED
WSTAG212, events 10 to 12: the Tamer Service downloads the starter pack's Digimon (DM0010-DM0012,...
Definition story.h:32
@ STORY_ASUKA_HEADQUARTERS
WSTAG310 (A.o.A Headquarters, Asuka City), event 961.
Definition story.h:138
@ STORY_SEIRYU_BADGE
WSTAG420, event 71: the Seiryu Leader is beaten (the Silver ID and the Seiryu Badge),...
Definition story.h:39
@ STORY_AGUMON_DISGUISE
WSTAG237 (Underground Path), event 300: in the Agumon Suit; Kail goes on ahead alone.
Definition story.h:64
@ STORY_GAME_MASTER_CAUGHT
WSTAG305 (Master Room), event 661: the Game Master is caught, but Vemmon takes over the Optical Netwo...
Definition story.h:94
@ STORY_CODE_PASSES_NEEDED
WSTAG685, event 690: Leader Chuck says stopping Knightmon takes the four City Leaders' Code Passes.
Definition story.h:100
@ STORY_REAL_WORLD
WSTAG750 (the emergency Matrix Chamber), event 820: back in the real world, for 180 seconds.
Definition story.h:121
@ STORY_FAKE_BLUE_CARD
WSTAG410 (East Station), event 90: the Blue Card the player was given turns out to be a fake.
Definition story.h:42
@ STORY_NETWORK_OFFLINE
WSTAG750, event 886: the news say the Optical Network is offline.
Definition story.h:123
@ STORY_DE_SINCERITY
WSTAG460 (Reliability Spot), event 370: the Qing Long Chief, asked for the Digi-Egg of Knowledge,...
Definition story.h:70