Jump to content

A Script to begin quest by entering a cell


antstubell

Recommended Posts

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 by JanusForbeare
Link to comment
Share on other sites

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

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

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

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 auto

Quest Property SEW02 auto

 

Event OnCellLoad(SEW02skinnermineint01)

if (SEW02.GetStage) = 0

SEW02.Start()

Endif

EndEvent

 

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

  • Recently Browsing   0 members

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