peadar1987 Posted February 27, 2013 Share Posted February 27, 2013 Hi, I'm having a slight problem with the boxing mod I'm making, Mojave Heavyweight. Basically, I have tournaments, set up as quests, so you'll fight several opponents in a row. I want to make it so that if you don't win, the quest stage is set back to 5 (the stage where you first talk to the organiser to start the quest), so you can try again. However, this doesn't seem to work properly. I've tried two different methods: -The first where I use setstage 111BloatflyQuest 5 in the result script of a conversation with the trainer.-The second where I use it as a result script at the end of another quest stage I've also used setobjectivecompleted 111BloatflyQuest 10 0 for all of the other objectives, so they shouldn't be completed already. I set a debugging message to show every time the quest is set to stage 5, and it shows like it's supposed to. However, when I go to talk to the tournament organiser again, he goes back to the previous dialogue topic, which I've set so it should only appear when the quest stage is 100. I've checked, and I definitely have ticked the boxes to allow repeated quest stages and repeated dialogue topics Help! I'm at my wits' end with this one! Link to comment Share on other sites More sharing options...
rickerhk Posted February 28, 2013 Share Posted February 28, 2013 If you are using 'GetStage' in your dialog conditions, that could be the problem. Getstage always returns the highest stage number that was ever set with SetStage, and doesn't reset if you set a lower stage number. http://geck.bethsoft.com/index.php/GetStageIt may be simpler to use a quest variable or a 'GetObjectiveDisplayed' for your dialog conditions (if applicable). Link to comment Share on other sites More sharing options...
peadar1987 Posted February 28, 2013 Author Share Posted February 28, 2013 If you are using 'GetStage' in your dialog conditions, that could be the problem. Getstage always returns the highest stage number that was ever set with SetStage, and doesn't reset if you set a lower stage number. http://geck.bethsoft.com/index.php/GetStageIt may be simpler to use a quest variable or a 'GetObjectiveDisplayed' for your dialog conditions (if applicable). That's almost definitely it, I'll give it a go later on, thanks a million for your help! Link to comment Share on other sites More sharing options...
peadar1987 Posted February 28, 2013 Author Share Posted February 28, 2013 Yup, all fixed and working perfectly! Thanks so much, I wish I'd asked earlier! Link to comment Share on other sites More sharing options...
Recommended Posts