EPDGaffney Posted January 23, 2018 Share Posted January 23, 2018 Maybe I'm a little confused as to what your aim is, but I think I would just remove all equipped items into a hidden container designated for it, do the sorting of whatever else you need to do, then move the equipped items back to the player and equip them. The way to handle arrays is usually with ForEach. So, once you have an array with all the equipped items, you can write a script for what you want for each of them (get it? for -- each), and enclose that in a ForEach Loop, and then it will run that script for each item in the array (or whatever other type of collection you've told it to use). I looked a bit and discovered temporary inventory references. I'm not sure I did this right as I'm not accustomed to the concept yet, but see how useful you find this: scn ItemSorterScript ref rItem Begin OnActivate ForEach rItem <- player if rItem.IsEquipped RemoveMeIRAlt 1 0 YourContainerREF EndIf Loop End I was originally going to try something more complex using arrays, but if that script works, you can use that instead. Then, at some point later, once you're sure all the equipped items are there and the sorting is all done, you do a ForEach removing them into the player's inventory and equipping them. I forget if this is necessary but don't believe so: you may have to do an ElseIf check for items that aren't equipped and use Continue to bypass them. Link to comment Share on other sites More sharing options...
GeneralGred Posted January 23, 2018 Author Share Posted January 23, 2018 (edited) ForEach has allowed me to make a lot of headway, I can't thank you enough for bringing these commands to my attention. I have managed to complete both systems using this. Unfortunately I am still having issues with "ghost" items, I just have no idea what is going on with this, it only affects headgear and nothing else, The best I can tell from testing is that this only occurs with headgear when its stored as a variable. If moved directly (eg: player.RemoveItemTarget Hat Container) it has no issue, but when you store and move it as a variable (eg: player.RemoveItemTarget PlayersHat Container) it corrupts it and makes it CTD the game when touched. So with the current script it is sent to its proper container and when I access the container and try to take it I CTD. So I have a fully functional script with just this bug obstructing completion.Here is the master script in its full current form: scn GMAutoSorterScriptshort AutoSortingshort AutoSortArmorshort AutoSortFoodshort AutoSortDrinksshort AutoSortMedicineshort AutoSortDrugsshort AutoSortCluttershort AutoSortClothingshort AutoSortAmmoshort AutoSortWeaponsshort AutoSortStimpaksshort AutoSortStimpaksshort StartUpref EquippedAmmoref PlayerItemref StoredHotkeyItem1ref StoredHotkeyItem2ref StoredHotkeyItem3ref StoredHotkeyItem4ref StoredHotkeyItem5ref StoredHotkeyItem6ref StoredHotkeyItem7ref StoredHotkeyItem8Begin onActivate if (player.IsSneaking == 0) playSound DRSTraderOpen GMAutoSorterContainerRef.activate player 1 elseif (player.IsSneaking == 1) ;Only when sneaking is the auto-sort function activated playSound DRSTraderClose set StoredHotkeyItem1 to GetHotKeyItem 1 ;Storing the hotkey items for exemption set StoredHotkeyItem3 to GetHotKeyItem 3 set StoredHotkeyItem4 to GetHotKeyItem 4 set StoredHotkeyItem5 to GetHotKeyItem 5 set StoredHotkeyItem6 to GetHotKeyItem 6 set StoredHotkeyItem7 to GetHotKeyItem 7 set StoredHotkeyItem8 to GetHotKeyItem 8 set EquippedAmmo to GetPlayerCurrentAmmo ForEach PlayerItem <- player ;Removing all unequipped items if (PlayerItem.IsEquipped == 0) PlayerItem.RemoveMeIRAlt 0 0 GMAutoSorterContainerRef endIf Loop set AutoSorting to 1 endifEndBegin Gamemode if (AutoSorting == 1) ;This section handles any specific exemption items as well as any hotkey items GMAutoSorterContainerRef.removeItemTarget EquippedAmmo player GMAutoSorterContainerRef.removeItemTarget StoredHotkeyItem1 player GMAutoSorterContainerRef.removeItemTarget StoredHotkeyItem3 player GMAutoSorterContainerRef.removeItemTarget StoredHotkeyItem4 player GMAutoSorterContainerRef.removeItemTarget StoredHotkeyItem5 player GMAutoSorterContainerRef.removeItemTarget StoredHotkeyItem6 player GMAutoSorterContainerRef.removeItemTarget StoredHotkeyItem7 player GMAutoSorterContainerRef.removeItemTarget StoredHotkeyItem8 player if (AutoSortStimpaks == 0) GMAutoSorterContainerRef.removeItemTarget Stimpak player endif set AutoSorting to 2 endif if (AutoSorting == 2) ;This section sorts all non-exempt categories set by the player if (AutoSortArmor == 1) GMAutoSorterContainerRef.removeItemTarget ArmorLeather GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget ArmorRaider01 GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget ArmorRaider01Helmet GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget ArmorRadiationSuit GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget ArmorRadiationSuitAdvanced GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget ArmorRaider02 GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget ArmorRaider02Helmet GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget ArmorRaider03 GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget ArmorRaider03Helmet GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget ArmorRaider04 GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget ArmorRaider04Helmet GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget ArmorMetal GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget ArmorMetalHelmet GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget HelmetHockeyMask GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget HelmetEyebot GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget HelmetEyebotCaravanSpecial GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget ArmorTorcherMask GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget ArmorWanderersLeather GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget ArmorUniqueWastelander GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget ArmorUniqueExplorer GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget ArmorUniqueCombatHelmet GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget ArmorUniqueEnclaveHelmet GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget ArmorUniqueLeather GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget ArmorUniqueMetalHelmet GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget ArmorUniqueReconHelmet GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget ArmorUniqueRaider01 GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget ArmorUniqueRaider01Helmet GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget ArmorUniqueRaider02 GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget ArmorUniqueRaider04 GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget ArmorUniqueRaider04Helmet GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget ArmorNVSpaceSuit GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget HelmetNVSpaceSuit GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget ArmorFiendHelmet01 GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget ArmorFiendHelmetRare GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget ArmorFiendHelmet02 GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget ArmorFiendHelmet03 GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget BountyHunterDuster GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget ArmorLeatherReinforced GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget MountedVaultSuit101Armored GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget MS03VaultSuit21Armored GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget ArmorVault34Security GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget ArmorVault34SecurityHelmet GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget ArmorMetalHelmetReinforced GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget ArmorLeatherGladiator GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget ChineseStealthArmor GMArmoryArmorContLightRef GMAutoSorterContainerRef.removeItemTarget ArmorCombat GMArmoryArmorContMediumRef GMAutoSorterContainerRef.removeItemTarget ArmorCombatHelmet GMArmoryArmorContMediumRef GMAutoSorterContainerRef.removeItemTarget ArmorRecon GMArmoryArmorContMediumRef GMAutoSorterContainerRef.removeItemTarget ArmorReconHelmet GMArmoryArmorContMediumRef GMAutoSorterContainerRef.removeItemTarget ArmorUniqueCombat GMArmoryArmorContMediumRef GMAutoSorterContainerRef.removeItemTarget ArmorUniqueCombatHelmet GMArmoryArmorContMediumRef GMAutoSorterContainerRef.removeItemTarget ArmorUniqueRecon GMArmoryArmorContMediumRef GMAutoSorterContainerRef.removeItemTarget ArmorUniqueReconHelmet GMArmoryArmorContMediumRef GMAutoSorterContainerRef.removeItemTarget ArmorCombatBlack GMArmoryArmorContMediumRef GMAutoSorterContainerRef.removeItemTarget ArmorCombatReinforced GMArmoryArmorContMediumRef GMAutoSorterContainerRef.removeItemTarget ArmorCombatHelmetReinforced GMArmoryArmorContMediumRef GMAutoSorterContainerRef.removeItemTarget ArmorGannonTesla GMArmoryArmorContMediumRef GMAutoSorterContainerRef.removeItemTarget ArmorCombatReinforcedMark2 GMArmoryArmorContMediumRef GMAutoSorterContainerRef.removeItemTarget ArmorCombatHelmetReinforcedmark2 GMArmoryArmorContMediumRef GMAutoSorterContainerRef.removeItemTarget VFSArmorCombatBlackVanGraff GMArmoryArmorContMediumRef GMAutoSorterContainerRef.removeItemTarget ArmorPowerT45d GMArmoryArmorContHeavyRef GMAutoSorterContainerRef.removeItemTarget ArmorPowerT45dHelmet GMArmoryArmorContHeavyRef GMAutoSorterContainerRef.removeItemTarget ArmorMetal GMArmoryArmorContHeavyRef GMAutoSorterContainerRef.removeItemTarget ArmorMetalHelmet GMArmoryArmorContHeavyRef GMAutoSorterContainerRef.removeItemTarget ArmorTeslaPower GMArmoryArmorContHeavyRef GMAutoSorterContainerRef.removeItemTarget ArmorTeslaHelmet GMArmoryArmorContHeavyRef GMAutoSorterContainerRef.removeItemTarget ArmorPowerT51b GMArmoryArmorContHeavyRef GMAutoSorterContainerRef.removeItemTarget ArmorPowerT51bHelmet GMArmoryArmorContHeavyRef GMAutoSorterContainerRef.removeItemTarget UniqueArmorDefender GMArmoryArmorContHeavyRef GMAutoSorterContainerRef.removeItemTarget UniqueArmorCommando GMArmoryArmorContHeavyRef GMAutoSorterContainerRef.removeItemTarget ArmorUniqueEnclave GMArmoryArmorContHeavyRef GMAutoSorterContainerRef.removeItemTarget ArmorUniqueMetal GMArmoryArmorContHeavyRef GMAutoSorterContainerRef.removeItemTarget ArmorMetalReinforced GMArmoryArmorContHeavyRef GMAutoSorterContainerRef.removeItemTarget ArmorMetalHelmetReinforced GMArmoryArmorContHeavyRef GMAutoSorterContainerRef.removeItemTarget ArmorPowerRemnants GMArmoryArmorContHeavyRef GMAutoSorterContainerRef.removeItemTarget ArmorRemnantsTesla GMArmoryArmorContHeavyRef GMAutoSorterContainerRef.removeItemTarget ArmorEnclave GMArmoryArmorContHeavyRef GMAutoSorterContainerRef.removeItemTarget ArmorEnclaveHelmet GMArmoryArmorContHeavyRef GMAutoSorterContainerRef.removeItemTarget ArmorBoomerWeldingHelmet GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget OutfitBoomer1 GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget OutfitBoomer2 GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget OutfitBoomersCap GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget OutfitBoomersHat GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget OutfitBoomersHelmet GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget VMS15BoomerOutfitWearable GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget OutfitBoSScribe GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget ArmorPowerBrotherhoodOfSteelT45D GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget ArmorPowerBrotherhoodOfSteelT51B GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget OutfitElderMcNamara GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget ArmorNVCaesar GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget ArmorNVCLCenturion GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget ArmorNVCLExplorer GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget ArmorNVCLPraetorian GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget ArmorNVCLPrime GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget ArmorNVCLRecruit GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget ArmorNVCLVeteran GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget ArmorNVCLVexillarius GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget HelmetNVCLCenturion GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget HelmetNVCLExplorer GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget HelmetNVCLPrime GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget HelmetNVCLPrimeDecanus GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget HelmetNVCLRecruit GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget HelmetNVCLRecruitDecanus GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget HelmetNVCLVeteran GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget HelmetNVCLVeteranDecanus GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget HelmetNVCLVexillarius GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget ArmorNVGKArmored GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget ArmorNVGKSimple GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget ArmorNVGKSoldier GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget ArmorNVGKSuit GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget HelmetNVGKSpike GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget ArmorNVpapakhanHelmet GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget ArmorNVNCRRangerCombat GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget ArmorNVNCRRangerPatrol GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget ArmorNVNCRTrooper GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget ArmorNVNCRTrooperBandoleer GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget ArmorNVNCRTrooperFaceWrap GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget ArmorNVNCRTrooperMantle GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget ArmorNVNCRTrooperMP GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget ArmorPowerNCRHelmet GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget ArmorPowerNCRSalvaged GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget GlassesNCRRangerCivilian GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget HatNCR1stReconBeret GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget HatNCRBeret GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget HatNVNCRRanger GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget HelmetNVNCRRangerCombat GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget HelmetNVNCRTrooper GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget HelmetNVNCRTrooperGoggles GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget HelmetNVNCRTrooperMP GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget OutfitJumpsuitHooverDamNCR GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget OutfitNCRRangerCivilian01 GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget OutfitNCRRangerCivilian02 GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget OutfitNCRRangerCivilian03 GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget OutfitNCRRangerHat01 GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget OutfitNCRRangerHat02 GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget OutfitNCRRangerHat03 GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget OutfitTrooperFatigues GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget OutfitGeneralOliver GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget NVGenOliverCap GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget OutfitAmbassadorCrocker GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget OutfitKimballSuit GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget ArmorNVPGGuardArmor GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget ArmorNVPGPlain GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget ArmorNVPGSimple GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget ArmorNVPGSoldier GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget OutfitFollowersDoctor GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget OutfitFollowersDoctorUnique GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget OutfitJailhouseRocker GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget OutfitKings GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget ArmorWhiteGloveSociety GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget VMS18WhiteGloveMask GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget OutfitRepconCult GMArmoryArmorContFactionsRef GMAutoSorterContainerRef.removeItemTarget NVDLC03ArmorUniqueReconChristine GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC03AuralStealthsuit GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC03DeadMansJumpSuit GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC03GhostHoodlessbody GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC03GhostHoodlessHead GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC03GlassesDrKlein GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC03GlassesDrMobius GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget nvdlc03hologramoutfit GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC03LobotomiteGoggles GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC03LobotomiteJumpsuit GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC03LobotomiteMask GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC03LobotomiteMask2 GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC03OrbittingHelmet3Loop GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC03orbittingHelmetoneLoop GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC03PatientGown GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC03scientistscrubblue GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC03scientistscrubgreen GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC03scientistscrubred GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC03scientistscrubwhite GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC04ArmorDusterCourier GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC04ArmorDusterLegion GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC04ArmorDusterNCR GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC04ArmorDusterOldworld GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC04ArmorDusterUlyssesOW GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC04ArmorLegateCustom GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC04ArmorMarkedMenPatrol GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC04ArmorMarkedMenScout GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC04ArmorMarkedMenTribal GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC04ArmorMarkedMenTrooper GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC04ArmorPowerNCRScorched GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC04ArmorRiotGear GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC04ArmorRiotGearCustom GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC04ArmorRiotGearUnique GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC04ArmorUSArmyCombatArmor GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC04HelmetBreathingMask GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC04HelmetBreathingMaskUnique GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC04HelmetLegateHelm GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC04HelmetMarkedBeast GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC04HelmetMarkedBeastEyes GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC04HelmetMarkedBeastFace GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC04HelmetRiotGear GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC04HelmetRiotGearCustom GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC04HelmetRiotGearUnique GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC04HelmetUlysessNPC GMArmoryArmorContDLCRef GMAutoSorterContainerRef.removeItemTarget NVDLC04OutfitUSMilitaryGeneral GMArmoryArmorContDLCRef endif if (AutoSortWeapons == 1) GMAutoSorterContainerRef.removeItemTarget WeapRollingPin GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapTireIron GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapPoliceBaton GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapLeadPipe GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapLeadPipeRaul GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapNVLeadPipeUnique GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapPoolCue GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapBaseballBat GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapSuperSledge GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapSuperSledgeMeanie GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapSuperSledgeUnique GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapSledgehammer GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapNV9iron GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapNVDriverUnique GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapNVThrowingSpear GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapKnifeCombat GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapKnifeCombatCass GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapNVKnifeCombatUnique GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapKnife GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapKnifeAssassin GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapSwitchBlade GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapNVStraightRazor GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapNVStraightRazorUnique GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapNVCleaver GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapNVCleaverUnique GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapNVMachete GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapNVMacheteBoone GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapNVMacheteDeadSea GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapNVMacheteGladius GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapNVFireaxe GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapNVFireaxeUnique GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapNVHatchet GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapNVThrowingHatchet GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapRipper GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapRipperArcade GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapNVChainsaw GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapThermicLance GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapShishkebab GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapNailBoard GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapNVBumperSword GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapNVLegateSword2 GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapNVLilySword GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapCattleProd GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapNVDressCane GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapNVRebarClub GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapNVBallisticFist GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapNVBoxingGloves GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapNVBoxingGoldenGloves GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapNVBoxingTape GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapNVDisplacerGlove GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapNVDisplacerGloveUnique GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapNVDogTagFist GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapNVDogTagFistUnique GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapNVLilyGauntlet GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapNVSlaveBackPack GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapNVZapGlove GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapNVZapGloveUnique GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapPowerFist GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget WeapPowerFistVeronica GMArmoryMeleeContRef GMAutoSorterContainerRef.removeItemTarget Weap10mmPistol GMArmorySidearmContRef GMAutoSorterContainerRef.removeItemTarget Weap10mmPistolVeronica GMArmorySidearmContRef GMAutoSorterContainerRef.removeItemTarget WeapNV9mmPistol GMArmorySidearmContRef GMAutoSorterContainerRef.removeItemTarget WeapNV9mmPistolUnique GMArmorySidearmContRef GMAutoSorterContainerRef.removeItemTarget WeapNVSilenced22Pistol GMArmorySidearmContRef GMAutoSorterContainerRef.removeItemTarget WeapNV44Revolver GMArmorySidearmContRef GMAutoSorterContainerRef.removeItemTarget WeapNV127mmPistol GMArmorySidearmContRef GMAutoSorterContainerRef.removeItemTarget WeapNV357Revolver GMArmorySidearmContRef GMAutoSorterContainerRef.removeItemTarget WeapNV44RevolverRaul GMArmorySidearmContRef GMAutoSorterContainerRef.removeItemTarget WeapNVHuntingRevolver GMArmorySidearmContRef GMAutoSorterContainerRef.removeItemTarget WeapLaserPistol GMArmorySidearmContRef GMAutoSorterContainerRef.removeItemTarget WeapNVLaserPistolUnique GMArmorySidearmContRef GMAutoSorterContainerRef.removeItemTarget WeapPlasmaPistol GMArmorySidearmContRef GMAutoSorterContainerRef.removeItemTarget WeapNVPlasmaDefender GMArmorySidearmContRef GMAutoSorterContainerRef.removeItemTarget WeapNVPlasmaDefenderArcade GMArmorySidearmContRef GMAutoSorterContainerRef.removeItemTarget WeapNVEuclidsCFinder GMArmorySidearmContRef GMAutoSorterContainerRef.removeItemTarget WeapAlienBlaster GMArmorySidearmContRef GMAutoSorterContainerRef.removeItemTarget WeapNVRechargerPistol GMArmorySidearmContRef GMAutoSorterContainerRef.removeItemTarget WeapNVPulseGun GMArmorySidearmContRef GMAutoSorterContainerRef.removeItemTarget WeapNVRangerSequoia GMArmorySidearmContRef GMAutoSorterContainerRef.removeItemTarget WeapNV44RevolverUnique GMArmorySidearmContRef GMAutoSorterContainerRef.removeItemTarget WeapNVThatGun GMArmorySidearmContRef GMAutoSorterContainerRef.removeItemTarget WeapNV357RevolverUnique GMArmorySidearmContRef GMAutoSorterContainerRef.removeItemTarget Weap10mmSubmachineGun GMArmorySubMGContRef GMAutoSorterContainerRef.removeItemTarget WeapNV127mmSubmachineGun GMArmorySubMGContRef GMAutoSorterContainerRef.removeItemTarget WeapNV9mmSubmachineGun GMArmorySubMGContRef GMAutoSorterContainerRef.removeItemTarget WeapNV9mmSubmachineGunUnique GMArmorySubMGContRef GMAutoSorterContainerRef.removeItemTarget WeapNVSilenced22SMG GMArmorySubMGContRef GMAutoSorterContainerRef.removeItemTarget WeapNVCaravanShotgun GMArmoryShotgunContRef GMAutoSorterContainerRef.removeItemTarget WeapNVCaravanShotgunCass GMArmoryShotgunContRef GMAutoSorterContainerRef.removeItemTarget WeapNVRiotShotgun GMArmoryShotgunContRef GMAutoSorterContainerRef.removeItemTarget WeapNVHuntingShotgun GMArmoryShotgunContRef GMAutoSorterContainerRef.removeItemTarget WeapNVHuntingShotgunUnique GMArmoryShotgunContRef GMAutoSorterContainerRef.removeItemTarget WeapNVLeverActionShotgun GMArmoryShotgunContRef GMAutoSorterContainerRef.removeItemTarget WeapShotgunSawedOff GMArmoryShotgunContRef GMAutoSorterContainerRef.removeItemTarget WeapShotgunSawedOffUnique GMArmoryShotgunContRef GMAutoSorterContainerRef.removeItemTarget WeapNVSingleShotgun GMArmoryShotgunContRef GMAutoSorterContainerRef.removeItemTarget WeapNVBBGunUnique GMArmoryShotgunContRef GMAutoSorterContainerRef.removeItemTarget WeapNVServiceRifle GMArmoryAssaultContRef GMAutoSorterContainerRef.removeItemTarget WeapNVAssaultCarbine GMArmoryAssaultContRef GMAutoSorterContainerRef.removeItemTarget WeapNVAssaultCarbineLily GMArmoryAssaultContRef GMAutoSorterContainerRef.removeItemTarget WeapNVMarksmanCarbine GMArmoryAssaultContRef GMAutoSorterContainerRef.removeItemTarget WeapNVMarksmanCarbineUnique GMArmoryAssaultContRef GMAutoSorterContainerRef.removeItemTarget WeapNVLightMachineGun GMArmoryAssaultContRef GMAutoSorterContainerRef.removeItemTarget WeapHuntingRifle GMArmoryRifleContRef GMAutoSorterContainerRef.removeItemTarget WeapNVCowboyRepeater GMArmoryRifleContRef GMAutoSorterContainerRef.removeItemTarget WeapNVCowboyRepeaterUnique GMArmoryRifleContRef GMAutoSorterContainerRef.removeItemTarget WeapNVBrushGun GMArmoryRifleContRef GMAutoSorterContainerRef.removeItemTarget WeapNVTrailCarbine GMArmoryRifleContRef GMAutoSorterContainerRef.removeItemTarget WeapNVBattleRifleUnique GMArmoryRifleContRef GMAutoSorterContainerRef.removeItemTarget WeapSniperRifle GMArmoryRifleContRef GMAutoSorterContainerRef.removeItemTarget WeapNVSniperRifleUnique GMArmoryRifleContRef GMAutoSorterContainerRef.removeItemTarget WeapBooneSniperRifle GMArmoryRifleContRef GMAutoSorterContainerRef.removeItemTarget WeapNVAntiMaterielRifle GMArmoryRifleContRef GMAutoSorterContainerRef.removeItemTarget WeapNVVarmintRifle GMArmoryRifleContRef GMAutoSorterContainerRef.removeItemTarget WeapNVVarmintRifleUnique GMArmoryRifleContRef GMAutoSorterContainerRef.removeItemTarget WeapLaserRifle GMArmoryEnergyContRef GMAutoSorterContainerRef.removeItemTarget WeapLaserRifleUnique GMArmoryEnergyContRef GMAutoSorterContainerRef.removeItemTarget WeapLaserRifleAlwaysCrits GMArmoryEnergyContRef GMAutoSorterContainerRef.removeItemTarget WeapNVTriBeamLaserRifle GMArmoryEnergyContRef GMAutoSorterContainerRef.removeItemTarget WeapPlasmaRifle GMArmoryEnergyContRef GMAutoSorterContainerRef.removeItemTarget WeapNVPlasmaRifleUnique GMArmoryEnergyContRef GMAutoSorterContainerRef.removeItemTarget WeapPlasmaRifleAlwaysCrit GMArmoryEnergyContRef GMAutoSorterContainerRef.removeItemTarget WeapNVMultiPlasRifle GMArmoryEnergyContRef GMAutoSorterContainerRef.removeItemTarget WeapNVRechargerRifle GMArmoryEnergyContRef GMAutoSorterContainerRef.removeItemTarget WeapNVLaserRCW GMArmoryEnergyContRef GMAutoSorterContainerRef.removeItemTarget WeapNVGaussRifle GMArmoryEnergyContRef GMAutoSorterContainerRef.removeItemTarget WeapNVGaussRifleUnique GMArmoryEnergyContRef GMAutoSorterContainerRef.removeItemTarget WeapNVPlasmaCaster GMArmoryEnergyContRef GMAutoSorterContainerRef.removeItemTarget WeapNVGrenadeLauncher GMArmoryHeavyContRef GMAutoSorterContainerRef.removeItemTarget WeapNVGrenadeRifleUnique GMArmoryHeavyContRef GMAutoSorterContainerRef.removeItemTarget WeapNVGrenadeLauncher GMArmoryHeavyContRef GMAutoSorterContainerRef.removeItemTarget WeapNVDetonator GMArmoryHeavyContRef GMAutoSorterContainerRef.removeItemTarget WeapMissileLauncher GMArmoryHeavyContRef GMAutoSorterContainerRef.removeItemTarget WeapNVMissileLauncherUnique GMArmoryHeavyContRef GMAutoSorterContainerRef.removeItemTarget WeapFatman GMArmoryHeavyContRef GMAutoSorterContainerRef.removeItemTarget WeapNVTeslaCannonUnique GMArmoryHeavyContRef GMAutoSorterContainerRef.removeItemTarget WeapMinigun GMArmoryHeavyContRef GMAutoSorterContainerRef.removeItemTarget WeapNVIncinerator GMArmoryHeavyContRef GMAutoSorterContainerRef.removeItemTarget WeapNVMinigunUnique GMArmoryHeavyContRef GMAutoSorterContainerRef.removeItemTarget WeapNVGrenadeMachinegun GMArmoryHeavyContRef GMAutoSorterContainerRef.removeItemTarget WeapNVGrenadeMachinegunUnique GMArmoryHeavyContRef GMAutoSorterContainerRef.removeItemTarget WeapGatlingLaser GMArmoryHeavyContRef GMAutoSorterContainerRef.removeItemTarget WeapFlamer GMArmoryHeavyContRef GMAutoSorterContainerRef.removeItemTarget NVDLC01WeapAutomaticRifle GMArmoryNVDLC01ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC01WeapBearTrapFist GMArmoryNVDLC01ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC01WeapDemoCharge GMArmoryNVDLC01ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC01weapgasbomb GMArmoryNVDLC01ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC01WeapHolorifle GMArmoryNVDLC01ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC01WeapKnifeSpear GMArmoryNVDLC01ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC01WeapKnifeSpearClean GMArmoryNVDLC01ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC01WeapPolicePistol GMArmoryNVDLC01ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC01WeapSpaceAgeKnife GMArmoryNVDLC01ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC01WeapSpaceAgeKnifeClean GMArmoryNVDLC01ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC01WeapSpaceAgeKnifeHeated GMArmoryNVDLC01ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC01WeapThrowingKnifeSpear GMArmoryNVDLC01ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC02Weap45AutoPistol GMArmoryNVDLC02ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC02Weap45AutoPistolUnique GMArmoryNVDLC02ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC02Weap45AutoSubmachineGun GMArmoryNVDLC02ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC02WeapComplianceRegulator GMArmoryNVDLC02ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC02WeapFireBomb GMArmoryNVDLC02ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC02WeapPowerFistUnique GMArmoryNVDLC02ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC02WeapServiceRifleUnique GMArmoryNVDLC02ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC02WeapTomahawk GMArmoryNVDLC02ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC02WeapWarClub GMArmoryNVDLC02ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC03WeapAntenna GMArmoryNVDLC03ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC03WeapCyberdogGun GMArmoryNVDLC03ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC03WeapCyberdogGunFido GMArmoryNVDLC03ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC03WeapLaer GMArmoryNVDLC03ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC03WeapLaerUniqueElijah GMArmoryNVDLC03ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC03WeapProtonAxe GMArmoryNVDLC03ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC03WeapProtonAxeInversal GMArmoryNVDLC03ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC03WeapProtonAxeThrown GMArmoryNVDLC03ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC03WeapProtonAxeInversalThrown GMArmoryNVDLC03ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC03WeapSaturniteFist GMArmoryNVDLC03ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC03WeapSaturniteFistHeat GMArmoryNVDLC03ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC03WeapSonicGunGabrielsBark GMArmoryNVDLC03ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC03WeapSonicGunOperaSinger GMArmoryNVDLC03ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC03WeapSonicGunRevelation GMArmoryNVDLC03ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC03WeapSonicGunRoboScorpion GMArmoryNVDLC03ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC03WeapSonicGunTarantula GMArmoryNVDLC03ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC04WeapArcWelder GMArmoryNVDLC04ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC04WeapBladeWest GMArmoryNVDLC04ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC04WeapBowieKnife GMArmoryNVDLC04ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC04WeapBowieKnifeUnique GMArmoryNVDLC04ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC04WeapFlagpole GMArmoryNVDLC04ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC04weapflaregun GMArmoryNVDLC04ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC04WeapGrenadeFlashBang GMArmoryNVDLC04ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC04WeapGrenadeRifleBLUE GMArmoryNVDLC04ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC04WeapGrenadeRifleRED GMArmoryNVDLC04ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC04WeapIndustrialHand GMArmoryNVDLC04ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC04WeapNailGun GMArmoryNVDLC04ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC04WeapRedGlare GMArmoryNVDLC04ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC04WeapSatchelCharge GMArmoryNVDLC04ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC04WeapSMMG GMArmoryNVDLC04ContRef GMAutoSorterContainerRef.removeItemTarget NVDLC04WeapSonicDetonator GMArmoryNVDLC04ContRef GMAutoSorterContainerRef.removeItemTarget AmmoNVDLC04Nails GMArmoryNVDLC04ContRef GMAutoSorterContainerRef.removeItemTarget AmmoNVDLC04NailsCustom GMArmoryNVDLC04ContRef GMAutoSorterContainerRef.removeItemTarget AmmoNVDLC04Rocket GMArmoryNVDLC04ContRef GMAutoSorterContainerRef.removeItemTarget AmmoNVDLC04RocketHE GMArmoryNVDLC04ContRef GMAutoSorterContainerRef.removeItemTarget AmmoNVDLC04RocketIncendiary GMArmoryNVDLC04ContRef GMAutoSorterContainerRef.RemoveItemTarget WeapGrenadeFrag GMArmoryGrenadeContRef GMAutoSorterContainerRef.RemoveItemTarget WeapGrenadePlasma GMArmoryGrenadeContRef GMAutoSorterContainerRef.RemoveItemTarget WeapGrenadePulse GMArmoryGrenadeContRef GMAutoSorterContainerRef.RemoveItemTarget WeapNVGrenadeFragHoly GMArmoryGrenadeContRef GMAutoSorterContainerRef.RemoveItemTarget WeapNVGrenadeIncendiary GMArmoryGrenadeContRef GMAutoSorterContainerRef.RemoveItemTarget WeapNVGrenadeStun GMArmoryGrenadeContRef GMAutoSorterContainerRef.RemoveItemTarget WeapNVDynamite GMArmoryGrenadeContRef GMAutoSorterContainerRef.RemoveItemTarget WeapNVLongFuseDynamite GMArmoryGrenadeContRef GMAutoSorterContainerRef.RemoveItemTarget WeapNVTimeBomb GMArmoryGrenadeContRef GMAutoSorterContainerRef.RemoveItemTarget WeapMineBottlecap GMArmoryMineContRef GMAutoSorterContainerRef.RemoveItemTarget WeapMineFrag GMArmoryMineContRef GMAutoSorterContainerRef.RemoveItemTarget WeapMinePlasma GMArmoryMineContRef GMAutoSorterContainerRef.RemoveItemTarget WeapMinePulse GMArmoryMineContRef GMAutoSorterContainerRef.RemoveItemTarget WeapNVC4PlasticExplosive GMArmoryMineContRef GMAutoSorterContainerRef.RemoveItemTarget WeapNVMinePowderCharge GMArmoryMineContRef endif if (AutoSortAmmo == 1) GMAutoSorterContainerRef.RemoveItemTarget Ammo10mm GMArmoryAmmoContRefSmallArms GMAutoSorterContainerRef.RemoveItemTarget Ammo10mmHollowPoint GMArmoryAmmoContRefSmallArms GMAutoSorterContainerRef.RemoveItemTarget Ammo10mmJHPHandLoad GMArmoryAmmoContRefSmallArms GMAutoSorterContainerRef.RemoveItemTarget Ammo9mm GMArmoryAmmoContRefSmallArms GMAutoSorterContainerRef.RemoveItemTarget Ammo9mmHollowPoint GMArmoryAmmoContRefSmallArms GMAutoSorterContainerRef.RemoveItemTarget Ammo9mmP GMArmoryAmmoContRefSmallArms GMAutoSorterContainerRef.RemoveItemTarget Ammo357Magnum GMArmoryAmmoContRefSmallArms GMAutoSorterContainerRef.RemoveItemTarget Ammo357MagnumHollowPoint GMArmoryAmmoContRefSmallArms GMAutoSorterContainerRef.RemoveItemTarget Ammo357MagnumJFPHandLoad GMArmoryAmmoContRefSmallArms GMAutoSorterContainerRef.RemoveItemTarget Ammo22LR GMArmoryAmmoContRefSmallArms GMAutoSorterContainerRef.RemoveItemTarget Ammo22LRHollowPoint GMArmoryAmmoContRefSmallArms GMAutoSorterContainerRef.RemoveItemTarget Ammo22LRPlinking GMArmoryAmmoContRefSmallArms GMAutoSorterContainerRef.RemoveItemTarget Ammo127mm GMArmoryAmmoContRefSmallArms GMAutoSorterContainerRef.RemoveItemTarget Ammo127mmHollowPoint GMArmoryAmmoContRefSmallArms GMAutoSorterContainerRef.RemoveItemTarget Ammo44magnum GMArmoryAmmoContRefSmallArms GMAutoSorterContainerRef.RemoveItemTarget Ammo44MagnumHollowPoint GMArmoryAmmoContRefSmallArms GMAutoSorterContainerRef.RemoveItemTarget Ammo44MagnumSWCHandLoad GMArmoryAmmoContRefSmallArms GMAutoSorterContainerRef.RemoveItemTarget Ammo44Special GMArmoryAmmoContRefSmallArms GMAutoSorterContainerRef.RemoveItemTarget Ammo22LR GMArmoryAmmoContRefSmallArms GMAutoSorterContainerRef.RemoveItemTarget Ammo22LRHollowPoint GMArmoryAmmoContRefSmallArms GMAutoSorterContainerRef.RemoveItemTarget Ammo22LRPlinking GMArmoryAmmoContRefSmallArms GMAutoSorterContainerRef.RemoveItemTarget Ammo38Special GMArmoryAmmoContRefSmallArms GMAutoSorterContainerRef.RemoveItemTarget AmmoBB GMArmoryAmmoContRefSmallArms GMAutoSorterContainerRef.RemoveItemTarget AmmoNVDLC04Nails GMArmoryAmmoContRefSmallArms GMAutoSorterContainerRef.RemoveItemTarget AmmoNVDLC04NailsCustom GMArmoryAmmoContRefSmallArms GMAutoSorterContainerRef.RemoveItemTarget NVDLC02Ammo45Auto GMArmoryAmmoContRefSmallArms GMAutoSorterContainerRef.RemoveItemTarget NVDLC02Ammo45AutoHollowPoint GMArmoryAmmoContRefSmallArms GMAutoSorterContainerRef.RemoveItemTarget NVDLC02Ammo45AutoP GMArmoryAmmoContRefSmallArms GMAutoSorterContainerRef.RemoveItemTarget NVDLC02Ammo45Super GMArmoryAmmoContRefSmallArms GMAutoSorterContainerRef.RemoveItemTarget Ammo12Ga GMArmoryAmmoContRefBigArms GMAutoSorterContainerRef.RemoveItemTarget Ammo12GaBeanBag GMArmoryAmmoContRefBigArms GMAutoSorterContainerRef.RemoveItemTarget Ammo12GaCoinShot GMArmoryAmmoContRefBigArms GMAutoSorterContainerRef.RemoveItemTarget Ammo12GaMagnum GMArmoryAmmoContRefBigArms GMAutoSorterContainerRef.RemoveItemTarget Ammo12GaSlug GMArmoryAmmoContRefBigArms GMAutoSorterContainerRef.RemoveItemTarget Ammo308 GMArmoryAmmoContRefBigArms GMAutoSorterContainerRef.RemoveItemTarget Ammo308ArmorPiercing GMArmoryAmmoContRefBigArms GMAutoSorterContainerRef.RemoveItemTarget Ammo308HollowPoint GMArmoryAmmoContRefBigArms GMAutoSorterContainerRef.RemoveItemTarget Ammo308JSPHandLoad GMArmoryAmmoContRefBigArms GMAutoSorterContainerRef.RemoveItemTarget Ammo223 GMArmoryAmmoContRefBigArms GMAutoSorterContainerRef.RemoveItemTarget Ammo556mm GMArmoryAmmoContRefBigArms GMAutoSorterContainerRef.RemoveItemTarget Ammo556mmArmorPiercing GMArmoryAmmoContRefBigArms GMAutoSorterContainerRef.RemoveItemTarget Ammo556mmHollowPoint GMArmoryAmmoContRefBigArms GMAutoSorterContainerRef.RemoveItemTarget Ammo556mmSurplus GMArmoryAmmoContRefBigArms GMAutoSorterContainerRef.RemoveItemTarget Ammo20Ga GMArmoryAmmoContRefBigArms GMAutoSorterContainerRef.RemoveItemTarget Ammo20GaMagnum GMArmoryAmmoContRefBigArms GMAutoSorterContainerRef.RemoveItemTarget Ammo20GaSlug GMArmoryAmmoContRefBigArms GMAutoSorterContainerRef.RemoveItemTarget Ammo4570 GMArmoryAmmoContRefBigArms GMAutoSorterContainerRef.RemoveItemTarget Ammo4570HollowPoint GMArmoryAmmoContRefBigArms GMAutoSorterContainerRef.RemoveItemTarget Ammo4570SWCHandLoad GMArmoryAmmoContRefBigArms GMAutoSorterContainerRef.RemoveItemTarget Ammo50MG GMArmoryAmmoContRefBigArms GMAutoSorterContainerRef.RemoveItemTarget Ammo50MGArmorPiercing GMArmoryAmmoContRefBigArms GMAutoSorterContainerRef.RemoveItemTarget Ammo50MGHandLoad GMArmoryAmmoContRefBigArms GMAutoSorterContainerRef.RemoveItemTarget Ammo50MGIncendiary GMArmoryAmmoContRefBigArms GMAutoSorterContainerRef.RemoveItemTarget AmmoAlienPowerCell GMArmoryAmmoContRefEnergy GMAutoSorterContainerRef.RemoveItemTarget AmmoSmallEnergyCell GMArmoryAmmoContRefEnergy GMAutoSorterContainerRef.RemoveItemTarget AmmoSmallEnergyCellMaxCharge GMArmoryAmmoContRefEnergy GMAutoSorterContainerRef.RemoveItemTarget AmmoSmallEnergyCellOverCharge GMArmoryAmmoContRefEnergy GMAutoSorterContainerRef.RemoveItemTarget AmmoSmallEnergyCellBulk GMArmoryAmmoContRefEnergy GMAutoSorterContainerRef.RemoveItemTarget AmmoMicroFusionCell GMArmoryAmmoContRefEnergy GMAutoSorterContainerRef.RemoveItemTarget AmmoMicroFusionCellMaxCharge GMArmoryAmmoContRefEnergy GMAutoSorterContainerRef.RemoveItemTarget AmmoMicroFusionCellOverCharge GMArmoryAmmoContRefEnergy GMAutoSorterContainerRef.RemoveItemTarget AmmoMicroFusionCellBulk GMArmoryAmmoContRefEnergy GMAutoSorterContainerRef.RemoveItemTarget AmmoElectronChargePack GMArmoryAmmoContRefEnergy GMAutoSorterContainerRef.RemoveItemTarget AmmoElectronChargePackMaxCharge GMArmoryAmmoContRefEnergy GMAutoSorterContainerRef.RemoveItemTarget AmmoElectronChargePackOverCharge GMArmoryAmmoContRefEnergy GMAutoSorterContainerRef.RemoveItemTarget AmmoElectronChargePackBulk GMArmoryAmmoContRefEnergy GMAutoSorterContainerRef.RemoveItemTarget AmmoMesmetronPowerCell GMArmoryAmmoContRefEnergy GMAutoSorterContainerRef.RemoveItemTarget AmmoMicroBreeder GMArmoryAmmoContRefEnergy GMAutoSorterContainerRef.RemoveItemTarget AmmoFlamerFuel GMArmoryAmmoContRefHeavy GMAutoSorterContainerRef.RemoveItemTarget AmmoFlamerFuelHomemade GMArmoryAmmoContRefHeavy GMAutoSorterContainerRef.RemoveItemTarget Ammo5mm GMArmoryAmmoContRefHeavy GMAutoSorterContainerRef.RemoveItemTarget Ammo5mmHollowPoint GMArmoryAmmoContRefHeavy GMAutoSorterContainerRef.RemoveItemTarget Ammo5mmArmorPiercing GMArmoryAmmoContRefHeavy GMAutoSorterContainerRef.RemoveItemTarget Ammo5mmSurplus GMArmoryAmmoContRefHeavy GMAutoSorterContainerRef.RemoveItemTarget AmmoFatMans GMArmoryAmmoContRefHeavy GMAutoSorterContainerRef.RemoveItemTarget AmmoMissile GMArmoryAmmoContRefHeavy GMAutoSorterContainerRef.RemoveItemTarget AmmoMissileHighExplosive GMArmoryAmmoContRefHeavy GMAutoSorterContainerRef.RemoveItemTarget AmmoMissileHighVelocity GMArmoryAmmoContRefHeavy GMAutoSorterContainerRef.RemoveItemTarget Ammo40mmGrenade GMArmoryAmmoContRefHeavy GMAutoSorterContainerRef.RemoveItemTarget Ammo40mmGrenadeIncendiary GMArmoryAmmoContRefHeavy GMAutoSorterContainerRef.RemoveItemTarget Ammo25mmGrenade GMArmoryAmmoContRefHeavy GMAutoSorterContainerRef.RemoveItemTarget Ammo25mmGrenadeHighExplosive GMArmoryAmmoContRefHeavy GMAutoSorterContainerRef.RemoveItemTarget AmmoNVDLC04Rocket GMArmoryAmmoContRefHeavy GMAutoSorterContainerRef.RemoveItemTarget AmmoNVDLC04RocketHE GMArmoryAmmoContRefHeavy GMAutoSorterContainerRef.RemoveItemTarget AmmoNVDLC04RocketIncendiary GMArmoryAmmoContRefHeavy endif set AutoSorting to 3 endif if (AutoSorting == 3) ;This section returns any items to the player that were in the exempt catagories GMAutoSorterContainerRef.RemoveAllItems player 1 1 set AutoSorting to 4 endif if (AutoSorting == 4) ;This section rebinds the player's hotkeys for extra convenience setHotkeyItem 1 StoredHotkeyItem1 setHotkeyItem 3 StoredHotkeyItem3 setHotkeyItem 4 StoredHotkeyItem4 setHotkeyItem 5 StoredHotkeyItem5 setHotkeyItem 6 StoredHotkeyItem6 setHotkeyItem 7 StoredHotkeyItem7 setHotkeyItem 8 StoredHotkeyItem8 set AutoSorting to 0 endif if (StartUp == 0) ;This is just a start up section to set certain variable to new default states set AutoSortStimpaks to 1 set StartUp to 1 endifEnd Edited January 23, 2018 by General Gred Link to comment Share on other sites More sharing options...
EPDGaffney Posted January 23, 2018 Share Posted January 23, 2018 I'll look at this again later but my initial response is that1. you should make a separate quest script that gets started and ended based on when the sorting is actually happening, and2. are you using every item in the game in your script or something? If 2 is affirmative, there are definitely better ways. Not only is this somewhat inefficient and more work for you, it wouldn't account for mod-added items. Not to mention, it's possible your ghost item bug is in there somewhere. I'll look again later. Need to go and cook now. Link to comment Share on other sites More sharing options...
GeneralGred Posted January 24, 2018 Author Share Posted January 24, 2018 (edited) 1) I don't want to go into detail so far from completion, but my mod is rather advanced. The house has several complicated sub-systems that run off quest scripts and so I'd rather not add more quest scripts if I can help it to keep the load down. 2) Yes, when finished it will have every playable, non-quest item in the game in it. The reason I don't use functions like RemoveAllTypedItems is scope, my containers around the house contain less items then their appropriate categories (eg: Indigestibles). However with that in mind I'll work on coverting a couple containers to use custom FormLists instead of specific item calling to test out. Edited January 24, 2018 by General Gred Link to comment Share on other sites More sharing options...
GeneralGred Posted January 24, 2018 Author Share Posted January 24, 2018 (edited) Ok I might have hit the golden script for this. Note this is the specific system, I haven't gotten to the master system yet, but using FormLists with the script you gave me I found what seems to be an airtight script that remove items that are only in the FormList and not equipped, completely ignoring the other items. So far this seems to have taken out the ghost bug and will continue to covert the rest of the containers as well as the master system. scn GMArmoryArmorContFactionsScriptshort EquipDetectionref PlayerItemBegin onActivate if (player.IsSneaking == 0) activate elseif (player.IsSneaking == 1) playSound DRSTraderClose ForEach PlayerItem <- player if (PlayerItem.IsEquipped == 0) && (PlayerItem.IsInList GMAutoSortListArmorFactionList == 1) PlayerItem.RemoveMeIRAlt 0 0 GMAutoSorterContainerRef endIf Loop set EquipDetection to 1 endifEndBegin Gamemode if (EquipDetection == 1) GMAutoSorterContainerRef.removeItemTarget GMAutoSortListArmorFactionList GMArmoryArmorContFactionsRef set EquipDetection to 0 endifEnd Edited January 24, 2018 by General Gred Link to comment Share on other sites More sharing options...
EPDGaffney Posted January 24, 2018 Share Posted January 24, 2018 (edited) I'm glad you have something that seems to work. Note that && and || expressions can sometimes not behave predictably, so whilst they're more convenient and efficient, should you run into problems with something not 'catching' one of the conditions, try nesting another If statement instead. It should work, but just in case, now you're aware of the possibility. About what I said earlier:1. If your GameMode block is running all the time, checking all of this, it's definitely not as good for the processing as using a quest that gets turned on and off only when needed. If you prefer to do it the way you are, I've looked at it again and it's not as bad as I had initially thought, as it doesn't check all that stuff all the time (sorry, it's a bit hard to read with every single item in it). But if you wanted to be more efficient, you'd move all that GameModestuff to a separate quest script and start that quest instead of setting the variable; then instead of setting AutoSorting to 0, you'd simply turn off the quest. It's not the end of the world if you leave it like this, though. If you notice any unusual slowdown in your game, then I would have a look, and otherwise leave it at your discretion. 2. This is really not a good idea, sorry to say. It basically stops any modded items being usable in your mod, and people that are using your mod are probably using other mods. Perhaps the crux of it is that I don't understand what you mean by this: The reason I don't use functions like RemoveAllTypedItems is scope, my containers around the house contain less items then their appropriate categories (eg: Indigestibles). Are you saying you're splitting things up into smaller categories than the Pip-Boy does? You can have a look at PushTheWinButton's Universal Item Sorter for some ideas in that case. I admit that this would make things more complex, but it would make you a better modder and make your mod clean and simply superior as well. Personally, I would use a combination of the two methods if I really didn't want to put in the extra work. Hope you don't take anything I said the wrong way. I'll help you best I can regardless of your approach. Edit: So, experimenting with something earlier, I hit the character limit for one line of script in the GECK, researched it, and found that if what I read is correct, your very long script is well over that limit. I don't really know how that will manifest itself if correct, but you should be aware of it. Edited January 24, 2018 by EPDGaffney Link to comment Share on other sites More sharing options...
GeneralGred Posted January 24, 2018 Author Share Posted January 24, 2018 First off I'm not taking anything the wrong way, I'm enjoying the feedback here as I've learned a few new things, I've been modding these games for almost 10 years now and I'm completely self taught. So any bit of info I can get helps, and you've got me intrigued with your comment on Gamemode. I do my best to make sure all my scripts are "sealed", with no infinite loops, or memory leaks. I see your point with using quests to activate/deactivate scripts entirely and I'll look into maybe doing that for my auto-sorting. So to be clear about the categories for sorting, yes I'm splitting them up into smaller categories then the Pip-Boy, for instance my armor containers have 5 separate categories: Heavy. Medium, Light, DLC, and Faction armor. Same for others too like I have 2 seperate containers for Medicine and Drugs, Food and Drinks. However the scripts above are obsolete as with the new knowledge I've gained here I'll be switching entirely to FormList for Auto-Sorting. Now I'm interested in your thoughts on the Gamemode scripting, how much performance do you think these scripts take while not active and only running the first check? Link to comment Share on other sites More sharing options...
dubiousintent Posted January 24, 2018 Share Posted January 24, 2018 Re: Performance and GameMode blocks. Came across this last night. (While old material, core concepts tend to be carried forward in the various versions of the same game engine. Newer game wikis assume you are already familiar with the contents of the older ones.) You may also find this thread helpful; though less focused. -Dubious- Link to comment Share on other sites More sharing options...
EPDGaffney Posted January 24, 2018 Share Posted January 24, 2018 You really can still make arrays at run-time that understand these categories, using I believe JIP functions. Meaning, I don't think it was possible till relatively recently, but it is now. From what I can tell, things have actually improved a lot since the Oblivion days, but GameMode stuff does still add up, so you should avoid it when you can unless it really is a giant pain and the impact isn't that great anyway. The truth is, I've never had a straight answer on this, so whilst I think your script is probably all right, as it only runs the one check each frame, proceeding to the others when not much else is happening, the best way to do it is indeed only running these checks when it's needed. Sorry, Dubious, but I didn't find the second link that useful. Link to comment Share on other sites More sharing options...
Mktavish Posted January 24, 2018 Share Posted January 24, 2018 (edited) The Idea about putting your gamemode block on a quest script was a good idea , to limit it from running all the time only stop gated from your on/off int variable. Err that was mentioned this thread by EPDGaffney wasn't it ??? But anyways ... your auto sort activator script with "Begin OnActivate" .... would have a command of "StartQuest" and even set a variable in the Quest script.Then the Quest script has a command of "StopQuest" and reset the variables , when it's done sorting. That way you can get as process intensive as you want ... since standing in the house will be fairly low on that. Doh! ... I see that was just mentioned. Sorry to drum on it ... but I'll leave it up for re-iteration value. Add Edit : Oh hey I just noticed my post count ... it's 999 ... so I thought I would use this post to edit instead of pushing it to the 4 digit count ... hehe. Think I'll just leave it there for awhile ;) Edited January 25, 2018 by Mktavish Link to comment Share on other sites More sharing options...
Recommended Posts