Jump to content

how to add a weapon to perk list


rookthebunwolf

Recommended Posts

can somone tell me how to add weapons to perks? such as this shotgun im working to the shotgun surgeon? im very very new at the geck, sorry

 

The weapon needs to be added to the correct FormID list referenced by the perk. In this case, that's ShotgunSurgeonWeaponsList [FLST:0016578A].

Personally I'd use a script to add it to the list instead of hardcoding it into the list (since hardcoding creates conflicts with all other mods doing the same thing).

Something like...

scn NewShotgunQuestScript

Begin GameMode
if (GetGameRestarted || GetGameLoaded)
       	AddFormToFormlist ShotgunSurgeonWeaponsList YourNewShotgunReference
       	;or if you are using NVSE as a requirement for the mod
       	;ListAddForm ShotgunSurgeonWeaponsList YourNewShotgunReference
endif
End

Add that to a quest set Start Game Enabled so it will add the weapon to the correct FormID list each time the game is loaded or restarted.

Edited by Astymma
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...