antstubell Posted August 12, 2012 Share Posted August 12, 2012 Hi all. I'm looking for a script that will begin a quest when a player enters an interior cell from the world. Is there a default script for this? Would I attach it to a trigger/xmarker?Thanks. Link to comment Share on other sites More sharing options...
JanusForbeare Posted August 12, 2012 Share Posted August 12, 2012 (edited) I assume it would be something like: Cell Property MyQuestStartCell auto Quest Property MyQuest auto Event OnCellLoad(MyQuestStartCell) MyQuest.Start() EndEvent You might also want to put a setstage function in there, depending on how your quest is built. Edited August 12, 2012 by JanusForbeare Link to comment Share on other sites More sharing options...
antstubell Posted August 12, 2012 Author Share Posted August 12, 2012 I assume it would be something like: Cell Property MyQuestStartCell auto Quest Property MyQuest auto Event OnCellLoad(MyQuestStartCell) MyQuest.Start() EndEvent You might also want to put a setstage function in there, depending on how your quest is built.What do I attach the script to? Link to comment Share on other sites More sharing options...
Starsickle Posted August 12, 2012 Share Posted August 12, 2012 You can also enter an interior cell and use a volume box to trigger the quest start - you then tell the reference to disable itself so it doesn't happen more than once. Link to comment Share on other sites More sharing options...
antstubell Posted August 12, 2012 Author Share Posted August 12, 2012 You can also enter an interior cell and use a volume box to trigger the quest start - you then tell the reference to disable itself so it doesn't happen more than once.Sounds interesting, something I've never done. Could you explain the process please? Link to comment Share on other sites More sharing options...
JanusForbeare Posted August 12, 2012 Share Posted August 12, 2012 Probably the quest itself, under the "scripts" tab. Note that the "OnCellLoad" event will run every time the player enters the cell, so you might want to use some "if" statements, to keep the quest from restarting. The revised script would look something like this: Cell Property MyQuestStartCell auto Quest Property MyQuest auto Event OnCellLoad(MyQuestStartCell) if (Myquest.GetStage) = 0 MyQuest.Start() Endif EndEvent Link to comment Share on other sites More sharing options...
antstubell Posted August 12, 2012 Author Share Posted August 12, 2012 Probably the quest itself, under the "scripts" tab. Note that the "OnCellLoad" event will run every time the player enters the cell, so you might want to use some "if" statements, to keep the quest from restarting. The revised script would look something like this: Cell Property MyQuestStartCell auto Quest Property MyQuest auto Event OnCellLoad(MyQuestStartCell) if (Myquest.GetStage) = 0 MyQuest.Start() Endif EndEvent Looks like you've already added the "if" clause. Link to comment Share on other sites More sharing options...
JanusForbeare Posted August 12, 2012 Share Posted August 12, 2012 Looks like you've already added the "if" clause. That's why I called it the "revised" script. :tongue: Link to comment Share on other sites More sharing options...
antstubell Posted August 13, 2012 Author Share Posted August 13, 2012 Looks like you've already added the "if" clause. That's why I called it the "revised" script. :tongue: Compiling failed. Here's the script I inputed. cell's name is skinnermineint01 and quest bane is SEW02 Cell Property SEW02skinnermineint01 autoQuest Property SEW02 auto Event OnCellLoad(SEW02skinnermineint01)if (SEW02.GetStage) = 0SEW02.Start()EndifEndEvent These are the errors Starting 1 compile threads for 1 files...Compiling "QF_SEW02_01013EBE"...d:\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\QF_SEW02_01013EBE.psc(18,5): no viable alternative at input 'Property'd:\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\QF_SEW02_01013EBE.psc(21,38): missing ID at ')'d:\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\QF_SEW02_01013EBE.psc(22,20): required (...)+ loop did not match anything at input '='d:\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\QF_SEW02_01013EBE.psc(27,0): missing EOF at 'EndFunction'No output generated for QF_SEW02_01013EBE, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on QF_SEW02_01013EBE Link to comment Share on other sites More sharing options...
DreamKingMods Posted August 13, 2012 Share Posted August 13, 2012 You likely don't need a script for this; if this is a new cell you've created, setup a location for it if you haven't already, and then use the "Change Location" Story Manager event to start your quest. Link to comment Share on other sites More sharing options...
Recommended Posts