Jump to content

[solved] Scripting help needed: Scene won't trigger


Recommended Posts

Posted

After years of not working on mods/ playing Skyrim SE, I am playing Skyrim again and decided to clean up the mods I do have out there. However, my scripting skills are basically... dead/ comatose. The simpler things I can still adjust etc. But I am running into a problem with triggering a scene.

The quest and dialog leading up to the scene work fine, but when I get the participants into the same room and the scene is supposed to trigger, nothing happens. They just stand there doing their idles/ usual dialog.

I am sure I am missing something minor, but I for the life of me can't figure out what. So any help in solving this would be much appreciated!

 

As for the scripting:

This is the fragment in the quest that is supposed to trigger the scene:

Spoiler

;BEGIN FRAGMENT Fragment_10
Function Fragment_10()
;BEGIN CODE
; Stage 50
Alias_Harrald.GetActorReference().EvaluatePackage()
Alias_Saerlund.GetActorReference().EvaluatePackage()
SetObjectiveCompleted(40)
; Start scene...
CVTalos5Scene1.Start()
;END CODE
EndFunction
;END FRAGMENT

 

The code of the actual scene it this:

Spoiler

;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
;NEXT FRAGMENT INDEX 1
Scriptname CV__SF_CVTalos5Scene1_0A292927 Extends Scene Hidden

;BEGIN FRAGMENT Fragment_0
Function Fragment_0()
;BEGIN CODE
; CVTalos5 scene 1 end
GetOwningQuest().SetStage(60)
;END CODE
EndFunction
;END FRAGMENT

;END FRAGMENT CODE - Do not edit anything between this and the begin comment

Scene Property CVTalos5Scene1  Auto 

Said scene fragment is only the end part. I didn't put in a begin part cos I assume that the quest fragment_10 starts the scene.


 

Spoiler

When I look in the papyrus log, the error I get is:

[09/19/2021 - 07:54:27PM] ERROR: Cannot call Start() on a None object, aborting function call
stack:
    [CVTalos5 (732835E5)].CV_Talos5.Fragment_10() - "cv_talos5.psc" Line ?

 

I am hoping someone can refresh my memory (yeah, good luck with that) and point me into the right direction.

 

Thanks!

Posted

You need to fill in the Property of the Scene, either double click the Script in the Scripts Page or click on Properties below a Fragment Text Block

Posted
20 minutes ago, Vachnic said:
  Hide contents

When I look in the papyrus log, the error I get is:

[09/19/2021 - 07:54:27PM] ERROR: Cannot call Start() on a None object, aborting function call
stack:
    [CVTalos5 (732835E5)].CV_Talos5.Fragment_10() - "cv_talos5.psc" Line ?

 

I am hoping someone can refresh my memory (yeah, good luck with that) and point me into the right direction.

 

Thanks!

You may have forgotten to set the value for the scene in the script properties.

Posted
20 minutes ago, Scrab said:

You need to fill in the Property of the Scene, either double click the Script in the Scripts Page or click on Properties below a Fragment Text Block

 

I checked and it is filled. That was the first thing I checked.

This part of the script is correct right? Scriptname CV__SF_CVTalos5Scene1_0A292927 Extends Scene Hidden . it should extend Scene?

Posted
6 minutes ago, Vachnic said:

it should extend Scene?

Yes, thats correct, afaik that script is never called because the Scene is never started

 

Did you start a new game after filling the property?

If the game was started with that property being none, then the "none" value is baked into the save and will stay unchanged

Posted
7 minutes ago, Scrab said:

Yes, thats correct, afaik that script is never called because the Scene is never started

 

Did you start a new game after filling the property?

If the game was started with that property being none, then the "none" value is baked into the save and will stay unchanged

 

well... crap. No I didn't. That could very well explain it and I didn't think of that. I will try that. Thanks!

Posted
On 9/19/2021 at 9:08 PM, Scrab said:

Yes, thats correct, afaik that script is never called because the Scene is never started

 

Did you start a new game after filling the property?

If the game was started with that property being none, then the "none" value is baked into the save and will stay unchanged

 

*sigh* I finally got to where the offending scene is in the mod and... that was it. The Scene started normally and the quest progressed. Thank you so much for your tip, Scrab!

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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