Jump to content

how could I “reset” or “restart” my quest with script


dmtzcain

Recommended Posts

Please, help me with a piece of script.

I’m trying to repeat my quest from stage 60 to stage 35 if a character dies.

I’ve tried this one on the quest script:

 

If NPC1.GetDead == 1

SetStage Myquest 35

endif

 

 

But doesn’t work.

Stage 35 is about talking to an NPC which gives a test where our NPC1 might die. If he does, the PC must repeat the same quest stages and steps till NPC1 lives. I would like it this way because I plan that NPC1 dies very often (30 or 40 times) and I don’t want to write 30 or 40 individual scripts for every time he dies.

 

I have also tried:

 

If NPC1.GetDead == 1

SetStage MyQuest 65

endif

;from here in the log entry as a result script I’ve used

StopQuest MyQuest

StartQuest MyQuest

SetStage MyQuest 35

 

Nothing.

On the quest data I have “Allow repeated conversation Data” and “Allow repeated stages” checked.

 

Any help? I ran out of ideas…

Many thanks =)

Link to comment
Share on other sites

Im not a good scripter but try something like this

 

scn ResurrectDistanceScript

 

begin gamemode

if GetDead == 1 && getdistance player > 246

resurrect

endif

end

 

 

 

 

But replace some parts so it resurrects in a specific cell, on a specific marker. And just have it scripted also that says if he dies that you must restart. Dont script it so that upon death a quest stage is advanced at all, just delay any advancement until success and put him from starting position.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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