Jump to content

enable command not recognized


morrowind1979

Recommended Posts

I am having problems trying to make a disabled door become enabled when my quest reaches stage 20. I attach the following as a script fragment on quest stage 20:

 

I have defined my door as "Hgate" property

 

Hgate.enable()

 

When I try to compile i get the error: enable is not a function or does not exist. Any thoughts???

Link to comment
Share on other sites

Wait, where have you defined this property? Can you post the fragment?

 

 

Character, Quest, PinheadQst. Quest Stages(20): Papyrus fragment:

 

fragment is just Hgate.enable()

 

I have the Hgate door initially disabled and want it to become enabled at quest stage 20.

Edited by morrowind1979
Link to comment
Share on other sites

Well that's the thing right - those quest fragments are part of a script which extends quest hidden (and not objectreference - where enable belongs). In addition, it can't possibly know what door you're talking about.

 

In the cell containing the door place a hidden marker somewhere (out of sight or whatever), and attach a script extending objectreference which (a) defines an objectreference property hgate auto pointing to the door and a quest property pinheadquest auto pointing to your quest, and (b) add an oncellattach() event then in that build in a check for quest stage if (pinheadquest.getstage() == 20) and have that enable the door.

Edited by acidzebra
Link to comment
Share on other sites

Well that's the thing right - those quest fragments are part of a script which extends quest hidden (and not objectreference - where enable belongs). In addition, it can't possibly know what door you're talking about.

 

In the cell containing the door place a hidden marker somewhere (out of sight or whatever), and attach a script extending objectreference which (a) defines an objectreference property hgate auto pointing to the door and a quest property pinheadquest auto pointing to your quest, and (b) add an oncellattach() event then in that build in a check for quest stage if (pinheadquest.getstage() == 20) and have that enable the door.

 

I now get this error: C:\Program Files\The Elder Scrolls V Skyrim\Data\Scripts\Source\temp\HgateScript.psc(7,12): no viable alternative at input '('

No output generated for HgateScript, compilation failed.

 

 

oncellattach()

if (pinheadquest.getstage() == 20)

Hgate.enable()

EndIf

EndEvent

Edited by morrowind1979
Link to comment
Share on other sites

Scriptname HgateScript extends ObjectReference  
quest property pinheadquest auto 
objectreference property hgate auto 

event oncellattach()
if (pinheadquest.getstage() == 20)
Hgate.enable()
EndIf
EndEvent 

 

compiles for me - did you forget to add "event"?

 

By the way, I'm not entirely sure I did the getstage() thing right, see

http://www.creationk...e_%28Papyrus%29

...but give it a try anyway - but if it doesn't work you'll know where to look.

Edited by acidzebra
Link to comment
Share on other sites

Scriptname HgateScript extends ObjectReference  
quest property pinheadquest auto 
objectreference property hgate auto 

event oncellattach()
if (pinheadquest.getstage() == 20)
Hgate.enable()
EndIf
EndEvent 

 

compiles for me - did you forget to add "event"?

 

By the way, I'm not entirely sure I did the getstage() thing right, see

http://www.creationk...e_%28Papyrus%29

...but give it a try anyway - but if it doesn't work you'll know where to look.

 

 

How did you create the marker???

Link to comment
Share on other sites

  • Recently Browsing   0 members

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