Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- waypoint ShedDoor
- {
- 19, 24, 0
- }
- waypoint InsideTutBedroomDoor
- {
- 43, 22, 1
- }
- /*******************************************************************************************
- ** Triggers added to start of game to launch tutorial.
- ********************************************************************************************/
- trigger GameStart
- {
- call CreateTendWifeQuest,
- call CreateBarricadeQuest,
- call OpeningConversation
- }
- /*******************************************************************************************
- ** Barricade quest... called after you've given Kate pills and bandages.
- ********************************************************************************************/
- script CreateBarricadeQuest
- {
- Quest.CreateQuest("BarricadeQuest", "Secure the Safehouse" );
- Quest.RunScriptOnComplete("SleepBeforeSupplies");
- Quest.AddGotoLocationTask("tutorial2A", "Go to the shed", ShedDoor);
- Quest.Unlock();
- Quest.UnlockNextTasksOnComplete(3);
- Quest.AddFindItemTask( "tutorial2B", "Find a hammer", Hammer, 1 );
- Quest.UnlockTaskOnComplete( "tutorial2D" );
- Quest.AddFindItemTask( "tutorial2E", "Find some wood", Plank, 1 );
- Quest.AddFindItemTask( "tutorial2F", "Find some nails", Nails, 1 );
- Quest.AddEquipItemTask( "tutorial2D", "Equip hammer", Hammer );
- Quest.UnlockNextTasksOnComplete(1);
- Quest.AddHardCodedTask("tutorial2G", "Barricade the safehouse doors and windows", "barricadeTutorial");
- Quest.UnlockNextTasksOnComplete(1);
- Quest.AddGotoLocationTask( "tutorial2ZZQ", "Return to Kate", InsideTutBedroomDoor );
- }
- /*******************************************************************************************
- ** Opening quest. Make bandages, find pills. Give them to Kate.
- ********************************************************************************************/
- script CreateTendWifeQuest
- {
- Quest.CreateQuest("TendWifeQuest", "Tend to Kate's Broken Leg");
- Quest.RunScriptOnComplete("BobBarricade");
- Quest.AddFindItemTask("tutorial1B", "Find something to make bandanges", Sheet, 1);
- Quest.Unlock();
- Quest.UnlockNextTasksOnComplete(1);
- Quest.AddFindItemTask("tutorial1C", "Craft some bandages", RippedSheets, 8);
- Quest.UnlockNextTasksOnComplete(1);
- Quest.AddUseItemOnTask("tutorial1E", "Bandage Kate's leg", RippedSheets, Kate);
- Quest.AddFindItemTask("tutorial1Z", "Check the adjoining bathroom for painkillers", "Pills", 1 );
- Quest.Unlock();
- Quest.AddUseItemOnTask("tutorial1ZZ", "Give Kate a pill", Pills, Kate);
- Quest.Unlock();
- Quest.RunScriptOnComplete("TakeThesePills");
- }
- /*******************************************************************************************
- ** Script where Kate says to sleep before hunting for supplies.
- ********************************************************************************************/
- script SleepBeforeSupplies
- {
- Player.Say("Okay, we're safe.");
- Kate.Say("My hero!");
- if(IsNight())
- {
- Kate.Say("It's pitch black out there, hon.");
- }
- else
- {
- Kate.Say("It's going to be dark soon, hon.");
- }
- Kate.Say("You won't see the neighbors till they've taken chunks from you.");
- Kate.Say("We'll sleep hungry.");
- Hook.RegisterOneTime("OnPlayerWake", "WokeUpInTutorialBed");
- Player.Sleep(9.0);
- /*
- Script follows on from opening2.txt with "WokeUpInTutorialBed" next time the player wakes up.
- */
- }
- /*******************************************************************************************
- ** Script called after giving pills / bandages to Kate.
- ********************************************************************************************/
- script BobBarricade
- {
- /* Needed to allow for time to say TakeThesePills if pills quest is done last.*/
- if(Player.IsSpeaking())
- {
- Wait(3.0);
- }
- Kate.Say("I'm sorry I fucked up hon.");
- Kate.Say("I screwed everything.");
- Quest.UnlockQuest("BarricadeQuest");
- }
- /*******************************************************************************************
- ** Short dialogue once given Kate pills for player feedback if they do it first.
- *******************************************************************************************/
- script TakeThesePills
- {
- Player.Say("Here, take one of these...");
- }
- /*******************************************************************************************
- ** Opening script
- *******************************************************************************************/
- script OpeningConversation
- {
- LockHud(true);
- Wait(2.0);
- Kate.Say("I'm sorry. I'm sorry.");
- Player.Say("It's fine. We can deal with this. Just...");
- LockHud(false);
- Quest.UnlockQuest("TendWifeQuest");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement