Jump to content

LevelList add and remove Itemes with scripts


Recommended Posts

TL;DR: Yes.

 

There are 2 functions to my knowledge that allow you to modify LeveledLists.

 

AddForm:

 

Usage: Used to add an item to a LeveledList

Syntax: AddForm(Form apForm, int auiLevel, int auiCount) or in english, AddForm(Item to Add, Level it shows up in said list, Number of item added)

 

Example:

Scriptname Bananagram Extends LeveledItem

MiscItem Property Bananagram

LeveledItem Property LLI_Loot_Food_Rare auto

Event OnInit()
	;Adds 1 Misc Item. Bananagram, to the LeveledList, LLI_Loot_Food_Rare, at level 21
	;Syntax: AddForm(Form apForm, int auiLevel, int auiCount)
	LLI_Loot_Food_Rare.Addform(Bananagram, 21, 1)
EndEvent

Revert:

 

Usage: To remove all script added items from a list

Syntax: Revert()

 

Example:

Scriptname BananagramRemoval Extends LeveledItem

LeveledItem Property LLI_Loot_Food_Rare auto

Event OnInit()
	;Removes all items added by script to the leveled list
	;Syntax: Revert()
	LLI_Loot_Food_Rare.Revert()
EndEvent

Source: http://www.creationkit.com/fallout4/index.php?title=LeveledItem_Script

 

Edit: Add Source

Link to comment
Share on other sites

  • Recently Browsing   0 members

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