Didact2805 Posted February 3, 2019 Share Posted February 3, 2019 Hi all, Just wondering if anyone knows how to script it where once the player sits, a scene commences? (Like Season Unending when player sits in the council chair) I've tried to dissect Season Unending's scripts to no avail. As long as I can get a SetStage working on sitting, all would be good! Wouldn't mind a hand with ensuring this happens at a specific stage to prevent it from re-activating. Would it include 'ifs' and 'elseifs'? Just want a cutscene to occur when the player takes their seat essentially -> SetStage 8; Stage 8 -> Scene8Starts Link to comment Share on other sites More sharing options...
TomTesoro Posted February 3, 2019 Share Posted February 3, 2019 (edited) Here's what I came up with for doing the same thing. It starts a scene when the player sits in the chair. Scene Property TBO11AzukAttackScene Auto Actor Property PlayerREF Auto Event OnActivate(ObjectReference akActivator) if(akActivator == PlayerREF && GetOwningQuest().GetStage() == 51) TBO11AzukAttackScene.Start() endif EndEvent I just created an alias for the chair and then attached this script to it. You can do something like this for your case: Quest Property WhateverQuest Auto Actor Property PlayerREF Auto Event OnActivate(ObjectReference akActivator) if(akActivator == PlayerREF && WhateverQuest.GetStage() == 7) WhateverQuest.SetCurrentStageID(8) endif EndEvent Edited February 3, 2019 by TomTesoro Link to comment Share on other sites More sharing options...
Didact2805 Posted February 4, 2019 Author Share Posted February 4, 2019 Hey there, thanks for your reply, I've implemented the script (the bottom one) and it compiles successfully, however, it doesn't seem to fire into Stage 77 which is what I want, I've tried creating a different 'object', attaching the script to the chair (via reference) and also as an alias. Will experiment a bit more but are there any other alternatives? I could try a 'global' but that seems excessive for what should be a simple script? Link to comment Share on other sites More sharing options...
Didact2805 Posted February 5, 2019 Author Share Posted February 5, 2019 (edited) ; Also properties have been filled appropriately, as well.. I attached the script to an activator and it works! But not the chair, for some reason Scriptname BBX_TestChairScript extends ObjectReference Actor Property PlayerREF Auto Quest Property BBX_TestQuestStage Auto Event OnActivate(ObjectReference akActivator) if(akActivator == PlayerREF && BBX_TestQuestStage.GetStage() == 76) BBX_TestQuestStage.SetStage(77) BBX_TestQuestStage.SetObjectiveDisplayed(77)Debug.MessageBox("You sat on the chair with a feeling of fufillment and success.")endif EndEvent Edited February 5, 2019 by ScannerLegend Link to comment Share on other sites More sharing options...
TomTesoro Posted February 10, 2019 Share Posted February 10, 2019 Here's the exact instance I used it. It works fine when I sit in that chair. Copy these settings exactly: Your script should be this: Scriptname BBX_TestChairScript extends ReferenceAlias Actor Property PlayerREF Auto Quest Property BBX_TestQuestStage Auto Event OnActivate(ObjectReference akActivator) if(akActivator == PlayerREF && BBX_TestQuestStage.GetStage() == 76) BBX_TestQuestStage.SetStage(77) BBX_TestQuestStage.SetObjectiveDisplayed(77) Debug.MessageBox("You sat on the chair with a feeling of fufillment and success.") endif EndEvent Link to comment Share on other sites More sharing options...
Recommended Posts