Jump to content

help on LL inject Script


Oynlen

Recommended Posts

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 = PlayerLevel
If custlvl != 0
lvl = custlvl
EndIf
lst.AddForm(ActorName as Form, lvl, 1)
; Debug.Notification("ActorForm succeeded")
If ListForm ; if variable is set by user
lst.AddForm(ListForm as Form, lvl, 1) ; adds the leveled list to another leveled list
; Debug.Notification("ListForm succeeded")
EndIf
EndFunction
Event OnQuestInit()
If LCharRaider
addActorToLL(LCharRaider, PlayerLevel_LCharRaider)
EndIf
If LCharGunner
addActorToLL(LCharGunner, PlayerLevel_LCharGunner)
EndIf
If LCharTriggerman
addActorToLL(LCharTriggerman, PlayerLevel_LCharTriggerman)
EndIf
If LCharBoSSoldier
addActorToLL(LCharBoSSoldier, PlayerLevel_LCharBoSSoldier)
EndIf
If LCharDeathclaw
addActorToLL(LCharDeathclaw, PlayerLevel_LCharDeathclaw)
EndIf
If Custom_LL_1
addActorToLL(Custom_LL_1, PlayerLevel_Custom_LL_1)
EndIf
If Custom_LL_2
addActorToLL(Custom_LL_2, PlayerLevel_Custom_LL_2)
EndIf
If Custom_LL_3
addActorToLL(Custom_LL_3, PlayerLevel_Custom_LL_3)
EndIf
If Custom_LL_4
addActorToLL(Custom_LL_4, PlayerLevel_Custom_LL_4)
EndIf
If Custom_LL_5
addActorToLL(Custom_LL_5, PlayerLevel_Custom_LL_5)
EndIf
If Custom_LL_6
addActorToLL(Custom_LL_6, PlayerLevel_Custom_LL_6)
EndIf
If Custom_LL_7
addActorToLL(Custom_LL_7, PlayerLevel_Custom_LL_7)
EndIf
If Custom_LL_8
addActorToLL(Custom_LL_8, PlayerLevel_Custom_LL_8)
EndIf
If Custom_LL_9
addActorToLL(Custom_LL_9, PlayerLevel_Custom_LL_9)
EndIf
If Custom_LL_10
addActorToLL(Custom_LL_10, PlayerLevel_Custom_LL_10)
EndIf
If Custom_LL_11
addActorToLL(Custom_LL_11, PlayerLevel_Custom_LL_11)
EndIf
If Custom_LL_12
addActorToLL(Custom_LL_12, PlayerLevel_Custom_LL_12)
EndIf
If Custom_LL_13
addActorToLL(Custom_LL_13, PlayerLevel_Custom_LL_13)
EndIf
If Custom_LL_14
addActorToLL(Custom_LL_14, PlayerLevel_Custom_LL_14)
EndIf
If Custom_LL_15
addActorToLL(Custom_LL_15, PlayerLevel_Custom_LL_15)
EndIf
If Custom_LL_16
addActorToLL(Custom_LL_16, PlayerLevel_Custom_LL_16)
EndIf
If Custom_LL_17
addActorToLL(Custom_LL_17, PlayerLevel_Custom_LL_17)
EndIf
If Custom_LL_18
addActorToLL(Custom_LL_18, PlayerLevel_Custom_LL_18)
EndIf
If Custom_LL_19
addActorToLL(Custom_LL_19, PlayerLevel_Custom_LL_19)
EndIf
If Custom_LL_20
addActorToLL(Custom_LL_20, PlayerLevel_Custom_LL_20)
EndIf
; notification once injection is complete
Debug.Notification("Added to leveled lists: " + ActorName)
EndEvent
Link to comment
Share on other sites

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

  • Recently Browsing   0 members

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