ashjay101 Posted September 27, 2021 Share Posted September 27, 2021 Hi all, I'm currently in the middle of writing a script to ensure ALL companions (not just DLC ones) lose their inventories in casinos, The Fort, Silver rush, etc. So far, my script looks like this:scn CFEEUltraLuxeTriggerSCRIPT short ConfiscatedCompanionsref Companion1ref Companion2ref Companion3ref Potential1ref potential2ref potential3ref Companion1HEREref Companion2HEREref Companion3HEREshort DoOnce Begin OnTrigger If (CFEEUltraLuxeQuest.ConfiscatedCompanions != 1) && (CFEEUltraLuxeQuest.ConfiscatedCompanions != 2)If (GetActionREF != Player) && (VMS18.bPlayerFrisked == 1)set potential1 to GetActionREFIf (Potential1.GetPlayerTeammate == 1)set CFEEUltraLuxeQuest.companion1 to Potential1set Companion1HERE to CFEEUltraLuxeQuest.Companion1set CFEEUltraLuxeQuest.ConfiscatedCompanions to 1if Player.GetActorValue Sneak >= 50Companion1HERE.RemoveAllTypedItems CFEEComp1CONT 1 0 40 NVImprovedHoldoutWeaponselseCompanion1HERE.RemoveAllTypedItems CFEEComp1CONT 1 0 40 NVHoldoutWeapons endifendifendifendifend Begin OnTrigger If (CFEEUltraLuxeQuest.ConfiscatedCompanions == 1)If (GetActionREF != Player) && (VMS18.bPlayerFrisked == 1)set potential2 to GetActionREFIf (Potential2.GetPlayerTeammate == 1)set CFEEUltraLuxeQuest.companion2 to Potential2set Companion2HERE to CFEEUltraLuxeQuest.Companion2set CFEEUltraLuxeQuest.ConfiscatedCompanions to 2if Player.GetActorValue Sneak >= 50Companion2HERE.RemoveAllTypedItems CFEEComp2CONT 1 0 40 NVImprovedHoldoutWeaponselseCompanion2HERE.RemoveAllTypedItems CFEEComp2CONT 1 0 40 NVHoldoutWeapons endifendifendifendifend Begin OnTrigger If (CFEEUltraLuxeQuest.ConfiscatedCompanions == 2)If (GetActionREF != Player) && (VMS18.bPlayerFrisked == 1)set potential3 to GetActionREFIf (Potential3.GetPlayerTeammate == 1)set CFEEUltraLuxeQuest.companion3 to Potential3set Companion3HERE to CFEEUltraLuxeQuest.Companion3set CFEEUltraLuxeQuest.ConfiscatedCompanions to 3if Player.GetActorValue Sneak >= 50Companion3HERE.RemoveAllTypedItems CFEEComp3CONT 1 0 40 NVImprovedHoldoutWeaponselseCompanion3HERE.RemoveAllTypedItems CFEEComp3CONT 1 0 40 NVHoldoutWeapons endifendifendifendif However the issue is that the same companion is being assigned to Companion1, Companion2 & Companion3, what can I do to stop this, it's driving me mad!!!!? Thanks :) Link to comment Share on other sites More sharing options...
Sweet6Shooter Posted October 2, 2021 Share Posted October 2, 2021 This is a script segment ePath sent me, it'll require JIPTry doing this and then containing the commands you want to do inside it: array_var sCompanions array_var aEntry let sCompanions := player.getteammates if sCompanions foreach Array_Var aEntry <- sCompanions let rCompanion := aEntry["value"] do your commands here loop endif Link to comment Share on other sites More sharing options...
Recommended Posts