Jump to content

[LE] SetStage When Player Sits (Scene commences when player sits)


Didact2805

Recommended Posts

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

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 by TomTesoro
Link to comment
Share on other sites

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

; 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 by ScannerLegend
Link to comment
Share on other sites

Here's the exact instance I used it. It works fine when I sit in that chair. Copy these settings exactly:

 

jImx0vL.png

 

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...