Kitpup Posted October 27, 2010 Share Posted October 27, 2010 I've looked into it and cannot find what I've done wrong. scriptname KLFAddTopic short once begin gamemode if once == 0player.addtopic ShadowCrestset once to 1endif end Saw this thread but it did not help. Link to comment Share on other sites More sharing options...
Kitpup Posted October 28, 2010 Author Share Posted October 28, 2010 Still need help! Link to comment Share on other sites More sharing options...
NellSpeed Posted October 29, 2010 Share Posted October 29, 2010 Leave off the "player"? Is it giving you an error message? From the Wiki: AddTopic adds a topic to the Player's list of known topics. Only topics in this list can appear in an NPC's topic list during dialogue. Topics can also be added using the AddTopic list in the dialogue editor window. SyntaxAddTopic TopicID Example:AddTopic HiddenCave Edited because: I hit "post" too soon. Link to comment Share on other sites More sharing options...
Kitpup Posted October 29, 2010 Author Share Posted October 29, 2010 It doesn't give an error message, it just refuses to save. Took the 'player' off and it's still not saving. Link to comment Share on other sites More sharing options...
David Brasher Posted October 29, 2010 Share Posted October 29, 2010 Have you already created the topic "ShadowCrest?" It will not work if you plan to create that topic but haven't made it yet and have not saved it. Link to comment Share on other sites More sharing options...
Kitpup Posted October 30, 2010 Author Share Posted October 30, 2010 Yep, I used a topic I have. I found out the reason I couldn't get it to show in conversation was for a lack of script, so I wrote the script as seen in the thread I linked in the first post, and it refused to save and would not say why. Simply NOT saving when I tell it to. Link to comment Share on other sites More sharing options...
Kendo 2 Posted October 30, 2010 Share Posted October 30, 2010 I don't think the category function AddTopic will work on the player's toon. Since you already have the script try this. Create a new NPC to provide the topic or use a non-quest related vanilla NPC. There are plenty of them in the IC with one line of dialogue and that's it. If you choose to add a new NPC drag and drop them to the game world and make them a persistent reference and give them a reference ID. Create a Quest with two Stages (5 and 10) and edit your script: scn KLFAddTopic short doonce begin gamemode >if doonce == 0>>setstage KLFAddTopicQuest 5>>>the NPCs RefID here.addtopic ShadowCrest>>>set doonce to 1>endif end ;the > indicate Tab strokes in the Script Window. Don't type them. Now on the topics tab in the Quest Window right click on the lefthand side where the Topics list is and select New. Find your topic in the dropdown and double click it. That should add the topic to the quest. Now you can type the player's dialogue and the NPC's response. Now in the Script Result End Box type: SetStage KLFAddTopicQuest 10StopQuest KLFAddTopicQuest That will remove the topic from the NPC once the quest is completed. Once that's done go to the bottom where the Conditions are and right click and select New. You will be adding two conditions. The conditions you want to add are GetIsID (the NPCs name) == 1 and GetStage KLFAddTopicQuest <= 10. That will make the topic restricted to that NPC and available to that NPC for the span of the first two stages of the quest. I might not have explained this clearly but I know it works because I've done it hundreds of times with all of the voiced mods I've made. And be sure to add your script to the quest and also be sure your Script type is Quest and not Object or anything else. I hope this helps and good luck. :thumbsup: Link to comment Share on other sites More sharing options...
Recommended Posts