Plot 0 name <> % An item will be recovered. This item will lead to the next % clue; the PC can discover the next clue himself by examining % the item. element1 element2 element3 % E4 is the persona to control this plot. % As long as E3 can be picked up some time, or the code % contained under ".getkey" below is otherwise executed % at some time, what E4 does exactly doesn't matter. Element4 % V1 = Initialization Counter % V2 = Clue number for this plot % V3 = Have picked up item % At startup, initialize the item. start GoCheckClue GoDelete % As soon as the item is gotten, this plot starts the clue % countdown and loads the next relay. You might want to move % this so that the countdown starts only if the item is given % to E4 or some other condition... .getkey % When the item is used, it reveals the next clue. .usekey % At cleanup just get rid of this plot. cleanup sub Persona 4 rumor <> % V1 = Mission Accepted Counter greeting % Upon winning the mission, you may want to destroy the item if % the NPC takes it. Otherwise the NPC can just let the PC keep it. GoCheckWin GoCheckMission GoDelete % Right now the PC has only one chance to get the mission- % be reasonably well liked. This can be altered so the PC % can get the mission if his traits are right, if he's been % given the mission by N1, or whatever else. GoCheckFirst GoNoChance GoAddComOps result1 % If the PC doesn't want this mission, the entire story will % be blocked. No point continuing if the player doesn't want... result2 % For the purposes of this template, I'll use the ITEM DUNGEON scene. result3 GoStartCombat .scene result4 % 01 : PC has retrieved the item. Msg1 <> % 02 : PC has come back after getting ready Msg2 <> % 03 : The item somehow got destroyed... Msg3 % 04 : PC will be offered the mission here. Msg4 <> % 05 : Mission will be implied. Msg5 <> % 06 : Memo Msg6 <\ELEMENT 4 in \SCENE EScene 4 asked you to retrieve an item.> % 07 : Mission description. Msg7 <> % 08 : The PC refused the mission. Msg8 <> % 09 : Combat is starting. Msg9 <> % 10 : The PC needs some time to get ready. Msg10 <> % 01 : PC will accept the mission. Prompt1 <> % 02 : PC doesn't want the mission. Prompt2 <> % 03 : Start the mission now. Prompt3 <> % 04 : PC needs time to prepare. Prompt4 end inv treasure 1000 name % instead of investigation you can use Science(29), Mysticism(34), % CodeBreaking(32) or Survival(14) % V1 = Location of next encounter % V2 = Clue number for this item % V3 = Investigation Indicator % V4 = PC Investigation skill when last tried use GoNoSolve Clue37 GoDid Msg1 Msg2 end