Jump to content

Script for adding certain things to a form list?


SHAD0WC0BRA

Recommended Posts

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

You are missing the Form ID (the ID of the weapon):

AddFormToFormList FormListID:ref FormID:ref

You 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

  • Recently Browsing   0 members

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