Oynlen Posted September 13, 2020 Share Posted September 13, 2020 I have downloaded A Blind Mans Script as well as Dank Raft's version. I Want to use a feature from Dankrafts version that allows a custom LL to be injected into another LL, rather than separate items/actors. Dank Rafts script focuses on weapon injection but I want to use Leveled npcs. Specificlly, to inject a custom Lchar into LcharDeathclaw LL. I am not familiar with scripting at all but I think I have added the lines needed and converted them from Lveled items to leveled actors? getting the error of too may arguments to pass on line 143. lst.AddForm(ListForm as Form, lvl, 1) Its something to do with the 1 at the end of that line, but idk why Dank Rafts version compiles fine and this one does not. Scriptname ActorLLInject extends Quest Group MainSettings{Main Settings.}ActorBase Property ActorName Auto Const{The NPC you want to add to the Leveled Lists.}int Property PlayerLevel = 1 Auto Const{Choose a player level at which to add the NPC to Leveled Lists. This can be overwritten for individual lists below.} LeveledActor Property ListForm Auto Const{The Leveled List you want to add to other Leveled Lists. Only used if filled.}EndGroup Group CommonLists{Common Level Lists and the required player level for the NPC to be added to them. Auto-fill any lists you want to use.} LeveledActor Property LCharRaider Auto Const{Auto-fill me}int Property PlayerLevel_LCharRaider Auto Const{Player level to add NPC to above list. Defaults to what you specified as PlayerLevel in MainSettings.} LeveledActor Property LCharGunner Auto Const{Auto-fill me}int Property PlayerLevel_LCharGunner Auto Const{Player level to add NPC to above list. Defaults to what you specified as PlayerLevel in MainSettings.} LeveledActor Property LCharTriggerman Auto Const{Auto-fill me}int Property PlayerLevel_LCharTriggerman Auto Const{Player level to add NPC to above list. Defaults to what you specified as PlayerLevel in MainSettings.} LeveledActor Property LCharBoSSoldier Auto Const{Auto-fill me}int Property PlayerLevel_LCharBoSSoldier Auto Const{Player level to add NPC to above list. Defaults to what you specified as PlayerLevel in MainSettings.} LeveledActor Property LCharDeathclaw Auto Const{Auto-fill me}int Property PlayerLevel_LCharDeathclaw Auto Const{Player level to add NPC to above list. Defaults to what you specified as PlayerLevel in MainSettings.} EndGroup Group CustomLists{Custom Level Lists and the required player level for the NPC to be added to them. Use these if you can't find the LL above.} LeveledActor Property Custom_LL_1 Auto Const{Choose a Level List to add your NPC to.}int Property PlayerLevel_Custom_LL_1 Auto Const{Player level to add NPC to above list. Defaults to what you specified as PlayerLevel in MainSettings.}LeveledActor Property Custom_LL_2 Auto Const{Choose a Level List to add your NPC to.}int Property PlayerLevel_Custom_LL_2 Auto Const{Player level to add NPC to above list. Defaults to what you specified as PlayerLevel in MainSettings.}LeveledActor Property Custom_LL_3 Auto Const{Choose a Level List to add your NPC to.}int Property PlayerLevel_Custom_LL_3 Auto Const{Player level to add NPC to above list. Defaults to what you specified as PlayerLevel in MainSettings.}LeveledActor Property Custom_LL_4 Auto Const{Choose a Level List to add your NPC to.}int Property PlayerLevel_Custom_LL_4 Auto Const{Player level to add NPC to above list. Defaults to what you specified as PlayerLevel in MainSettings.}LeveledActor Property Custom_LL_5 Auto Const{Choose a Level List to add your NPC to.}int Property PlayerLevel_Custom_LL_5 Auto Const{Player level to add NPC to above list. Defaults to what you specified as PlayerLevel in MainSettings.}LeveledActor Property Custom_LL_6 Auto Const{Choose a Level List to add your NPC to.}int Property PlayerLevel_Custom_LL_6 Auto Const{Player level to add NPC to above list. Defaults to what you specified as PlayerLevel in MainSettings.}LeveledActor Property Custom_LL_7 Auto Const{Choose a Level List to add your NPC to.}int Property PlayerLevel_Custom_LL_7 Auto Const{Player level to add NPC to above list. Defaults to what you specified as PlayerLevel in MainSettings.}LeveledActor Property Custom_LL_8 Auto Const{Choose a Level List to add your NPC to.}int Property PlayerLevel_Custom_LL_8 Auto Const{Player level to add NPC to above list. Defaults to what you specified as PlayerLevel in MainSettings.}LeveledActor Property Custom_LL_9 Auto Const{Choose a Level List to add your NPC to.}int Property PlayerLevel_Custom_LL_9 Auto Const{Player level to add NPC to above list. Defaults to what you specified as PlayerLevel in MainSettings.}LeveledActor Property Custom_LL_10 Auto Const{Choose a Level List to add your NPC to.}int Property PlayerLevel_Custom_LL_10 Auto Const{Player level to add NPC to above list. Defaults to what you specified as PlayerLevel in MainSettings.}LeveledActor Property Custom_LL_11 Auto Const{Choose a Level List to add your NPC to.}int Property PlayerLevel_Custom_LL_11 Auto Const{Player level to add NPC to above list. Defaults to what you specified as PlayerLevel in MainSettings.}LeveledActor Property Custom_LL_12 Auto Const{Choose a Level List to add your NPC to.}int Property PlayerLevel_Custom_LL_12 Auto Const{Player level to add NPC to above list. Defaults to what you specified as PlayerLevel in MainSettings.}LeveledActor Property Custom_LL_13 Auto Const{Choose a Level List to add your NPC to.}int Property PlayerLevel_Custom_LL_13 Auto Const{Player level to add NPC to above list. Defaults to what you specified as PlayerLevel in MainSettings.}LeveledActor Property Custom_LL_14 Auto Const{Choose a Level List to add your NPC to.}int Property PlayerLevel_Custom_LL_14 Auto Const{Player level to add NPC to above list. Defaults to what you specified as PlayerLevel in MainSettings.}LeveledActor Property Custom_LL_15 Auto Const{Choose a Level List to add your NPC to.}int Property PlayerLevel_Custom_LL_15 Auto Const{Player level to add NPC to above list. Defaults to what you specified as PlayerLevel in MainSettings.}LeveledActor Property Custom_LL_16 Auto Const{Choose a Level List to add your NPC to.}int Property PlayerLevel_Custom_LL_16 Auto Const{Player level to add NPC to above list. Defaults to what you specified as PlayerLevel in MainSettings.}LeveledActor Property Custom_LL_17 Auto Const{Choose a Level List to add your NPC to.}int Property PlayerLevel_Custom_LL_17 Auto Const{Player level to add NPC to above list. Defaults to what you specified as PlayerLevel in MainSettings.}LeveledActor Property Custom_LL_18 Auto Const{Choose a Level List to add your NPC to.}int Property PlayerLevel_Custom_LL_18 Auto Const{Player level to add NPC to above list. Defaults to what you specified as PlayerLevel in MainSettings.}LeveledActor Property Custom_LL_19 Auto Const{Choose a Level List to add your NPC to.}int Property PlayerLevel_Custom_LL_19 Auto Const{Player level to add NPC to above list. Defaults to what you specified as PlayerLevel in MainSettings.}LeveledActor Property Custom_LL_20 Auto Const{Choose a Level List to add your NPC to.}int Property PlayerLevel_Custom_LL_20 Auto Const{Player level to add NPC to above list. Defaults to what you specified as PlayerLevel in MainSettings.} EndGroup Function addActorToLL(LeveledActor lst, int custlvl)int lvl = PlayerLevelIf custlvl != 0lvl = custlvlEndIflst.AddForm(ActorName as Form, lvl, 1); Debug.Notification("ActorForm succeeded")If ListForm ; if variable is set by userlst.AddForm(ListForm as Form, lvl, 1) ; adds the leveled list to another leveled list; Debug.Notification("ListForm succeeded")EndIf EndFunction Event OnQuestInit()If LCharRaideraddActorToLL(LCharRaider, PlayerLevel_LCharRaider)EndIfIf LCharGunneraddActorToLL(LCharGunner, PlayerLevel_LCharGunner)EndIfIf LCharTriggermanaddActorToLL(LCharTriggerman, PlayerLevel_LCharTriggerman)EndIfIf LCharBoSSoldieraddActorToLL(LCharBoSSoldier, PlayerLevel_LCharBoSSoldier)EndIf If LCharDeathclawaddActorToLL(LCharDeathclaw, PlayerLevel_LCharDeathclaw)EndIf If Custom_LL_1addActorToLL(Custom_LL_1, PlayerLevel_Custom_LL_1)EndIfIf Custom_LL_2addActorToLL(Custom_LL_2, PlayerLevel_Custom_LL_2)EndIfIf Custom_LL_3addActorToLL(Custom_LL_3, PlayerLevel_Custom_LL_3)EndIfIf Custom_LL_4addActorToLL(Custom_LL_4, PlayerLevel_Custom_LL_4)EndIfIf Custom_LL_5addActorToLL(Custom_LL_5, PlayerLevel_Custom_LL_5)EndIfIf Custom_LL_6addActorToLL(Custom_LL_6, PlayerLevel_Custom_LL_6)EndIfIf Custom_LL_7addActorToLL(Custom_LL_7, PlayerLevel_Custom_LL_7)EndIfIf Custom_LL_8addActorToLL(Custom_LL_8, PlayerLevel_Custom_LL_8)EndIfIf Custom_LL_9addActorToLL(Custom_LL_9, PlayerLevel_Custom_LL_9)EndIfIf Custom_LL_10addActorToLL(Custom_LL_10, PlayerLevel_Custom_LL_10)EndIfIf Custom_LL_11addActorToLL(Custom_LL_11, PlayerLevel_Custom_LL_11)EndIfIf Custom_LL_12addActorToLL(Custom_LL_12, PlayerLevel_Custom_LL_12)EndIfIf Custom_LL_13addActorToLL(Custom_LL_13, PlayerLevel_Custom_LL_13)EndIfIf Custom_LL_14addActorToLL(Custom_LL_14, PlayerLevel_Custom_LL_14)EndIfIf Custom_LL_15addActorToLL(Custom_LL_15, PlayerLevel_Custom_LL_15)EndIfIf Custom_LL_16addActorToLL(Custom_LL_16, PlayerLevel_Custom_LL_16)EndIfIf Custom_LL_17addActorToLL(Custom_LL_17, PlayerLevel_Custom_LL_17)EndIfIf Custom_LL_18addActorToLL(Custom_LL_18, PlayerLevel_Custom_LL_18)EndIfIf Custom_LL_19addActorToLL(Custom_LL_19, PlayerLevel_Custom_LL_19)EndIfIf Custom_LL_20addActorToLL(Custom_LL_20, PlayerLevel_Custom_LL_20)EndIf; notification once injection is completeDebug.Notification("Added to leveled lists: " + ActorName)EndEvent Link to comment Share on other sites More sharing options...
Oynlen Posted September 14, 2020 Author Share Posted September 14, 2020 Well, removing the 1 seemed to be all that was needed, Its working though the only thing I guess about adding a LL to a LL with this script rather than each individual actor is the actors in the custom LL seem to lose their names. Now all are called deathclaw when they spawn (I think) I just console spawned 10 deathclaws and 3 were the custom types but all had the same name of simply Deathclaw. Possibly might work properly when spawned in the wild, but deathclaws are not that common so it will probably be a long time before I can confirm it. Link to comment Share on other sites More sharing options...
Recommended Posts