Tobilike Posted July 22, 2016 Posted July 22, 2016 Can I add and remove Itemes with scripts?I will make a holotape that add or remove Items from the LevelLists.
Predence00 Posted July 22, 2016 Posted July 22, 2016 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 LeveledListSyntax: 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) EndEventRevert: Usage: To remove all script added items from a listSyntax: 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() EndEventSource: http://www.creationkit.com/fallout4/index.php?title=LeveledItem_Script Edit: Add Source
Tobilike Posted July 22, 2016 Author Posted July 22, 2016 Ok thank you.I try it out.Its a lot of work, when i only can script added items remove.(Sry my english is bat)
Recommended Posts