amokrun1 Posted September 15, 2019 Share Posted September 15, 2019 I am trying to get a magazine I've made to unlock a crafting item(like Picket Fences, Hot Rodder, etc.) but my knowledge is limited to the GetItemCount condition. I'd like it to be a permanent option in the crafting menu. I've tried reverse engineering the vanilla mags and found them to be a part of a quest called Perk Quest. This is surely the way but my knowledge of quests and scripting is next to nothing. Is there any other method of achieving this? Or perhaps someone could simplify the whole perk quest idea for me? Link to comment Share on other sites More sharing options...
SKKmods Posted September 15, 2019 Share Posted September 15, 2019 Create a new global variable, lets call it myMagUnlockVariable default value zeroIn your constructable object add a condition GlobalVariable myMagUnlockVariable equals 1 Create a new message, lets call it myMagUnlockMessage, in the test put "You can now craft XYZ" Attach this script to your magazine (press properties button to assign/link properties) : Scriptname myMagUnlockScript extends ObjectReference Const GlobalVariable Property myMagUnlockVariable Auto Const Mandatory Message Property myMagUnlockMessage Auto Const Mandatory Event OnRead() myMagUnlockVariable.SetValue(1) myMagUnlockMessage.Show() EndEvent If that doesn't work for you, watch some Youtube. Link to comment Share on other sites More sharing options...
amokrun1 Posted September 15, 2019 Author Share Posted September 15, 2019 Ok thanks, I will try this. And I will be watching videos on scripting whether this works or not. Seems like everything I am stuck on requires scripting now, so I need to stop being lazy. Link to comment Share on other sites More sharing options...
payl0ad Posted September 15, 2019 Share Posted September 15, 2019 Magazines (BOOK records) can by themselves add a perk. The vanilla Magazines go through that quest to track other things. You can use the HasPerk condition )on the player) in your crafting recipe to check for the presence of your perk. Link to comment Share on other sites More sharing options...
amokrun1 Posted September 16, 2019 Author Share Posted September 16, 2019 Magazines (BOOK records) can by themselves add a perk. The vanilla Magazines go through that quest to track other things. You can use the HasPerk condition )on the player) in your crafting recipe to check for the presence of your perk.What I am trying to do is to get the Hot Rodder recipe to appear with actual component requirements, so that you can't just magically create a paint job out of thin air. I've done the same thing with other items no problem, but with this instance I get my recipe AND the vanilla one both appearing in the crafting menu. I'm just trying to find a way to disable the vanilla one from showing up. All my usual methods have failed, so I imagine my oversight lies in scripting somewhere(with the aforementioned perk quest, maybe). It never occurred to me to apply the HasPerk condition, though. I'll give it a whirl, thanks. Link to comment Share on other sites More sharing options...
Recommended Posts