Jump to content

Recommended Posts

Posted

What I'm trying to do is get an actor, who is disabled, to enable once I activate a certain container, but there must be something wrong with my script.

 

This is my script:

 

Scriptname AAs2hTFCEnableDecimusScript extends ReferenceAlias  

{Enables Decimus after activating Margrit's Dresser}

ReferenceAlias Property Decimus  Auto  

Int Property StageToSet = 10 Auto  
{Tells script what stage to set to}

Event OnActivate(ObjectReference akActionRef) 

If GetOwningQuest().GetStageDone(10) == 0 && GetOwningQuest().GetStageDone(20) == 0
	Alias_Decimus.GetReference().Enable()
	GetOwningQuest().SetStage(StageToSet)
endif

EndEvent

 

And this is the error message when I try to save:

 

Compiling "AAs2hTFCEnableDecimusScript"...
c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\AAs2hTFCEnableDecimusScript.psc(13,2): variable Alias_Decimus is undefined
c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\AAs2hTFCEnableDecimusScript.psc(13,16): none is not a known user-defined type
c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\AAs2hTFCEnableDecimusScript.psc(13,31): none is not a known user-defined type
No output generated for AAs2hTFCEnableDecimusScript, compilation failed.

 

I actually have no idea what the bit about "none" means. I do understand that the bit about "Alias_Decimus" means that the script doesn't know what I'm referring to. But as you can see in the script I have the property set. The "Decimus" property has a value that points to my quest and the alias "Decimus" within that quest. The alias itself points to the unique actor that I placed in the world and has the "allow disabled" checked. I even tried making the alias use "specific reference" instead of "unique actor" and I gave my character a reference name but the error is exactly the same. I don't understand what I'm doing wrong here.

 

Any help is greatly appreciated.

Posted
you just made a simple typo :) all those 3 errors comes from one thing. You simply named your property "Decimus". BUT inside the script you have named it "Alias_Decimus". Remove the Alias_Decimus and it will work :)
  • Recently Browsing   0 members

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