%% %% *CS_Duel Content %% %% %% The PC is about to duel somebody as part of the core story. %% %% The parent plot sets the plot status to this layer's ID when ready. %% This component should move the opponent from its current location to the %% contest location at update, and then move the opponent back to its %% original location at the end of the battle. %% %% Param1: The Challenger %% Param2: The Challenger's home scene, for the purpose of this component %% Param3: The outdoor scene where the duel will take place %% %% NEEDED SCRIPTS: To deal with the ending, the parent plot must define two %% scripts: %% .%id%_%plotid%_GoWin %% .%id%_%plotid%_GoLose %% These scripts should set story memos. %% %id% is the ID of the duel layer; so, if it was generated as subplot 1, %% the calling plot would use %id1%. Content name desc requires <*CS_Duel 3:SPACE> Size 5 % E1 is the challenger % E2 is the challenger's home scene % E3 is the outdoor scene where the duel will take place % E4 is the duel encounter Element4 Place4 <%e3%> % P%id%01 = Initialization Counter update sub Persona 1 greeting *.%id%_GoChallenge <*ArenaChallenge .%id%_GoThemeInfo> *.%id%_GoThemeInfo <*THEME_EXPO&Enemy NA> *.%id%_GoNotInPlay <*WaitingForDuel %3%> MetaScene 4 2 % L1 = Encounter Over Counter % L2 = Initialization Counter % L4 = Identity of enemy NPC MapWidth 30 MapHeight 30 AsteroidMap RockyTiles % Suffocation effect... Vacuum SpaceBackdrop special Start nu1 nu2 Msg1 <%name1% found a large asteroid to fight on> Msg2 <%name1% returns to %name2%.> Msg4 Msg5 sub team 1 SetEnemy 2 ParaX 5 ParaY 5 team 2 SetEnemy 1 ParaX 25 ParaY 25 end end inv STC ENCOUNTER-DUEL name <%name1%'s Mecha> update end Content name desc requires <*CS_Duel -1:PDASS ~1:THIEF ~1:EVIL_ -1:GOOD_ ~1:CRIHN ~+Gfa -!Ne ~!Hi ~!Ex> Size 8 % E1 is the challenger % E2 is the challenger's home scene % E3 is the outdoor scene where the duel will take place % E4 is the duel encounter Element4 Place4 <%e3%> % P%id%01 = Initialization Counter update sub Persona 1 rumor%id% <%name1% plays by Martian rules.> greeting *.%id%_GoNotInPlay <*WaitingForDuel %3%> .%id%_GoChallenge result%id%01 result%id%02 *result%id%03 <*THEME_EXPO&Enemy NA> Msg%id%01 Msg%id%01_1 Msg%id%01_2 Msg%id%02 Msg%id%02_1 Msg%id%03 Msg%id%03_1 Msg%id%03_2 Prompt%id%01 CPrompt%id%01 Prompt%id%02 Prompt%id%02_1 Prompt%id%02_2 Prompt%id%03 <[Continue]> MetaScene 4 2 % L1 = Encounter Over Counter % L2 = Initialization Counter % L4 = Identity of enemy NPC MapWidth 30 MapHeight 30 special Start nu1 nu2 Msg2 <%name1% returns to %name2%.> Msg4 Msg5 sub team 1 SetEnemy 2 ParaX 5 ParaY 5 team 2 SetEnemy 1 Deploy ParaX 25 ParaY 25 end end inv STC ENCOUNTER-DUEL name <%name1%'s Mecha> update end Content name desc requires <*CS_Duel> Size 5 % E1 is the challenger % E2 is the challenger's home scene % E3 is the outdoor scene where the duel will take place % E4 is the duel encounter Element4 Place4 <%e3%> % P%id%01 = Initialization Counter update sub Persona 1 greeting *.%id%_GoChallenge <*ArenaChallenge .%id%_GoThemeInfo> *.%id%_GoThemeInfo <*THEME_EXPO&Enemy NA> *.%id%_GoNotInPlay <*WaitingForDuel %3%> MetaScene 4 2 % L1 = Encounter Over Counter % L2 = Initialization Counter % L4 = Identity of enemy NPC MapWidth 30 MapHeight 30 special Start nu1 nu2 Msg2 <%name1% returns to %name2%.> Msg4 Msg5 sub team 1 SetEnemy 2 ParaX 5 ParaY 5 team 2 SetEnemy 1 ParaX 25 ParaY 25 end end inv STC ENCOUNTER-DUEL name <%name1%'s Mecha> update end %% %% *:CS_TournamentMatch Content %% %% There's apparently a tournament going on. The PC will be able to challenge a NPC %% to a duel, which will be handled by the above subplot type. %% %% NEEDED SCRIPTS: To deal with the ending, the parent plot must define two %% scripts: %% .%id%_%plotid%_GoWin %% .%id%_%plotid%_GoLose %% %% PARAM1: The NPC to be challenged %% PARAM2: The home scene for this NPC Content name desc requires <*:CS_TournamentMatch> % E1 is the NPC to be challenged % E2 is the home scene for the NPC % E3 is a location for the duel. Element3 % As long as we're still at the first phase, the NPC's death will end the plot. start % Resolution Scripts .%id1%_%plotid%_GoWin .%id1%_%plotid%_GoLose % SubPlot1 is the duel itself SubPlot1 <*CS_Duel&NoDerailment 1 2 3> sub Persona 1 greeting *GoFirstTime <*PCChallengeNPC GoMakeChallenge GoWussOut> GoMakeChallenge *GoAcceptChallenge <*IAcceptYourChallenge %3%> *GoWussOut <*GodImBored> Msg%id%01 end