Nekropalypse Posted August 19, 2015 Share Posted August 19, 2015 Hi Nexus! First time posting!Okay so I'm currently just building a little Primm home among the rest of the small rancher-style Primm houses, but I don't just want the key to be sitting outside. I want to have it scripted so that you receive the key upon completing the quest to bring law back to Primm. However for the LIFE of me I cannot figure out how to make it happen. Anyone with mild script experience could probably do this but I just can't.With the script in hand I can finish doing all the tedious GECK-work of completing the house and adding little accoutrements. Nothing overpowered, just a simple lore-friendly house. Thanks Nexus members!-Nekro-http://www.nexusmods.com/games/users/2114141/? Link to comment Share on other sites More sharing options...
Jokerine Posted August 19, 2015 Share Posted August 19, 2015 Hm... I think a way would be doable, yeah. To avoid messing with the quest itself you could make it so the player collects the key from an activator. You could start by making the key, a new activator that looks like the vanilla metal box or some other container (the mailbox Clutter\Mailbox\MailboxDestroyed01.NIF would be cool) and a new message. Make the message say something like "the mailbox is empty", untick "auto-display" and "message box", and make the display time 3 seconds. Place your mailbox activator, give it a Reference ID and make it a persistent reference as well. Now, for the script... scn MyMailboxScript ;change the name after scn to whatever you'd like Begin OnActivate ;when the activator is activated... If IsActionRef Player ;...by the player... if GetQuestCompleted nVPrimmDeputyConv ;and if My Kind of Town has been completed... Player.Additem MyKey 1 ;give key - change MyKey to your key... MyMailboxREF.SetDestroyed 1 ;make mailbox static - change MyMailboxREF to the reference ID of your mailbox... else ;if quest has not been completed... ShowMessage MyMessageID ;display "mailbox is empty" message - change MYMessageID to the ID of the message you made earlier endif endif END With this, the mailbox will give the player the key once that quest (My KInd of Town) has been completed. I tend to have trouble with GetQuestCompleted sometimes but perhaps it will work out for you. It's 1 AM not so my mind is a bit fuzzy and I'm writing this off the top of my head. Gonna go to bed now. Let me know how it goes. Link to comment Share on other sites More sharing options...
devinpatterson Posted August 20, 2015 Share Posted August 20, 2015 Hi Nexus! First time posting! I want to have it scripted so that you receive the key upon completing the quest to bring law back to Primm. However for the LIFE of me I cannot figure out how to make it happen. Anyone with mild script experience could probably do this but I just can't. So you'd just add it to the result script of teh stage that completes the quest. player.additem myKey 1 don't use any flags so the player knows it's been added. If I remeber right there were a few peeps that could do the job (prim slimm and another peep or two) so you'd add it to any result script that has the complete quest box ticked. Quest idea is on the wiki vault if you don't already have it (or you can probably find it by searching for primm in teh quests). Link to comment Share on other sites More sharing options...
Nekropalypse Posted August 20, 2015 Author Share Posted August 20, 2015 Jokerine,I created the new key, new activator, and message exactly as you said. But the script won't save :/ Boo @ the GECK. I even dug out the destroyed mailbox nif to make it look classy. I'm probably doing something wrong. devinpatterson,It's looking like that might be my only option. I really didn't wanna mess with the quest, for obvious reasons. But it seems to be the simplest option haha Link to comment Share on other sites More sharing options...
Jokerine Posted August 20, 2015 Share Posted August 20, 2015 You can send me your esp and I can take a look at it tomorrow. Link to comment Share on other sites More sharing options...
Nekropalypse Posted August 23, 2015 Author Share Posted August 23, 2015 Well even though I was reluctant to mess with the quest scripting, it worked like a charm. I'm gonna upload it soon. Link to comment Share on other sites More sharing options...
Nekropalypse Posted August 23, 2015 Author Share Posted August 23, 2015 I included you two in the thanks because you both rockhttp://www.nexusmods.com/newvegas/mods/60297/? Link to comment Share on other sites More sharing options...
Recommended Posts