SHAD0WC0BRA Posted December 18, 2020 Share Posted December 18, 2020 Let's say I want to create a script which adds any weapon the player has (from mods, etc.) to a form list. For example, a script that adds all weapons in the game, modded or otherwise, which are both TwoHandRifle and use .308 ammo to a specific form list. Is something like this possible? I tried to create a script to this effect, but of course, it doesn't work: scn 0WOTCScript begin GameMode if GetNVSEVersion > 0 if (GetWeaponAmmo == NVDLC02AmmoList45Auto && GetWeaponType == 3) AddFormToFormList WOTCWeapons endif else MessageBox "Way of the Caananite Perk Mod Compatibility Fix requires NVSE." endif StopQuest 0WOTCQuest end The main problem is that I'm stumped on the "AddFormToFormList" line... I probably haven't written this right, or I am trying to do something that isn't possible. Any assistance? Link to comment Share on other sites More sharing options...
madmongo Posted December 18, 2020 Share Posted December 18, 2020 (edited) You are missing the Form ID (the ID of the weapon):AddFormToFormList FormListID:ref FormID:refYou have to add the weapons to the form list one at a time. You can't do it all in one statement. Edited December 18, 2020 by madmongo Link to comment Share on other sites More sharing options...
SHAD0WC0BRA Posted December 19, 2020 Author Share Posted December 19, 2020 You are missing the Form ID (the ID of the weapon):AddFormToFormList FormListID:ref FormID:refYou have to add the weapons to the form list one at a time. You can't do it all in one statement. I know how to add specific weapons to a form list. I'm trying to add all weapons that fit a particular criteria into a form list, even if they're added in by a mod. Maybe it is not possible to do this. Link to comment Share on other sites More sharing options...
Recommended Posts