morrowind1979 Posted December 2, 2012 Share Posted December 2, 2012 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 More sharing options...
acidzebra Posted December 2, 2012 Share Posted December 2, 2012 (edited) Wait, where have you defined this property? Can you post the fragment? Edited December 2, 2012 by acidzebra Link to comment Share on other sites More sharing options...
morrowind1979 Posted December 2, 2012 Author Share Posted December 2, 2012 (edited) 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 December 2, 2012 by morrowind1979 Link to comment Share on other sites More sharing options...
acidzebra Posted December 2, 2012 Share Posted December 2, 2012 (edited) 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 December 2, 2012 by acidzebra Link to comment Share on other sites More sharing options...
morrowind1979 Posted December 2, 2012 Author Share Posted December 2, 2012 (edited) 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()EndIfEndEvent Edited December 2, 2012 by morrowind1979 Link to comment Share on other sites More sharing options...
acidzebra Posted December 2, 2012 Share Posted December 2, 2012 (edited) 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, seehttp://www.creationk...e_%28Papyrus%29...but give it a try anyway - but if it doesn't work you'll know where to look. Edited December 2, 2012 by acidzebra Link to comment Share on other sites More sharing options...
morrowind1979 Posted December 2, 2012 Author Share Posted December 2, 2012 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, seehttp://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 More sharing options...
acidzebra Posted December 2, 2012 Share Posted December 2, 2012 Just drag an xmarker into the scene somewhere? Link to comment Share on other sites More sharing options...
morrowind1979 Posted December 2, 2012 Author Share Posted December 2, 2012 Just drag an xmarker into the scene somewhere? I was using a trigger box I dont have any x markers in my dungeon how do I create one? Link to comment Share on other sites More sharing options...
acidzebra Posted December 2, 2012 Share Posted December 2, 2012 Just filter in the object window for xmarker and drag it into the same cell which contains the gate. Link to comment Share on other sites More sharing options...
Recommended Posts