iller Posted June 26, 2012 Share Posted June 26, 2012 (edited) Hi, To put it simply: I want to write a script that shows a message (Debug.MessageBox) after a certain quest is done.I'm not so good at scripting so I just added some scripts together. Here is the script as it looks at the moment: http://i1067.photobucket.com/albums/u429/illerification/Namnls.jpg "myStage" is the last stage of a quest, and that's the quest which the message should be shown after. I have tried to use some kind of "getquestdone" command but I can't find any that works. Thanks in advance for any help! Edited June 26, 2012 by iller Link to comment Share on other sites More sharing options...
Korodic Posted June 26, 2012 Share Posted June 26, 2012 http://www.creationkit.com/Category:Papyrus This is your bible for scripting. Debug.Notification("TEXT HERE") is good for figuring out if the script is flowing/going the way you thought it would. http://www.creationkit.com/Show_-_Message is better for showing messages to the player. Link to comment Share on other sites More sharing options...
steve40 Posted June 27, 2012 Share Posted June 27, 2012 (edited) I have tried to use some kind of "getquestdone" command but I can't find any that works. IsCompleted() If MyQuest.IsCompleted() Debug.MessageBox("My quest is completed.") EndIf This fragment is most likely to work if you put it on a new quest with a single stage, that is run when your main quest is completed (via the "Next quest" drop-list on the Quest Stages form). PS. why on earth are you calling OnInit from within the OnLoad block? That looks like trouble to me :tongue: Edited June 27, 2012 by steve40 Link to comment Share on other sites More sharing options...
gasti89 Posted June 27, 2012 Share Posted June 27, 2012 Why not just putting Debug.MessageBox("Whatever") In the last stage fragment (using the fragment window in the Stages Tab)? Link to comment Share on other sites More sharing options...
iller Posted June 27, 2012 Author Share Posted June 27, 2012 Thanks to all that replied! @steve40 your solution worked, so thank you very much :D I did as you said plus ticked the box that said "Start Up Stage", and it worked. PS. I don't really know what I did when I wrote that script. As I said, I was just adding some scripts together :P Link to comment Share on other sites More sharing options...
Recommended Posts