Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
wfightmn_2.c
Go to the documentation of this file.
1/* WFIGHTMN's second object's data: the screen, the technique tables of the
2 last enemy and the event states. */
3
5
7/* A technique's look (its scriptEffect and scriptSound) by its effect, for
8 WFIGHTMN_bringLastEnemy; the list ends at the first -1, so the USA
9 version's three entries after it are never read */
10#if VERSION_US
12 { TECH_EFFECT_POISON, 19, 26 },
13 { TECH_EFFECT_PARALYSIS, 20, 26 },
14 { TECH_EFFECT_CONFUSION, 21, 27 },
15 { TECH_EFFECT_SLEEP, 22, 50 },
16 { TECH_EFFECT_KNOCK_OUT, 26, 50 },
17 { TECH_EFFECT_DRAIN, 28, 39 },
18 { -1, 37, 49 },
19 { TECH_EFFECT_LOWER_DEFENSE, 39, 49 },
20 { 28, 41, 49 },
21 { -1, 0, 0 },
22};
23#elif VERSION_EU || VERSION_JP
25 { TECH_EFFECT_POISON, 19, 26 },
26 { TECH_EFFECT_PARALYSIS, 20, 26 },
27 { TECH_EFFECT_CONFUSION, 21, 27 },
28 { TECH_EFFECT_SLEEP, 22, 50 },
29 { TECH_EFFECT_KNOCK_OUT, 26, 50 },
30 { TECH_EFFECT_DRAIN, 28, 39 },
31 { -1, 37, 49 },
32};
33#endif
34/* A technique's look (its scriptEffect, scriptSound and scriptStage) by its
35 element, for WFIGHTMN_bringLastEnemy when WFIGHTMN_effectVisuals gives
36 none */
38 { 2, 5, 64, 34 },
39 { 3, 9, 45, 37 },
40 { 4, 11, 44, 40 },
41 { 5, 14, 29, 43 },
42 { 6, 16, 44, 46 },
43 { 7, 65, 64, 49 },
44 { 8, 7, 64, 52 },
45 { -1, 0, 0, 0 },
46};
56/* WFIGHTMN_startTech's effects (BattleScript.effect and sound) by the first of
57 FIGHTSTG_action.effects[2..12] that is set: the kinds of WFIGHTMN_effectVisuals */
59 {19, 26}, {20, 26}, {21, 27}, {22, 50}, {26, 50}, {0, 0},
60 {28, 39}, {0, 0}, {46, 30}, {0, 59}, {31, 58},
61};
#define TECH_EFFECT_POISON
Definition battle.h:252
#define TECH_EFFECT_SLEEP
Definition battle.h:255
#define TECH_EFFECT_CONFUSION
Definition battle.h:254
#define TECH_EFFECT_PARALYSIS
Definition battle.h:253
#define TECH_EFFECT_KNOCK_OUT
Definition battle.h:256
#define TECH_EFFECT_DRAIN
HP, in 128ths of the damage.
Definition battle.h:257
#define TECH_EFFECT_LOWER_DEFENSE
Definition battle.h:265
void WFIGHTMN_endSpecial(BattleMenu *task, BattleMenuChildren *children)
The end of the partner's special state (EVENT_SPECIAL_END): clears it and shows message 0x59.
Definition menu.c:1150
void WFIGHTMN_blast(BattleMenu *task, BattleMenuChildren *children)
Digivolves the current partner for the battle, to the Digimon its level reaches (DigimonData....
Definition menu.c:865
void WFIGHTMN_clearField(BattleMenu *task, BattleMenuChildren *children)
EVENT_CLEAR_FIELD: shows message 0x6A and ends the element boost (FIGHTSTG_battle....
Definition menu.c:681
void WFIGHTMN_recover(BattleMenu *task, BattleMenuChildren *children)
A fighter's recovery (EVENT_RECOVERY): unless its HP is full, plays technique 0xBD on it when it is t...
Definition menu.c:637
void WFIGHTMN_runCommand(BattleMenu *task, BattleMenuChildren *children)
The player's turn (EVENT_PLAYER_TURN): drops the partner's queued technique and running away,...
Definition menu.c:233
void WFIGHTMN_tag(BattleMenu *task, BattleMenuChildren *children)
Swaps the partner on the field for the one picked (children->commands): message 0x38,...
Definition menu.c:350
void WFIGHTMN_runAway(BattleMenu *task, BattleMenuChildren *children)
Asks FIGHTSTG (FIGHTSTG_battleFuncs.testRunAway) whether the current action's actor gets away; if so ...
Definition menu.c:569
void WFIGHTMN_bringLastEnemy(BattleMenu *task, BattleMenuChildren *children)
The enemy's third fighter comes in (BATTLE_KIND_FINAL_LAST), takes the first's place,...
Definition menu.c:1230
void WFIGHTMN_restoreEnemy(BattleMenu *task, BattleMenuChildren *children)
The end of the enemy's weakness (EVENT_WEAKNESS_END): its lowered stats come back and it takes its tu...
Definition menu.c:1315
void WFIGHTMN_digivolve(BattleMenu *task, BattleMenuChildren *children)
The state that changes the current partner's Digimon to the one picked (commands->digimon),...
Definition menu.c:320
void WFIGHTMN_pairTech(BattleMenu *task, BattleMenuChildren *children)
State 6, the pair technique (the player turn's action 6): the outgoing and incoming partners do comma...
Definition menu.c:428
void WFIGHTMN_digidevolve(BattleMenu *task, BattleMenuChildren *children)
EVENT_DIGIDEVOLVE: the partner goes back to its own form, its blast and its queued technique are drop...
Definition menu.c:1166
void WFIGHTMN_endBlast(BattleMenu *task, BattleMenuChildren *children)
Turns the current partner back into the Digimon it was (prevId)
Definition menu.c:933
void WFIGHTMN_endRestriction(BattleMenu *task, BattleMenuChildren *children)
Clears the restriction that the current action ends (FIGHTER_NO_SWITCH or FIGHTER_NO_DIGIVOLVE) from ...
Definition menu.c:839
void WFIGHTMN_knockOut(BattleMenu *task, BattleMenuChildren *children)
EVENT_KNOCK_OUT (substate 0x15), a fighter's fall: case 0 takes its event off the queue,...
Definition menu.c:1064
void WFIGHTMN_runConfusedCommand(BattleMenu *task, BattleMenuChildren *children)
A confused partner's turn (FIGHTER_CONFUSED): the player's turn at step 3, where only an attack does ...
Definition menu.c:816
void WFIGHTMN_endBattle(BattleMenu *task, BattleMenuChildren *children)
After a won battle, picks the enemy whose item the player may get; saves the partners' HP and MP,...
Definition menu.c:456
void WFIGHTMN_endAutoRecover(BattleMenu *task, BattleMenuChildren *children)
Removes the current action's EVENT_RECOVERY event, unless the partner it is for has WFIGHTMN_RECOVERY...
Definition menu.c:606
void WFIGHTMN_endBoost(BattleMenu *task, BattleMenuChildren *children)
Clears the boost (BattleFighter.boosts) that the current action ends.
Definition menu.c:790
void WFIGHTMN_takeDamage(BattleMenu *task, BattleMenuChildren *children)
Carries out the current action's damage (FIGHTSTG_battleFuncs.getDamage) on its unit.
Definition menu.c:692
void WFIGHTMN_cureStatus(BattleMenu *task, BattleMenuChildren *children)
States 13-15: end the current action's unit's paralysis, confusion or sleep.
Definition menu.c:754
void WFIGHTMN_showWon(BattleMenu *task, BattleMenuChildren *children)
Shows the won message (from WFIGHTMN_knockOut) for its time, then closes it.
Definition menu.c:1204
#define NULL
Definition common.h:17
#define SCREEN_WIDTH
The screen the modes draw on (setDisplayMode, their layers' rects)
Definition gfx.h:36
#define SCREEN_HEIGHT
Definition gfx.h:37
WFIGHTMN.PRO: the battle's sub-overlay.
The battle menu's children.
The battle menu (WFIGHTMN_start), registered as BATTLE_TASK_MENU.
A technique's look (TechData's script fields) by its effect, for WFIGHTMN_bringLastEnemy.
A technique's look by its element, for WFIGHTMN_bringLastEnemy.
A battle script's look (BattleScript.effect and sound)
ElementLook WFIGHTMN_elementVisuals[]
A technique's look (its scriptEffect, scriptSound and scriptStage) by its element,...
Definition wfightmn_2.c:37
EffectLook WFIGHTMN_effectVisuals[]
A technique's look (its scriptEffect and scriptSound) by its effect, for WFIGHTMN_bringLastEnemy; the...
Definition wfightmn_2.c:24
void(* WFIGHTMN_states[])(BattleMenu *task, BattleMenuChildren *children)
The battle menu's states, by its substate.
Definition wfightmn_2.c:47
RECT WFIGHTMN_screen
The screen its layers cover.
Definition wfightmn_2.c:6
ScriptLook WFIGHTMN_actionEffects[]
WFIGHTMN_startTech's effects (BattleScript.effect and sound) by the first of FIGHTSTG_action....
Definition wfightmn_2.c:58