local q = "Cryo01_ShowTutorial" CortexShock.QuestsV[q] = {} function CortexShock:Cryo01_ShowTutorial_Init(name) if self.GS[name.."_Complete"] ~= "True" then if CF_EnableTutorial then self.QuestsV[name]["ChamberTut"] = SceneMan.Scene:GetArea("ChamberTutorial") self.QuestsV[name]["ShopTut"] = SceneMan.Scene:GetArea("ShopTutorial") self.QuestsV[name]["ConsoleTut"] = SceneMan.Scene:GetArea("ConsoleTutorial") end end end function CortexShock:Cryo01_ShowTutorial_Update(name) if self.GS[name.."_Complete"] ~= "True" then if CF_EnableTutorial then for i = 1, #self.PlayerActors do if MovableMan:IsActor(self.PlayerActors[i]) then if self.QuestsV[name]["ChamberTut"]:IsInside(self.PlayerActors[i].Pos) then if self.GS[name.."_Message1Displayed"] ~= "True" then self.GS[name.."_Message1Displayed"] = "True"; self:ShowMessage("Emergency defrostring may have caused some minor brain damage and memory loss meaning I'll have to guide you through the standard checklist AE-Z18-B of the local facilities built to assist you.\n This is a Revival Chamber. These chambers are designed to deal with unfortunate accidents.\n All of your memory is constantly written to your Personality Matrix. In case of unexpected lethal injury place your matrix into the nearest chamber to reconstruct your body and upload the most recent copy of your mind into it.\n \n By the way, I've noticed the comm signal of a tradestar shop in the top corridor above your cryo chamber. You should make your way up there, you're going to need weapons to make it out alive.", "HAL9000", "CharHAL9000", self.PlayerActors[i]) end end if self.QuestsV[name]["ShopTut"]:IsInside(self.PlayerActors[i].Pos) then if self.GS[name.."_Message2Displayed"] ~= "True" then self.GS[name.."_Message2Displayed"] = "True"; self:ShowMessage("This is the tradestar shop. Originally built to fulfill the trading requirements of the civilised races, the system has been adapted to suit the present's more hostile environment. Now you can purchase a variety of tools and firearms for the purpose of self defense or cold-blooded murder. The only accepted currency is gold credits, but your account is still operational.\nTo avoid lethal accidents the local security system has managed to limit access to some dangerous items. You can still unlock them if you find enough data with encryption keys.", "HAL9000", "CharHAL9000", self.PlayerActors[i]) end end if self.QuestsV[name]["ConsoleTut"]:IsInside(self.PlayerActors[i].Pos) then if self.GS[name.."_Message3Displayed"] ~= "True" then self.GS[name.."_Message3Displayed"] = "True"; self:ShowMessage("Due to general network failure access these consoles are of no immediate use to you. However by interfacing with one you may be able to hack the console. This may in turn lead to financial and security data being compromised in your favor. This means by successfully hacking consoles like this one, you can unlock and purchase more items from the shop. \nKeep in mind that consoles have inbuilt security systems so hacking will not always be succesful. However failure is a very small setback as you can always attempt to hack the console again until you are succesful.", "HAL9000", "CharHAL9000", self.PlayerActors[i]) end end end end local count = 0; if self.GS[name.."_Message1Displayed"] == "True" then count = count + 1; end if self.GS[name.."_Message2Displayed"] == "True" then count = count + 1; end if self.GS[name.."_Message3Displayed"] == "True" then count = count + 1; end if count == 3 then -- Quest Complete self.GS[name.."_Complete"] = "True" self:PostLastQuestMessage("Tutorial complete.", "Standard checklist AE-Z18-B submitted to . Please use the shopping network to buy items.\n\nIn case of fatalities please take personality matrices to the revival chamber for restoration.") end end end end function CortexShock:Cryo01_ShowTutorial_Exit(name) --print ("Cryo01_ShowTutorial Exit") end function CortexShock:Cryo01_ShowTutorial_GetTextStatus(name) --print ("Cryo01_ShowTutorial GetTextStatus") if self.GS[name.."_Complete"] ~= "True" then if CF_EnableTutorial then local str = "Tutorial: " local count = 0; if self.GS[name.."_Message1Displayed"] == "True" then count = count + 1; end if self.GS[name.."_Message2Displayed"] == "True" then count = count + 1; end if self.GS[name.."_Message3Displayed"] == "True" then count = count + 1; end -- Show progress only of local quest is not complete if count < 3 then str = str..tostring(count).."/3"; return str; end end end end function CortexShock:Cryo01_ShowTutorial_GetDirections(name) --print ("Cryo01_ShowTutorial GetDirections") end function CortexShock:Cryo01_ShowTutorial_GetDescription(name) --print ("Cryo01_ShowTutorial GetDescription") return "Visit places of interest at this location to get additional information." end CortexShock.QuestsInit[q] = CortexShock.Cryo01_ShowTutorial_Init; CortexShock.QuestsUpdate[q] = CortexShock.Cryo01_ShowTutorial_Update; CortexShock.QuestsExit[q] = CortexShock.Cryo01_ShowTutorial_Exit; CortexShock.QuestsGetTextStatus[q] = CortexShock.Cryo01_ShowTutorial_GetTextStatus; CortexShock.QuestsGetDirections[q] = CortexShock.Cryo01_ShowTutorial_GetDirections; CortexShock.QuestsGetDescription[q] = CortexShock.Cryo01_ShowTutorial_GetDescription;