ocloki Posted February 24, 2022 Share Posted February 24, 2022 Ok so I am new to this so bear with me. I created a custom Daedric Sword and added the effects similar to the Mace of Molag Bal and made it craftable at a forge. All that works fine. What I can't figure out is how to trigger NPC's near me to recognize the weapon when it is equipped like how they do with Molag's mace. I want to just test out using the responses they give when you have Mehrunes Razor installed, but after going through all the Razor and molag's mace id's I can't find out where it is triggered from. Do I have to create a custom weapon owner faction and add anyone who is neutral to the player and within a certain distance get triggered to initiate the response or is there a simpler way? I see the Razor has a RazorOwnerFaction which I am assuming that is required, but what confused me is I don't see one for Molag's mace. Hopefully that made sense. Link to comment Share on other sites More sharing options...
Sovrath Posted February 25, 2022 Share Posted February 25, 2022 Ok so I am new to this so bear with me. I created a custom Daedric Sword and added the effects similar to the Mace of Molag Bal and made it craftable at a forge. All that works fine. What I can't figure out is how to trigger NPC's near me to recognize the weapon when it is equipped like how they do with Molag's mace. I want to just test out using the responses they give when you have Mehrunes Razor installed, but after going through all the Razor and molag's mace id's I can't find out where it is triggered from. Do I have to create a custom weapon owner faction and add anyone who is neutral to the player and within a certain distance get triggered to initiate the response or is there a simpler way? I see the Razor has a RazorOwnerFaction which I am assuming that is required, but what confused me is I don't see one for Molag's mace. Hopefully that made sense. hmmm This would require you to add dialogue to many npc's. Or at least a certain amount who share a specific voice type. At least that's my understanding on how to do this. Which means they aren't going to have "sound" or you they will have a different voice. Unless there is a generic "whoa, that's a cool weapon" quip. You could also just add a custom npc and not worry aobut the others. So, shooting from the hip here, you could ... on the Quest that handles dialogue, go to the "Hello" and make the response you want. Then in the conditions you could make sure the npc only says the appropriate thing using "getitemcount" for your sword and have it = 1 and have it run on player. There could be other ways to do this but that's what I would try first. If you look at "dialogueguardgeneral" quest there are about 50 separate things they can say under "hello" and the condidtions that manage them. Though, looking at one of the Guard's lines, one of them is "that's one big hammer" and it's run on "target" the condition is "getequipped" and the parameter is volundrung. Well, hopefully you get the point. I hope that was at least a little help or at least will put you on the right track. Link to comment Share on other sites More sharing options...
ocloki Posted February 25, 2022 Author Share Posted February 25, 2022 Thanks for the response. Yes I figured it would involve custom dialogue for random comments. I am just learning how this stuff works. Mainly I was wondering if I could use the already existing dialogue that NPC's use when they see you have Mehrunes Razor equipped. You know the 'Who did you have to kill to get that blade?' At least until I figure out how exactly it all works. I was mainly just trying to find what part of the razor's script triggers the dialogue. I didn't think to look in the actual dialogue lines like you said. I was thinking it would have been in the razor script itself. I will check out the dialogueguardgeneral quest responses. I was trying to avoid changing the stock game script, but it's mainly just to learn. I mainly wanted to know if it was possible to use the dialogue run on 'target' if custom weapon is equipped in the custom weapon file only without effecting stock script. If that makes sense. Thanks for your help. Link to comment Share on other sites More sharing options...
Sovrath Posted February 25, 2022 Share Posted February 25, 2022 Thanks for the response. Yes I figured it would involve custom dialogue for random comments. I am just learning how this stuff works. Mainly I was wondering if I could use the already existing dialogue that NPC's use when they see you have Mehrunes Razor equipped. You know the 'Who did you have to kill to get that blade?' At least until I figure out how exactly it all works. I was mainly just trying to find what part of the razor's script triggers the dialogue. I didn't think to look in the actual dialogue lines like you said. I was thinking it would have been in the razor script itself. I will check out the dialogueguardgeneral quest responses. I was trying to avoid changing the stock game script, but it's mainly just to learn. I mainly wanted to know if it was possible to use the dialogue run on 'target' if custom weapon is equipped in the custom weapon file only without effecting stock script. If that makes sense. Thanks for your help. Glad I could be of some help. If you find a generic line such as the hammer line I mentioned, there is no reason why you could't use that. Heck, you can easily just add the EXACT same stuff and just point to your custom weapon and try it out in game. Good luck! Link to comment Share on other sites More sharing options...
ocloki Posted February 25, 2022 Author Share Posted February 25, 2022 Yes thanks to your advice, I figured it out without affecting the stock dialogue. I duplicated a couple of the guard lines they used for the razor and Skull of corruption and pointed it to the sword and it works great now. :thumbsup: Link to comment Share on other sites More sharing options...
Sovrath Posted February 28, 2022 Share Posted February 28, 2022 A Yes thanks to your advice, I figured it out without affecting the stock dialogue. I duplicated a couple of the guard lines they used for the razor and Skull of corruption and pointed it to the sword and it works great now. :thumbsup: Awesome, glad to hear! Link to comment Share on other sites More sharing options...
Recommended Posts