Imil, in two maps: the town and its interiors. More...
Go to the source code of this file.
Macros | |
| #define | IMIL_OPEN_SHOP ((s32 (*)())Engine_ShopOpen) |
Enumerations | |
| enum | ImilActor { ACTOR_COLD_VILLAGER = 8 , ACTOR_GREETER = 9 , ACTOR_COUNTING_CHILD = 10 , ACTOR_SNOWMAN = 11 , ACTOR_OLD_WOMAN = 8 , ACTOR_OLD_MAN = 9 , ACTOR_WEAPON_MERCHANT = 12 , ACTOR_ARMOR_MERCHANT = 13 , ACTOR_ITEM_SHOP_CHILD = 14 , ACTOR_ITEM_MERCHANT = 15 , ACTOR_INNKEEPER = 16 , ACTOR_RESTAURANT_OWNER = 18 , ACTOR_APPRENTICE = 19 , ACTOR_SECOND_APPRENTICE = 20 } |
| Imil's two maps share actor numbers; each is named on the map it is proved. More... | |
| enum | ImilTownFlag { FLAG_IMIL_MAP_LAYER_0 = FLAG_SCENE_TEMP_00 , FLAG_IMIL_MAP_LAYER_1 = FLAG_SCENE_TEMP_01 , FLAG_IMIL_SNOWMAN_ON_CHIMNEY = FLAG_SCENE_TEMP_03 } |
| The town's own flags, kept while the party is there. More... | |
Functions | |
| static void | Imil_MeetMiaAtOldCouplesHouse (void) |
| After hearing where Mia went, the party finds her at the old couple's house. | |
| static void | Imil_MiaCastsPlyOnOldMan (void) |
| static void | Imil_SpawnAmbientEffects (void) |
| Effects rise at five places in the town, staggered over each second. | |
| static void | Imil_UpdateMapLayerByLeaderPosition (void) |
| The leader walks on map layer 0 near the middle of town and on layer 1 elsewhere. | |
| static void | Imil_MoveSnowmanToChimney (void) |
| Moved onto the chimney, the snowman stays there and blocks its cell. | |
| static void | Imil_ShowFirstArrival (void) |
| Arriving for the first time, the leader walks into town. | |
| static void | Imil_MiaSaysFarewellToApprentices (void) |
| Once the town is cured, Mia says farewell to her two apprentices in the sanctum before leaving with the party. | |
| static void | Imil_RunIceSlide (void) |
| The leader slides along the ice until something stops him. | |
| static s32 | Imil_UpdateShiver (struct ScriptInterpreter *interpreter) |
| A sick person shivers: a quick squash, then a pause, longer for the old man. | |
| const struct SceneEntrance * | Imil_GetEntrances (void) |
| Imil is two maps: the town and its interiors. | |
| const struct SceneRegion * | Imil_GetRegions (void) |
| const u32 * | Imil_GetExits (void) |
| const struct ScenePlacement * | Imil_GetPlacements (void) |
| Once the epidemic is cured (flag 0x881), the townspeople are well again and the old man is up and about. | |
| static void | Imil_StartIceSlide (void) |
| Stepping onto the ice starts a slide. | |
| const struct SceneEvent * | Imil_GetEvents (void) |
| The town's or the interiors' conversations and Psynergy targets. | |
| static void | Imil_TalkToColdVillager (void) |
| The cold villager sneezes and shivers, waiting for Mia; once she travels with the party (flag 3), he says that even her healing can't help them all. | |
| static void | Imil_ReadColdVillagerMind (void) |
| Mind Read on the cold villager: Mia should be here by now, or, once she has joined the party, he can't understand why she left. | |
| static void | Imil_GreetVisitor (void) |
| A villager turns to the leader and asks whether he is new in Imil. | |
| static void | Imil_TalkToCountingChild (void) |
| The counting child stops, turns to the leader and goes back to counting. | |
| static void | Imil_TalkToOldMan (void) |
| The old man moans for help until the old woman hurries to fetch Mia; after Mia's healing he feels much better, and once the town is cured he asks whether the party really thought he would die. | |
| static void | Imil_AskAboutWeapons (void) |
| Once the epidemic is cured, the weapon merchant asks whether the party wants weapons. | |
| static void | Imil_AskAboutRestaurantMenu (void) |
| Once the epidemic is cured, the restaurant owner offers the menu. | |
| static void | Imil_TalkToSecondApprentice (void) |
| Mia's second apprentice asks whether the party has visited the old couple, where Mia went; once Mia has joined, she says everyone counts on her. | |
| static void | Imil_ReadSecondApprenticeMind (void) |
| Mind Read on the second apprentice: Mia had a bad feeling, or, once she has joined, they must help her. | |
| static void | Imil_TalkToOldWoman (void) |
| Once the epidemic is cured, the old woman asks what happened at the lighthouse. | |
| static void | Imil_ReadOldWomanMind (void) |
| Mind Read on the old woman: about Mia's clan, her husband's exaggerating, or Mia running all over town. | |
| static void | Imil_TalkToOldManInBed (void) |
| After Mia's visit, speaking across the bed reaches the old man. | |
| static void | Imil_ReadCountingChildMind (void) |
| Mind Read on the counting child: admiration for Mia. | |
| static void | Imil_ReadApprenticeMind (void) |
| Mind Read on Mia's apprentice: she will do her best, or, once Mia has joined, she feels grown up. | |
| static void | Imil_OpenDoorAndExit (void) |
| Walking north into a door, everyone stops, the door opens and the leader walks in; door 6 has its own sound and a slower walk. | |
| static void | Imil_TalkToWeaponMerchant (void) |
| Across the counter, the leader facing north, the weapon shop opens once the town is cured; before, the sick merchant says the shop is closed. | |
| static void | Imil_TalkToArmorMerchant (void) |
| Across the counter, the leader facing north, the armor shop opens once the town is cured; before, the merchant is too sick for business. | |
| static void | Imil_TalkToItemMerchant (void) |
| The item shop: once the town is cured the mother sells again; before, her child minds the counter while she is sick, or talks of the lumberjack father. | |
| static void | Imil_TalkToInnkeeper (void) |
| Across the counter, the leader facing north, the inn opens; otherwise the innkeeper talks of the two groups of travellers, or of the party's leaving. | |
| static void | Imil_TalkToApprentice (void) |
| Across the counter, the leader facing north, Mia's apprentice offers the sanctum, the first time saying she can act as healer; otherwise she talks of Mia. | |
| s32 | Imil_Initialize (void) |
| The town gets its rising effects, map layers and snowman, and the first arrival walks in; each interior restores its people for the town's state. | |
| static UNUSED void | Imil_UpdateCountdownArc (struct FieldActor *actor) |
| Moves an unused effect around its stored origin until its timer expires. | |
| static UNUSED void | Imil_SwayAndSpark (struct FieldActor *actor) |
| Sways an unused actor and occasionally emits a rising spark. | |
| static void | Imil_OldManBobsAndSpeaks (void) |
| The old man bobs and speaks as the healing reaches him. | |
| static void | Imil_InitializeRisingEffect (struct FieldActor *work) |
| Resets a rising effect's motion, sprite priority, and initial scale. | |
| static void | Imil_UpdateRisingEffect (union FieldObject *object) |
| Moves and enlarges an ambient effect, then releases it when its timer expires. | |
| static void | Imil_StartRisingEffect (union FieldObject *object) |
| Initializes a newly created ambient effect for its one-second rise. | |
| static void | Imil_LeaveNorth (void) |
| Walking into the north path, the leader faces north and leaves the town. | |
| static void | Imil_TurnSlidingActor (union FieldObject *object) |
| While sliding, the leader turns toward the held direction. | |
Imil, in two maps: the town and its interiors.
The townspeople are sick until the epidemic is cured (flag 0x881); Mia heals the old man, and the cold villager waits for her.
Definition in file imil.c.
| #define IMIL_OPEN_SHOP ((s32 (*)())Engine_ShopOpen) |
Definition at line 81 of file imil.c.
Referenced by Imil_TalkToItemMerchant().
| enum ImilActor |
Imil's two maps share actor numbers; each is named on the map it is proved.
| enum ImilTownFlag |
|
static |
After hearing where Mia went, the party finds her at the old couple's house.
She heals the old man with Ply when the Mercury Lighthouse flashes; Mia runs out and the party follows her.
Definition at line 736 of file imil.c.
Referenced by Imil_Initialize(), and Imil_MeetMiaAtOldCouplesHouse().
|
static |
Definition at line 967 of file imil.c.
Referenced by Imil_MeetMiaAtOldCouplesHouse(), and Imil_MiaCastsPlyOnOldMan().
|
static |
Effects rise at five places in the town, staggered over each second.
Definition at line 1022 of file imil.c.
Referenced by Imil_Initialize(), and Imil_SpawnAmbientEffects().
|
static |
The leader walks on map layer 0 near the middle of town and on layer 1 elsewhere.
Definition at line 1058 of file imil.c.
Referenced by Imil_Initialize(), and Imil_UpdateMapLayerByLeaderPosition().
|
static |
Moved onto the chimney, the snowman stays there and blocks its cell.
Definition at line 1100 of file imil.c.
Referenced by Imil_Initialize(), and Imil_MoveSnowmanToChimney().
|
static |
Arriving for the first time, the leader walks into town.
Definition at line 1138 of file imil.c.
Referenced by Imil_Initialize(), and Imil_ShowFirstArrival().
|
static |
Once the town is cured, Mia says farewell to her two apprentices in the sanctum before leaving with the party.
Definition at line 1148 of file imil.c.
Referenced by Imil_Initialize(), and Imil_MiaSaysFarewellToApprentices().
|
static |
The leader slides along the ice until something stops him.
Definition at line 1340 of file imil.c.
Referenced by Imil_RunIceSlide(), and Imil_StartIceSlide().
|
static |
A sick person shivers: a quick squash, then a pause, longer for the old man.
Definition at line 97 of file imil.c.
Referenced by Imil_UpdateShiver().
| const struct SceneEntrance * Imil_GetEntrances | ( | void | ) |
Imil is two maps: the town and its interiors.
Definition at line 129 of file imil.c.
Referenced by Imil_GetEntrances().
| const struct SceneRegion * Imil_GetRegions | ( | void | ) |
Definition at line 136 of file imil.c.
Referenced by Imil_GetRegions().
| const u32 * Imil_GetExits | ( | void | ) |
Definition at line 138 of file imil.c.
Referenced by Imil_GetExits().
| const struct ScenePlacement * Imil_GetPlacements | ( | void | ) |
Once the epidemic is cured (flag 0x881), the townspeople are well again and the old man is up and about.
Definition at line 142 of file imil.c.
Referenced by Imil_GetPlacements().
|
static |
Stepping onto the ice starts a slide.
Definition at line 166 of file imil.c.
Referenced by Imil_StartIceSlide().
| const struct SceneEvent * Imil_GetEvents | ( | void | ) |
The town's or the interiors' conversations and Psynergy targets.
Definition at line 169 of file imil.c.
Referenced by Imil_GetEvents().
|
static |
The cold villager sneezes and shivers, waiting for Mia; once she travels with the party (flag 3), he says that even her healing can't help them all.
Definition at line 178 of file imil.c.
Referenced by Imil_TalkToColdVillager().
|
static |
Mind Read on the cold villager: Mia should be here by now, or, once she has joined the party, he can't understand why she left.
Definition at line 195 of file imil.c.
Referenced by Imil_ReadColdVillagerMind().
|
static |
A villager turns to the leader and asks whether he is new in Imil.
Definition at line 207 of file imil.c.
Referenced by Imil_GreetVisitor().
|
static |
The counting child stops, turns to the leader and goes back to counting.
Definition at line 217 of file imil.c.
Referenced by Imil_TalkToCountingChild().
|
static |
The old man moans for help until the old woman hurries to fetch Mia; after Mia's healing he feels much better, and once the town is cured he asks whether the party really thought he would die.
Definition at line 252 of file imil.c.
Referenced by Imil_TalkToOldMan(), and Imil_TalkToOldManInBed().
|
static |
Once the epidemic is cured, the weapon merchant asks whether the party wants weapons.
Definition at line 308 of file imil.c.
Referenced by Imil_AskAboutWeapons().
|
static |
Once the epidemic is cured, the restaurant owner offers the menu.
Definition at line 316 of file imil.c.
Referenced by Imil_AskAboutRestaurantMenu().
|
static |
Mia's second apprentice asks whether the party has visited the old couple, where Mia went; once Mia has joined, she says everyone counts on her.
Definition at line 325 of file imil.c.
Referenced by Imil_TalkToSecondApprentice().
|
static |
Mind Read on the second apprentice: Mia had a bad feeling, or, once she has joined, they must help her.
Definition at line 341 of file imil.c.
Referenced by Imil_ReadSecondApprenticeMind().
|
static |
Once the epidemic is cured, the old woman asks what happened at the lighthouse.
Definition at line 354 of file imil.c.
Referenced by Imil_TalkToOldWoman().
|
static |
Mind Read on the old woman: about Mia's clan, her husband's exaggerating, or Mia running all over town.
Definition at line 364 of file imil.c.
Referenced by Imil_ReadOldWomanMind().
|
static |
After Mia's visit, speaking across the bed reaches the old man.
Definition at line 378 of file imil.c.
Referenced by Imil_TalkToOldManInBed().
|
static |
Mind Read on the counting child: admiration for Mia.
Definition at line 381 of file imil.c.
Referenced by Imil_ReadCountingChildMind().
|
static |
Mind Read on Mia's apprentice: she will do her best, or, once Mia has joined, she feels grown up.
Definition at line 390 of file imil.c.
Referenced by Imil_ReadApprenticeMind().
|
static |
Walking north into a door, everyone stops, the door opens and the leader walks in; door 6 has its own sound and a slower walk.
Definition at line 403 of file imil.c.
Referenced by Imil_OpenDoorAndExit().
|
static |
Across the counter, the leader facing north, the weapon shop opens once the town is cured; before, the sick merchant says the shop is closed.
Definition at line 447 of file imil.c.
Referenced by Imil_TalkToWeaponMerchant().
|
static |
Across the counter, the leader facing north, the armor shop opens once the town is cured; before, the merchant is too sick for business.
Definition at line 482 of file imil.c.
Referenced by Imil_TalkToArmorMerchant().
|
static |
The item shop: once the town is cured the mother sells again; before, her child minds the counter while she is sick, or talks of the lumberjack father.
Definition at line 518 of file imil.c.
Referenced by Imil_TalkToItemMerchant().
|
static |
Across the counter, the leader facing north, the inn opens; otherwise the innkeeper talks of the two groups of travellers, or of the party's leaving.
Definition at line 555 of file imil.c.
Referenced by Imil_TalkToInnkeeper().
|
static |
Across the counter, the leader facing north, Mia's apprentice offers the sanctum, the first time saying she can act as healer; otherwise she talks of Mia.
Definition at line 579 of file imil.c.
Referenced by Imil_TalkToApprentice().
| s32 Imil_Initialize | ( | void | ) |
The town gets its rising effects, map layers and snowman, and the first arrival walks in; each interior restores its people for the town's state.
Definition at line 611 of file imil.c.
Referenced by Imil_Initialize().
|
static |
Moves an unused effect around its stored origin until its timer expires.
Definition at line 907 of file imil.c.
Referenced by Imil_UpdateCountdownArc().
|
static |
Sways an unused actor and occasionally emits a rising spark.
Definition at line 933 of file imil.c.
Referenced by Imil_SwayAndSpark().
|
static |
The old man bobs and speaks as the healing reaches him.
Definition at line 962 of file imil.c.
Referenced by Imil_MiaCastsPlyOnOldMan(), and Imil_OldManBobsAndSpeaks().
|
static |
Resets a rising effect's motion, sprite priority, and initial scale.
Definition at line 981 of file imil.c.
Referenced by Imil_InitializeRisingEffect(), and Imil_StartRisingEffect().
|
static |
Moves and enlarges an ambient effect, then releases it when its timer expires.
Definition at line 1000 of file imil.c.
Referenced by Imil_StartRisingEffect(), and Imil_UpdateRisingEffect().
|
inlinestatic |
Initializes a newly created ambient effect for its one-second rise.
Definition at line 1012 of file imil.c.
Referenced by Imil_SpawnAmbientEffects(), and Imil_StartRisingEffect().
|
static |
Walking into the north path, the leader faces north and leaves the town.
Definition at line 1125 of file imil.c.
Referenced by Imil_LeaveNorth().
|
static |
While sliding, the leader turns toward the held direction.
Definition at line 1304 of file imil.c.
Referenced by Imil_RunIceSlide(), and Imil_TurnSlidingActor().
| s32 gImil_ArcOrigin |
The position (x, y, z) the unused arc and sway effects move around.
Definition at line 1824 of file imil.c.
Referenced by Imil_SwayAndSpark(), and Imil_UpdateCountdownArc().
| s16 gImil_KeyHeadings[] |
| s16 gImil_SwayHeadings[] |
| s32 gImil_ColdVillagerScript[] |
| s32 gImil_ShiverScript[] |
Definition at line 1460 of file imil.c.
Referenced by Imil_Initialize(), and Imil_TalkToOldMan().
| s32 gImil_CaretakerHurryScript[] |
Definition at line 1465 of file imil.c.
Referenced by Imil_TalkToOldMan().
| s32 gImil_LeaderStepAsideScript[] |
| s32 gImil_BobScript[] |
Definition at line 1496 of file imil.c.
Referenced by Imil_MeetMiaAtOldCouplesHouse(), Imil_OldManBobsAndSpeaks(), Imil_TalkToArmorMerchant(), and Imil_TalkToWeaponMerchant().
| s32 gImil_SparkScript[] |
Definition at line 1509 of file imil.c.
Referenced by Imil_SwayAndSpark().
| s32 gImil_MiaCheckRoomScript[] |
| s32 gImil_MiaRunOutScript[] |
| s32 gImil_FaceTargetScript[] |
Definition at line 1545 of file imil.c.
Referenced by Imil_MeetMiaAtOldCouplesHouse().
| s32 gImil_FollowMiaOutScript[] |
| struct SceneEntrance gImil_TownEntrances[] |
Definition at line 1559 of file imil.c.
Referenced by Imil_GetEntrances().
| struct SceneEntrance gImil_InteriorEntrances[] |
Definition at line 1573 of file imil.c.
Referenced by Imil_GetEntrances().
| u32 gImil_Exits[] |
Definition at line 1586 of file imil.c.
Referenced by Imil_GetExits().
| struct ScenePlacement gImil_TownPlacements[] |
Definition at line 1609 of file imil.c.
Referenced by Imil_GetPlacements().
| struct ScenePlacement gImil_TownPlacementsCured[] |
Definition at line 1621 of file imil.c.
Referenced by Imil_GetPlacements().
| struct ScenePlacement gImil_InteriorPlacements[] |
Definition at line 1633 of file imil.c.
Referenced by Imil_GetPlacements().
| struct SceneEvent gImil_TownEvents[] |
Definition at line 1671 of file imil.c.
Referenced by Imil_GetEvents().
| struct SceneEvent gImil_InteriorEvents[] |
Definition at line 1700 of file imil.c.
Referenced by Imil_GetEvents().
| u16 gImil_DoorCellSteps5[] |
| u16 gImil_DoorCellSteps4[] |
| u16 gImil_DoorCellSteps1[] |
| u16 gImil_DoorCellSteps0[] |
| u16 gImil_DoorCellSteps2[] |
| u16 gImil_DoorCellSteps3[] |
| u16* gImil_DoorCellSteps[] |
| s16 gImil_DoorCellPoints[][2] |
Cell position (x, y) for each exit.
Definition at line 1807 of file imil.c.
Referenced by Imil_OpenDoorAndExit().
| u16 gImil_CellStepsA[] |
Definition at line 1812 of file imil.c.
Referenced by Imil_MeetMiaAtOldCouplesHouse(), and Imil_TalkToOldMan().
| u16 gImil_CellStepsB[] |
Definition at line 1818 of file imil.c.
Referenced by Imil_MeetMiaAtOldCouplesHouse(), and Imil_TalkToOldMan().