dmtzcain Posted April 22, 2009 Share Posted April 22, 2009 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 == 1SetStage Myquest 35endif 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 == 1SetStage MyQuest 65endif;from here in the log entry as a result script I’ve usedStopQuest MyQuestStartQuest MyQuestSetStage 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 More sharing options...
Vagrant0 Posted April 22, 2009 Share Posted April 22, 2009 Allow repeated stages/topics doesn't work, it never did. One of the reasons why the courier quest was removed from the game. Link to comment Share on other sites More sharing options...
Ranokoa Posted April 22, 2009 Share Posted April 22, 2009 Im not a good scripter but try something like this scn ResurrectDistanceScript begin gamemode if GetDead == 1 && getdistance player > 246 resurrect endifend 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 More sharing options...
dmtzcain Posted April 22, 2009 Author Share Posted April 22, 2009 Thank you ranokoa, i'll try it this way. So Vagrant0, repeating a stage or returning to a specific stage can't be done? well, thanx anyway, i won't waste time trying that anymore. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.