Unionall: Difference between revisions

Forgot EVENT_N04_01, whoops
m Changed checkpoints to the name given in SE2(waypoint)
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Stub}}
unionall.ssb is a script in the game, containing the game's coroutines. Some of the most important coroutines dictate the order of gameplay and cutscenes, as well as handling the transition from cutscenes to overworld, and vice versa. There are also plenty of other coroutines that are called frequently within scripts for simple purposes.


unionall.ssb is a script in the game, containing the game's coroutines. Some of the most important coroutines dictate the order of gameplay and cutscenes, as well as handling the transition from cutscenes to overworld, and vice versa. There are also plenty of other coroutines that are called frequently within scripts for simple purposes.
You can call those coroutines with [[List of Opcodes#0x38 - CallCommon|CallCommon]], [[List of Opcodes#0x88 - JumpCommon|JumpCommon]], [[List of Opcodes#0x73 - ExecuteCommon|ExecuteCommon]] and [[List of Opcodes#0x12e - supervision_ExecuteCommon|supervision_ExecuteCommon]] opcodes.
You can call those coroutines with [[List of Opcodes#0x38 - CallCommon|CallCommon]], [[List of Opcodes#0x88 - JumpCommon|JumpCommon]], [[List of Opcodes#0x73 - ExecuteCommon|ExecuteCommon]] and [[List of Opcodes#0x12e - supervision_ExecuteCommon|supervision_ExecuteCommon]] opcodes.


Line 33: Line 32:


===coro TALK_ADVENTURE===
===coro TALK_ADVENTURE===
Called when talking to a team member in a dungeon's checkpoint. Displays one of the possible Ground Wait dialogues for the team member's personality group.
Called when talking to a team member in a dungeon's waypoint. Displays one of the possible Ground Wait dialogues for the team member's personality group.


===coro TALK_ATTENDANT===
===coro TALK_ATTENDANT===
Line 833: Line 832:


===coro EVENT_M23_05===
===coro EVENT_M23_05===
Hero, partner and Chatot finished Brine Cave and went to the checkpoint area. Suddenly, Team Skull collides with partner which makes him drop Relic Fragment again. After taking it, they run away. Chatot goes after them.
Hero, partner and Chatot finished Brine Cave and went to the waypoint area. Suddenly, Team Skull collides with partner which makes him drop Relic Fragment again. After taking it, they run away. Chatot goes after them.


===coro EVENT_M23_06===
===coro EVENT_M23_06===
Line 884: Line 883:


===coro EVENT_M25_08===
===coro EVENT_M25_08===
Hero and partner arrives to the checkpoint. Another earthquake happened, this time much worse...
Hero and partner arrives to the waypoint. Another earthquake happened, this time much worse...


===coro EVENT_M25_09 ===
===coro EVENT_M25_09 ===
Line 1,442: Line 1,441:


===coro EVENT_N01_15===
===coro EVENT_N01_15===
Bidoof and Snover get through Star Cave into the checkpoint area.
Bidoof and Snover get through Star Cave into the waypoint area.


===coro EVENT_N01_16===
===coro EVENT_N01_16===
Line 1,625: Line 1,624:


===coro EVENT_N04_21===
===coro EVENT_N04_21===
Called if the player fainted in the bossfight with three Haunters.
Called if the player fainted in the boss fight with three Haunters.


===coro EVENT_N04_22===
===coro EVENT_N04_22===
Called if the player fainted in the bossfight with three Haunters, then faints in Spring Cave Depths.
Called if the player fainted in the boss fight with three Haunters, then faints in Spring Cave Depths.


===coro EVENT_N04_23===
===coro EVENT_N04_23===
Called if the player fainted in the bossfight with three Haunters, then returns to the town, then faints before getting to Spring Cave Depths.
Called if the player fainted in the boss fight with three Haunters, then returns to the town, then faints before getting to Spring Cave Depths.


===coro EVENT_N04_24===
===coro EVENT_N04_24===
Sunflora heads out to Spring Cave. Called if the player fainted in the bossfight with three Haunters, then returns to the town.
Sunflora heads out to Spring Cave. Called if the player fainted in the boss fight with three Haunters, then returns to the town.


===coro EVENT_N04_25===
===coro EVENT_N04_25===
Line 1,643: Line 1,642:


===coro EVENT_N06_01_02===
===coro EVENT_N06_01_02===
Graveler arrives to the end of the cave with a chest in it. He tries to get it without activating a trap. Suddenly, team Charm drops their statue disguise and steals the treasure right ubder his nose. That activated a trap and the cave starts to collapse. Then, player gets introduced to Team Charm. Later, Team Charm go on the outing to Southern Jungle.


===coro EVENT_N06_03===
===coro EVENT_N06_03===
"Would you like to go on?" message.


===coro EVENT_N06_04===
===coro EVENT_N06_04===
Called if the player faints in Southern Jungle.


===coro EVENT_N06_05_07===
===coro EVENT_N06_05_07===
After clearing Southern Jungle, team Charm hears a strange sound. Turns out, it is Wigglytuff that fainted from starvation. Medicham gives him a Perfect Apple. Wigglytuff gets up and thank them. He tells team Charm that he's an explorer whose food ws stolen by someone. Team Charm go on, and get to the entrance of Boulder Quarry. Everyone around it is trying to figure out how to get to the treasure. Suddenly, team AWD makes an appearence, scaring everyone except team Charm off. Arbok and Drapion tries to start a fight with them, but Weavile stops them. Sentret asks team Charm to punish team AWD.


===coro EVENT_N06_08===
===coro EVENT_N06_08===
"Would you like to go on?" message.


===coro EVENT_N06_09===
===coro EVENT_N06_09===
Called if the player faints in Boulder Quarry.


===coro EVENT_N06_10===
===coro EVENT_N06_10===
Team Charm gets to the Deep Boulder Quarry waypoint.


===coro EVENT_N06_11===
===coro EVENT_N06_11===
"Would you like to go on?" message.


===coro EVENT_N06_12===
=== coro EVENT_N06_12 ===
Called if the player faints in Deep Boulder Quarry.


===coro EVENT_N06_13===
===coro EVENT_N06_13===
Team Charm gets to the clearing. Suddenly, they get attacked by Aggron and Lairon.


===coro EVENT_N06_14===
=== coro EVENT_N06_14 ===
Called if the player faints in the boss fight against Lairon and Aggron.


===coro EVENT_N06_15===
===coro EVENT_N06_15===
Called if the player faints in Deep Boulder Quarry after fainting in the boss fight against Lairon and Aggron.


===coro EVENT_N06_16===
===coro EVENT_N06_16===
Called if the player faints in Boulder Quarry after fainting in the boss fight against Lairon and Aggron.


===coro EVENT_N06_17===
===coro EVENT_N06_17===
Team Charm get attacked by Aggron and Lairon. Called if the player fainted in this fight at least once.


===coro EVENT_N06_18_19===
===coro EVENT_N06_18_19===
Aggron and Lairon get defeated and they run away. Team Charm goes on and get to the fork of the road.


===coro EVENT_N06_20===
===coro EVENT_N06_20===
"Enter the entrance on the right?" message.


===coro EVENT_N06_21===
===coro EVENT_N06_21===
"Enter the entrance on the left?" message.


===coro EVENT_N06_22===
===coro EVENT_N06_22===
Called if the player faints in cave paths.


===coro EVENT_N06_23===
===coro EVENT_N06_23===
Called if the player clears the Right Cave Path first.


===coro EVENT_N06_24===
===coro EVENT_N06_24===
Called if the player clears the Right Cave Path at least twice without visiting Left Cave Path.


===coro EVENT_N06_25===
===coro EVENT_N06_25===
Called if the player clears the Left Cave Path first.


===coro EVENT_N06_26===
===coro EVENT_N06_26===
Called if the player clears the Left Cave Path at least twice without visiting Right Cave Path.


===coro EVENT_N06_27===
===coro EVENT_N06_27===
Team Charms gets through both entrances but nothing happened. Suddenly, Wigglytuff arrives. Team Charm tries to ask him what to do but didn't get any intelligible answer. Then, he drops his apple and runs for it into the wall, giving team Charm a clue of where to go.


===coro EVENT_N06_28===
===coro EVENT_N06_28===
"Continue through the wall?" message. After it, Team Charm gets inside and see a limestone cavern.


===coro EVENT_N06_29===
===coro EVENT_N06_29===
Called if the player fainted in Limestone Cavern.


===coro EVENT_N06_30===
===coro EVENT_N06_30===
"Continue through the wall?" message. Called if the player already was in Limestone Cavern before.


===coro EVENT_N06_31===
===coro EVENT_N06_31===
Team Charm gets to the Deep Limestone Cavern waypoint.


===coro EVENT_N06_32===
===coro EVENT_N06_32===
"Would you like to go on?" message.


===coro EVENT_N06_33===
===coro EVENT_N06_33===
Called if the player faints in Deep Limestone Cavern.


===coro EVENT_N06_34===
===coro EVENT_N06_34===
Team Charm gets to the the end and see a chest. They open it up to see nothing. Suddenly, team AWD appears, sees empty chest, decides that team Charm already got the treasure inside and attacks them.


===coro EVENT_N06_35===
===coro EVENT_N06_35===
Called if the player faints in the bossfight against Team AWD. Team Charm escapes to the waypoint. Team AWD looks after the, thinking they have a treasure, while Lopunny thinks of investigating the mystery of an empty chest.


===coro EVENT_N06_36===
===coro EVENT_N06_36===
Called if the player faints in Deep Limestone Cavern after fainting in the bossfight against Team AWD.


===coro EVENT_N06_37===
===coro EVENT_N06_37===
Called if the player faints in Limestone Cavern after fainting in the bossfight against Team AWD.


===coro EVENT_N06_38===
===coro EVENT_N06_38===
Team AWD attacks team Charm. Called if the player fainted in this fight at least once.


===coro EVENT_N06_39===
=== coro EVENT_N06_39 ===
Team AWD is defeated, 2but they don't give up. They're about to attack again, but suddenly, Wigglytuff arrives and says that this fight was planned by a boss that lives here. Said boss is a Ditto, disguised as a chest, as well as Sentret they saw at the entrance of Boulder Quarry. Turns out, this Ditto is guarding a Time Gear. Everyone go outside empty handed. Then, team Charm decides to explore with Wigglytuff, but first, they give him a challenge - keep up with them.


===coro EVENT_N08_01_02===
===coro EVENT_N08_01_02===
Dusknoir and Grovyle return back to the future, but it's still as dark as it was - history was not changed yet. Grovyle gets found by Sableye and decides that Dusknoir's fail will be reported to Dialga. When Dusknoir wakes up and asks Grovyle what he's goinng to do, Grovyle says that he's going to buy hero and partner some time.


===coro EVENT_N08_03===
===coro EVENT_N08_03===
Called if the player fainted in Barren Valley.


===coro EVENT_N08_04===
===coro EVENT_N08_04===
"Would you like to go on?" message.


===coro EVENT_N08_05===
===coro EVENT_N08_05===
Grovyle arrives to Deep Barren Valley waypoint.


===coro EVENT_N08_06===
===coro EVENT_N08_06===
"Would you like to go on?" message.


===coro EVENT_N08_07===
===coro EVENT_N08_07===
Called if the player fainted in Deep Barren Valley.


===coro EVENT_N08_08===
===coro EVENT_N08_08===
Grovyle gets to the Barren Valley clearing and meets Dusknoir. Suddenly, they both get attacked by Sableyes.


===coro EVENT_N08_09===
===coro EVENT_N08_09===
Called if the player fainted in the fight against Sableyes, then faints in Barren Valley.


===coro EVENT_N08_10===
===coro EVENT_N08_10===
Grovyle arrives back to battle against Sableyes. Called if the player fainted in this fight at least once.


===coro EVENT_N08_11===
===coro EVENT_N08_11===
Sableyes run away. Dusknoir wonders why did they attack him in the first place, then suddenly asks Grovyle to call a temporary truce. Grovyle, after some hesitation, agrees. Later, they arrive to Dark Wasteland entrance.


===coro EVENT_N08_12===
===coro EVENT_N08_12===
"Would you like to go on?" message.


===coro EVENT_N08_13===
===coro EVENT_N08_13===
Called if the player fainted in Dark Wasteland.


===coro EVENT_N08_14===
===coro EVENT_N08_14===
After finishing Dark Wasteland, Grovyle and Dusknoir catch a Sableye and interrogate him. Turns out, the reason of the attack on Dusknoir is because it was ordered by Dialga's new henchman, Dusknoir's replacement. Sableye did not want to eliminate Dusknoir, but henchman said that it is a Dialga's order. However, Sableye completely refuses to tell who that henchman is. Dusknoir and Grovyle decide to side for a bit longer and head to Temporal Tower.


===coro EVENT_N08_15===
===coro EVENT_N08_15===
"Would you like to go on?" message.


===coro EVENT_N08_16===
===coro EVENT_N08_16===
Called if the player fainted in Temporal Tower.


===coro EVENT_N08_17===
===coro EVENT_N08_17===
Grovyle and Dusknoir arrives to Temporal Spire waypoint. Dusknoit wonders about whether Grovyle will fight Dialga or not. Grovyle tells Dusknoit to not interact with Dialga.


===coro EVENT_N08_18===
===coro EVENT_N08_18===
"Would you like to go on?" message.


===coro EVENT_N08_19===
===coro EVENT_N08_19===
Called if the player fainted in Temporal Spire.


===coro EVENT_N08_20===
===coro EVENT_N08_20===
Dusknoir and Grovyle arrive to the pinnacle, but no one is there. It was expected that Dialga would be there, saving up energy to send a new henchman to the past. But then, Dusknoir remembers that there's another way to get to the past - the Passage of Time. Dusknoir and Grovyly head out to Dusk Forest to save Celebi.


===coro EVENT_N08_21===
===coro EVENT_N08_21===
"Would you like to go on?" message.


===coro EVENT_N08_22===
===coro EVENT_N08_22===
Called if the player fainted in Dusk Forest.


===coro EVENT_N08_23===
===coro EVENT_N08_23===
Grovyle and Dusknoir arrive to the place where Grovyle met Celebi. Suddenly, they get ambushed by Sableyes.


===coro EVENT_N08_24===
===coro EVENT_N08_24===
Called if the player fainted in the fight with Sableyes. Dusknoir and Grovyle run away to the Dusk Forest entrance. Grovyle thinks, that since there's a trap, then Celebi is not there anymore.


===coro EVENT_N08_25===
===coro EVENT_N08_25===
Grovyle and Dusknoir get attacked by Sableyes. Called if the player fainted in that fight at least once.


===coro EVENT_N08_26===
===coro EVENT_N08_26===
Dusknoir and Grovyle defeat Sableyes and interrogate one of them. Turns out, Dialga ran of to Frozen Island to pursuit Celebi. The only way to get there is by going through Spacial Cliffs, which would let them get to the place where Porygon lives.


===coro EVENT_N08_27===
===coro EVENT_N08_27===
"Would you like to go on?" message.


===coro EVENT_N08_28===
===coro EVENT_N08_28===
Called if the player fainted in Spacial Cliffs.


===coro EVENT_N08_29===
===coro EVENT_N08_29===
Dusknoir and Grovyle arrive to Porygon. It teleports them to Frozen Island. Grovyle tries to ask local Snorunts if they saw anything but doesn't get a meaningful answer.


===coro EVENT_N08_30===
===coro EVENT_N08_30===
"Would you like to go on?" message.


===coro EVENT_N09_01===
===coro EVENT_N09_01===
Called if the player fainted in Dark Ice Mountain.


===coro EVENT_N09_02===
===coro EVENT_N09_02===
Grovyle and Dusknoir arrives to Dark Ice Mountain Peak waypoint.


===coro EVENT_N09_03===
===coro EVENT_N09_03===
"Would you like to go on?" message.


===coro EVENT_N09_04===
===coro EVENT_N09_04===
Called if the player fainted in Dark Ice Mountain Peak.


===coro EVENT_N09_05===
===coro EVENT_N09_05===
Grovyle and Dusknoir arrive to Dark Ice Mountain Pinnacle. Suddenly, they get ambushed by Glalie that lost himself due to influence of darkness.


===coro EVENT_N09_06===
===coro EVENT_N09_06===
Called if the player fainted in the fight against Glalie.


===coro EVENT_N09_07===
===coro EVENT_N09_07===
Called if the player fainted in the fight against Glalie, then faints in Dark Ice Mountain.


===coro EVENT_N09_08===
===coro EVENT_N09_08===
Grovyle and Dusknoir encounter Glalie. Called if the player fainted in that fight at least once.


===coro EVENT_N09_09===
===coro EVENT_N09_09===
Glalie is defeated, but Dusknoir is injured by the chunk of ice. The decided to hide in the crack in the ridge. There, Dusknoir tells that the reason he's helping is because he needs Grovyle's strength to take down the henchman.Then, Dusknoir asks why Grovyle fight so hard to change history. Grovyle responds that the important thing is not how long one live, but what one accomplish with the life. He says that his spirit is a part of someone, so if he would to disappear, everything he did will go on, which would mean that he's still living. Dusknoir and Grovyle head out forward and saw Snorunt that tells that a Sableye and Celebi went through to Icicle Forest.


===coro EVENT_N09_10===
===coro EVENT_N09_10===
"Would you like to go on?" message.


===coro EVENT_N09_11===
===coro EVENT_N09_11===
Called if the player fainted in Icicle Forest.


===coro EVENT_N09_12===
===coro EVENT_N09_12===
Grovyle and Dusknoir made it through the Icicle Forest. Then, suddenly, they see someone laying unconscious in the distance. It is Celebi, laying next to Spiritomb. However, it says that it did nothing to Celebi. However, Celebi wake up and Spiritomb gave itself away. Grovyle runs to help Celebi but then, four rays of energy hit him from the pillows. Turns out, the entire adventure was planned by Dusknoir, to lure him to Icicle Forest. If one hit by electrical discharge of pillars, their spirit will be melted away. Dusknoir wanted to melt his spirit, use his body, return to the past and take down hero and partner. All that was planned ever since they get into the future. But somehow, Grovyle lures Dusknoir to his side and Dusknoir saves Grovyle in the last second. Suddenly, Dialga appears. Celebi decides to fight it, but suddenly, aurora show up. History start to change. Dialga ran away to the pinnacle of Vast Ice Mountain. A Passage of Time is located there, and if it'll get hit now, the consequences are unknown. , Grovyle, Celebi and Dusknoir decide to move as a group of three.


===coro EVENT_N09_13===
===coro EVENT_N09_13===
"Would you like to go on?" message.


===coro EVENT_N09_14===
===coro EVENT_N09_14===
Called if the player fainted in Vast Ice Mountain.


===coro EVENT_N09_15===
===coro EVENT_N09_15===
The trio arrives to Vast Ice Mountain Peak waypoint.


===coro EVENT_N09_16===
===coro EVENT_N09_16===
"Would you like to go on?" message.


===coro EVENT_N09_17===
===coro EVENT_N09_17===
Called if the player fainted in Vast Ice Mountain Peak or the fight against Dialga.


===coro EVENT_N09_18===
===coro EVENT_N09_18===
The trio get to the Vast Ice Mountain Pinnacle and see Dialga. It's in pain, its heart is likely getting hurt by the planet's movement. Dialga is staying close to a passage of time, which is dangerous to damage. Suddenly, everyone's bodies start to emanate light. History is changing. The only thing left to finish what the trio started is to defeat Dialga.


===coro EVENT_N09_19===
===coro EVENT_N09_19===
Called if the player fainted in the fight against Dialga.


===coro EVENT_N09_20===
===coro EVENT_N09_20===
Called if the player fainted in the fight against Dialga, then fainted in Vast Ice Mountain.


===coro EVENT_N09_21===
===coro EVENT_N09_21===
Trio approaches Dialga. Called if the player fainted in this fight at least once.


===coro EVENT_N09_22===
===coro EVENT_N09_22===
Dialga is defeated. Time is starting moving faster and faster and everyone start to disappear, starting from Dialga. When Dusknoir started to disappear, he asks Grovyle if his life shine, Grovyle repond that it did. He disappears, having no regrets of what he did with Grovyle and Celebi. Grovyle gets close to Celebi, who never ever saw a sunrise. They both started to disappear, looking at the view of rising sun. Sableyes start to disappear too. However, later, they all appear like nothing happened, with the future still changed. Dialga is there too, but darkness no longer controls it. With telepathy, it show the trio how the world looks like right now. Grovyle asks if Dialga stopped them from disappearing, but Dialga says, that it doesn't have a power for that. It was a being higher than Dialga. Grovyle wonders if the hero and partner are still alive and what do they think about. The scene ends with a message being sent to wind and light to hero and partner, thanking them and telling that no one disappeared. Everyone are still alive.


===coro EVENT_TG01===
===coro EVENT_TG01===