kylez2006 Posted October 24, 2021 Share Posted October 24, 2021 (edited) I have modified the fallout 3 auto looter to be able to pickup everything but i am getting some weird edge cases i could use some help with. For example It does not want to pick up unique weapons or weapons on the field despite picking up misc items on the field no problem. I also cannot get it to pickup Pitt Steel Ingots in the field again despite the misc items all being picked up. I will include the code. this part for the most part has not been modified. I added all items to the individual form lists. scn ALEnhS ref ActiRref ActorRref AlchRref AmmoRref BookRref CMNYRref ConsRref ContRref CreaRref AMMOBASEref KeyRref LootRref MscRref NoteRref NPCRref OCeref OReref WeapRfloat WeapWfloat WeapV int ItemsCountint AmmoCount float timer short Seenshort DoOnceshort InvCountshort InvPosshort InvT0short InvT1short XChemshort XAlchCshort XDrinkshort XAlchshort XFoodshort XHungershort XMagshort XAlchMshort XThirstshort XVenoshort XEWshort XExplshort XGunshort XAmmoMshort XBookshort XEPlaceshort XEThrowshort XCMNYshort XMscshort XMscEWshort XMscExplshort XMscGunshort XMscCshort XMscQshort OCEvlshort OREvlshort TLootshort TSteal Begin GameModeif TLoot != IsKeyPressed 38set TLoot to IsKeyPressed 38if TLoot && ALEnhGLoot == 0set ALEnhGLoot to 1set ALEnhGSteal to 1ShowMessage ALEnhMLootOnelseif TLoot && ALEnhGLootset ALEnhGLoot to 0set ALEnhGSteal to 0ShowMessage ALEnhMLootOffendifendifif (Player.GetInCell MegatonPlayerHouse || Player.GetInCell Tenpenny03Player) && ALEnhGLootset ALEnhGLoot to 0set ALEnhGSteal to 0ShowMessage ALEnhMLootOffendifif DoOnce == 0set DoOnce to 1set XAlch to 1set XMag to 1set XBook to 1set XCMNY to 1set XMsc to 1set XGun to 1set XFood to 1endif if ALEnhGLoot set ActorR to GetFirstRef 200 1 0set Seen to 0Label 200if IsFormValid ActorRif ActorR.GetDead == 0 && ActorR.GetPlayerTeammate == 0if ActorR.GetDetected Player == 1set Seen to 1endifendifset ActorR to Pencil01set ActorR to GetNextRefGoto 200endif set BookR to GetFirstRef 25 1 0Label 25if IsFormValid BookRif (Player.GetDistance BookR < 1000) && (BookR.GetDisabled == 0)set OREvl to 0set OCEvl to 0set ORe to BookR.GetOwnerset OCe to BookR.GetParentCellOwnerif ORe && (ORe != Player.GetBaseObject) && (ORe != PlayerFaction)if GetType ORe == 8set OREvl to (ListGetFormIndex ALEnhLEvilFact ORe >= 0)endifendifif OCe && (OCe != Player.GetBaseObject) && (OCe != PlayerFaction)if GetType OCe == 8set OCEvl to (ListGetFormIndex ALEnhLEvilFact OCe >= 0)endifendifif ((ORe == 0) && (OCe == 0)) || (ORe == Player.GetBaseObject) || (ORe == PlayerFaction) || (OCe == Player.GetBaseObject) || (OCe == PlayerFaction) || Seen == 0 if BookR.IsInList ALEnhLBookBookR.Activate Player 1endifendifendifset BookR to Pencil01set BookR to GetNextRefGoto 25endif set ContR to GetFirstRef 27 1 0Label 27if IsFormValid ContRset InvT0 to ContR.GetNumItemsif (Player.GetDistance ContR < 1000) && (ContR.GetDisabled == 0) && (InvT0 >0)set OREvl to 0set OCEvl to 0set ORe to ContR.GetOwnerset OCe to ContR.GetParentCellOwnerif ORe && (ORe != Player.GetBaseObject) && (ORe != PlayerFaction)if GetType ORe == 8set OREvl to (ListGetFormIndex ALEnhLEvilFact ORe >= 0)endifendifif OCe && (OCe != Player.GetBaseObject) && (OCe != PlayerFaction)if GetType OCe == 8set OCEvl to (ListGetFormIndex ALEnhLEvilFact OCe >= 0)endifendifif (ContR.GetLocked == 1) && ALEnhGLock && ContR.GetLockLevel <= (GetActorValue Lockpick) && ContR.GetLockLevel < 255if ((ORe == 0) && (OCe == 0)) || (ORe == Player.GetBaseObject) || (ORe == PlayerFaction) || (OCe == Player.GetBaseObject) || (OCe == PlayerFaction) || ((Seen == 0) && (OREvl || OCEvl || ALEnhGSteal))ContR.Activate Player 1endifendifif ContR.GetLocked == 0 if ((ORe == 0) && (OCe == 0)) || (ORe == Player.GetBaseObject) || (ORe == PlayerFaction) || (OCe == Player.GetBaseObject) || (OCe == PlayerFaction) || ((Seen == 0) && (OREvl || OCEvl || ALEnhGSteal)) set InvPos to 0Label 136set InvCount to ContR.GetNumItemsif InvPos < InvCountset LootR to ContR.GetInventoryObject InvPos if ListGetFormIndex ALEnhLBook LootR >= 0 set XBook to ListGetFormIndex ALEnhLBook LootRendif if ALEnhGChemset XChem to ListGetFormIndex ALEnhLChem LootRelseset XChem to -1endifif ALEnhGAlchCset XAlchC to ListGetFormIndex ALEnhLAlchC LootRelseset XAlchC to -1endifif ALEnhGDrinkset XDrink to ListGetFormIndex ALEnhLDrink LootRelseset XDrink to -1endifset XAlch to ListGetFormIndex ALEnhLAlch LootRif ALEnhGFoodset XFood to ListGetFormIndex ALEnhLFood LootRelseset XFood to -1endifset XMag to ListGetFormIndex ALEnhLMag LootRif ALEnhGAlchMset XAlchM to ListGetFormIndex ALEnhLAlchM LootRelseset XAlchM to -1endifif ALEnhGVenomset XVeno to ListGetFormIndex ALEnhLVenom LootRelseset XVeno to -1endifif ALEnhGEWset XEW to ListGetFormIndex ALEnhLEW LootRset XMscEW to ListGetFormIndex ALEnhLMiscEW LootRelseset XEW to -1set XMscEW to -1endifif ALEnhGExplset XExpl to ListGetFormIndex ALEnhLExpl LootRset XMscExpl to ListGetFormIndex ALEnhLMiscExpl LootRset XEPlace to ListGetFormIndex ALEnhLExplPlace LootRset XEThrow to ListGetFormIndex ALEnhLExplThrow LootRelseset XExpl to -1set XMscExpl to -1set XEPlace to -1set XEThrow to -1endifif ALEnhGGunset XGun to ListGetFormIndex ALEnhLGun LootRset XMscGun to ListGetFormIndex ALEnhLMiscGun LootRelseset XGun to -1set XMscGun to -1endifif ALEnhGAmmoMset XAmmoM to ListGetFormIndex ALEnhLAmmoM LootRelseset XAmmoM to -1endifset XBook to ListGetFormIndex ALEnhLBook LootRset XCMNY to ListGetFormIndex ALEnhLCMNY LootRset XMsc to ListGetFormIndex ALEnhLMisc LootRif ALEnhGMiscCset XMscC to ListGetFormIndex ALEnhLMiscC LootRelseset XMscC to -1endifif ALEnhGMiscQset XMscQ to ListGetFormIndex ALEnhLMiscQ LootRelseset XMscQ to -1endif if (XChem >= 0) || (GetType LootR == 46) || (GetType LootR == 49) || (XAlchC >= 0) || (XDrink >= 0) || (XAlch >= 0) || (XFood >= 0) || (XMag >= 0) || (XAlchM >= 0) || (XVeno >= 0) || (XEW >= 0) || (XExpl >= 0) || (XGun >= 0) || (XAmmoM >= 0) || (XBook >= 0) || (XCMNY >= 0) || (XMsc >= 0) || (XMscEW >= 0) || (XMscExpl >= 0) || (XMscGun >= 0) || (XMscC >= 0) || (XMscQ >= 0) || (XEPlace >= 0) || (XEThrow >= 0)set ItemsCount to ContR.GetItemCount LootRPlayer.AddItem LootR ItemsCountContR.RemoveItem LootR ItemsCount elseset InvPos to InvPos + 1endifGoto 136endifset InvT1 to ContR.GetNumItemsif ((ORe != 0) || (OCe != 0)) && (ORe != Player.GetBaseObject) && (ORe != PlayerFaction) && (OCe != Player.GetBaseObject) && (OCe != PlayerFaction) && (OREvl == 0) && (OCEvl == 0) && (InvT1 < InvT0) && (ContR.GetDefaultOpen == 0)RewardKarma -5endif endifset InvT1 to ContR.GetNumItemsif ((ORe != 0) || (OCe != 0)) && (ORe != Player.GetBaseObject) && (ORe != PlayerFaction) && (OCe != Player.GetBaseObject) && (OCe != PlayerFaction) && (OREvl == 0) && (OCEvl == 0) && (InvT1 < InvT0) && (ContR.GetDefaultOpen == 0)RewardKarma -5endif endifendifset ContR to Pencil01set ContR to GetNextRefGoto 27endif set MscR to GetFirstRef 31 1 0Label 31if IsFormValid MscRif (Player.GetDistance MscR < 1000) && (MscR.GetDisabled == 0)set OREvl to 0set OCEvl to 0set ORe to MscR.GetOwnerset OCe to MscR.GetParentCellOwnerif ORe && (ORe != Player.GetBaseObject) && (ORe != PlayerFaction)if GetType ORe == 8set OREvl to (ListGetFormIndex ALEnhLEvilFact ORe >= 0)endifendifif OCe && (OCe != Player.GetBaseObject) && (OCe != PlayerFaction)if GetType OCe == 8set OCEvl to (ListGetFormIndex ALEnhLEvilFact OCe >= 0)endifendifif ((ORe == 0) && (OCe == 0)) || (ORe == Player.GetBaseObject) || (ORe == PlayerFaction) || (OCe == Player.GetBaseObject) || (OCe == PlayerFaction) || ((Seen == 0) && (OREvl || OCEvl || ALEnhGSteal))if MscR.IsInList ALEnhLMiscMscR.Activate Player 1endifif ALEnhGEWif MscR.IsInList ALEnhLMiscEWMscR.Activate Player 1endifendifif ALEnhGExplif MscR.IsInList ALEnhLMiscExplMscR.Activate Player 1endifendifif ALEnhGGunif MscR.IsInList ALEnhLMiscGunMscR.Activate Player 1endifendifif ALEnhGMiscCif MscR.IsInList ALEnhLMiscCMscR.Activate Player 1endifendifif ALEnhGMiscQif MscR.IsInList ALEnhLMiscQMscR.Activate Player 1endifendifendifendifset MscR to Pencil01set MscR to GetNextRefGoto 31endif set AmmoR to GetFirstRef 41 1 0Label 41if IsFormValid AmmoRif (Player.GetDistance AmmoR < 1000) && (AmmoR.GetDisabled == 0)set OREvl to 0set OCEvl to 0set ORe to AmmoR.GetOwnerset OCe to AmmoR.GetParentCellOwnerif ORe && (ORe != Player.GetBaseObject) && (ORe != PlayerFaction)if GetType ORe == 8set OREvl to (ListGetFormIndex ALEnhLEvilFact ORe >= 0)endifendifif OCe && (OCe != Player.GetBaseObject) && (OCe != PlayerFaction)if GetType OCe == 8set OCEvl to (ListGetFormIndex ALEnhLEvilFact OCe >= 0)endifendifif ((ORe == 0) && (OCe == 0)) || (ORe == Player.GetBaseObject) || (ORe == PlayerFaction) || (OCe == Player.GetBaseObject) || (OCe == PlayerFaction) || ((Seen == 0) && (OREvl || OCEvl || ALEnhGSteal))if ALEnhGEWif AmmoR.IsInList ALEnhLEW AmmoR.Activate Player 1 endifendifif ALEnhGExplif AmmoR.IsInList ALEnhLExplAmmoR.Activate Player 1endifendifif ALEnhGGunif AmmoR.IsInList ALEnhLGunAmmoR.Activate Player 1endifendifif ALEnhGAmmoMif AmmoR.IsInList ALEnhLAmmoM set AmmoCount to AmmoR.GetRefCountset AMMOBASE to AmmoR.GetBaseObjectplayer.additem AMMOBASE AmmoCount AmmoR.Activate Player 1 endifendifendifendifset AmmoR to Pencil01set AmmoR to GetNextRefGoto 41endif set NPCR to GetFirstRef 42 1 0Label 42if IsFormValid NPCRif (Player.GetDistance NPCR < 1000) && (NPCR.GetDisabled == 0) && (NPCR.GetDead == 1) set InvPos to 0Label 210set InvCount to NPCR.GetNumItemsif InvPos < InvCountset LootR to NPCR.GetInventoryObject InvPosif ALEnhGChemset XChem to ListGetFormIndex ALEnhLChem LootRelseset XChem to -1endifif ALEnhGAlchCset XAlchC to ListGetFormIndex ALEnhLAlchC LootRelseset XAlchC to -1endifif ALEnhGDrinkset XDrink to ListGetFormIndex ALEnhLDrink LootRelseset XDrink to -1endifset XAlch to ListGetFormIndex ALEnhLAlch LootRif ALEnhGFoodset XFood to ListGetFormIndex ALEnhLFood LootRelseset XFood to -1endifset XMag to ListGetFormIndex ALEnhLMag LootRif ALEnhGAlchMset XAlchM to ListGetFormIndex ALEnhLAlchM LootRelseset XAlchM to -1endifif ALEnhGVenomset XVeno to ListGetFormIndex ALEnhLVenom LootRelseset XVeno to -1endifif ALEnhGEWset XEW to ListGetFormIndex ALEnhLEW LootRset XMscEW to ListGetFormIndex ALEnhLMiscEW LootRelseset XEW to -1set XMscEW to -1endifif ALEnhGExplset XExpl to ListGetFormIndex ALEnhLExpl LootRset XMscExpl to ListGetFormIndex ALEnhLMiscExpl LootRset XEPlace to ListGetFormIndex ALEnhLExplPlace LootRset XEThrow to ListGetFormIndex ALEnhLExplThrow LootRelseset XExpl to -1set XMscExpl to -1set XEPlace to -1set XEThrow to -1endifif ALEnhGGunset XGun to ListGetFormIndex ALEnhLGun LootRset XMscGun to ListGetFormIndex ALEnhLMiscGun LootRelseset XGun to -1set XMscGun to -1endifif ALEnhGAmmoMset XAmmoM to ListGetFormIndex ALEnhLAmmoM LootRelseset XAmmoM to -1endifset XBook to ListGetFormIndex ALEnhLBook LootRset XCMNY to ListGetFormIndex ALEnhLCMNY LootRset XMsc to ListGetFormIndex ALEnhLMisc LootRif ALEnhGMiscCset XMscC to ListGetFormIndex ALEnhLMiscC LootRelseset XMscC to -1endifif ALEnhGMiscQset XMscQ to ListGetFormIndex ALEnhLMiscQ LootRelseset XMscQ to -1endif if (XChem >= 0) || (GetType LootR == 46) || (GetType LootR == 49)|| (XAlchC >= 0) || (XDrink >= 0) || (XAlch >= 0) || (XFood >= 0) || (XMag >= 0) || (XAlchM >= 0) || (XVeno >= 0) || (XEW >= 0) || (XExpl >= 0) || (XGun >= 0) || (XAmmoM >= 0) || (XBook >= 0) || (XCMNY >= 0) || (XMsc >= 0) || (XMscEW >= 0) || (XMscExpl >= 0) || (XMscGun >= 0) || (XMscC >= 0) || (XMscQ >= 0) || (XEPlace >= 0) || (XEThrow >= 0)set ItemsCount to NPCR.GetItemCount LootRPlayer.AddItem LootR ItemsCountNPCR.RemoveItem LootR ItemsCount elseset InvPos to InvPos + 1endifGoto 210endifendifset NPCR to Pencil01set NPCR to GetNextRefGoto 42endif set CreaR to GetFirstRef 43 1 0Label 43if IsFormValid CreaRif (Player.GetDistance CreaR < 1000) && (CreaR.GetDisabled == 0) && (CreaR.GetDead == 1) set InvPos to 0Label 215set InvCount to CreaR.GetNumItemsif InvPos < InvCountset LootR to CreaR.GetInventoryObject InvPosif ALEnhGChemset XChem to ListGetFormIndex ALEnhLChem LootRelseset XChem to -1endifif ALEnhGAlchCset XAlchC to ListGetFormIndex ALEnhLAlchC LootRelseset XAlchC to -1endifif ALEnhGDrinkset XDrink to ListGetFormIndex ALEnhLDrink LootRelseset XDrink to -1endifset XAlch to ListGetFormIndex ALEnhLAlch LootR set XMag to ListGetFormIndex ALEnhLMag LootRif ALEnhGAlchMset XAlchM to ListGetFormIndex ALEnhLAlchM LootRelseset XAlchM to -1endif if ALEnhGEWset XEW to ListGetFormIndex ALEnhLEW LootRset XMscEW to ListGetFormIndex ALEnhLMiscEW LootRelseset XEW to -1set XMscEW to -1endifif ALEnhGExplset XExpl to ListGetFormIndex ALEnhLExpl LootRset XMscExpl to ListGetFormIndex ALEnhLMiscExpl LootRset XEPlace to ListGetFormIndex ALEnhLExplPlace LootRset XEThrow to ListGetFormIndex ALEnhLExplThrow LootRelseset XExpl to -1set XMscExpl to -1set XEPlace to -1set XEThrow to -1endifif ALEnhGGunset XGun to ListGetFormIndex ALEnhLGun LootRset XMscGun to ListGetFormIndex ALEnhLMiscGun LootRelseset XGun to -1set XMscGun to -1endifif ALEnhGAmmoMset XAmmoM to ListGetFormIndex ALEnhLAmmoM LootRelseset XAmmoM to -1endifset XBook to ListGetFormIndex ALEnhLBook LootRset XCMNY to ListGetFormIndex ALEnhLCMNY LootRset XMsc to ListGetFormIndex ALEnhLMisc LootRif ALEnhGMiscCset XMscC to ListGetFormIndex ALEnhLMiscC LootRelseset XMscC to -1endifif ALEnhGMiscQset XMscQ to ListGetFormIndex ALEnhLMiscQ LootRelseset XMscQ to -1endif if (XChem >= 0) || (GetType LootR == 46) || (GetType LootR == 49) || (XAlchC >= 0) || (XDrink >= 0) || (XAlch >= 0) || (XFood >= 0) || (XMag >= 0) || (XAlchM >= 0) || (XVeno >= 0) || (XEW >= 0) || (XExpl >= 0) || (XGun >= 0) || (XAmmoM >= 0) || (XBook >= 0) || (XCMNY >= 0) || (XMsc >= 0) || (XMscEW >= 0) || (XMscExpl >= 0) || (XMscGun >= 0) || (XMscC >= 0) || (XMscQ >= 0) || (XEPlace >= 0) || (XEThrow >= 0)set ItemsCount to CreaR.GetItemCount LootRPlayer.AddItem LootR ItemsCount CreaR.RemoveItem LootR ItemsCount elseset InvPos to InvPos + 1endifGoto 215endifendifset CreaR to Pencil01set CreaR to GetNextRefGoto 43endif if ALEnhGKeyset KeyR to GetFirstRef 46 1 0Label 46if IsFormValid KeyRif (Player.GetDistance KeyR < 1000) && (KeyR.GetDisabled == 0)set OREvl to 0set OCEvl to 0set ORe to KeyR.GetOwnerset OCe to KeyR.GetParentCellOwnerif ORe && (ORe != Player.GetBaseObject) && (ORe != PlayerFaction)if GetType ORe == 8set OREvl to (ListGetFormIndex ALEnhLEvilFact ORe >= 0)endifendifif OCe && (OCe != Player.GetBaseObject) && (OCe != PlayerFaction)if GetType OCe == 8set OCEvl to (ListGetFormIndex ALEnhLEvilFact OCe >= 0)endifendifif ((ORe == 0) && (OCe == 0)) || (ORe == Player.GetBaseObject) || (ORe == PlayerFaction) || (OCe == Player.GetBaseObject) || (OCe == PlayerFaction) || ((Seen == 0) && (OREvl || OCEvl || ALEnhGSteal))KeyR.Activate Player 1endifendifset KeyR to Pencil01set KeyR to GetNextRefGoto 46endifendif set AlchR to GetFirstRef 47 1 0Label 47if IsFormValid AlchRif (Player.GetDistance AlchR < 1000) && (AlchR.GetDisabled == 0)set OREvl to 0set OCEvl to 0set ORe to AlchR.GetOwnerset OCe to AlchR.GetParentCellOwnerif ORe && (ORe != Player.GetBaseObject) && (ORe != PlayerFaction)if GetType ORe == 8set OREvl to (ListGetFormIndex ALEnhLEvilFact ORe >= 0)endifendifif OCe && (OCe != Player.GetBaseObject) && (OCe != PlayerFaction)if GetType OCe == 8set OCEvl to (ListGetFormIndex ALEnhLEvilFact OCe >= 0)endifendifif ((ORe == 0) && (OCe == 0)) || (ORe == Player.GetBaseObject) || (ORe == PlayerFaction) || (OCe == Player.GetBaseObject) || (OCe == PlayerFaction) || ((Seen == 0) && (OREvl || OCEvl || ALEnhGSteal))if ALEnhGChemif AlchR.IsInList ALEnhLChemAlchR.Activate Player 1endifendifif ALEnhGAlchCif AlchR.IsInList ALEnhLAlchCAlchR.Activate Player 1endifendifif ALEnhGDrinkif AlchR.IsInList ALEnhLDrinkAlchR.Activate Player 1endifendifif AlchR.IsInList ALEnhLAlchAlchR.Activate Player 1endifif ALEnhGFoodif AlchR.IsInList ALEnhLFoodAlchR.Activate Player 1endifendif if ALEnhGAlchMif AlchR.IsInList ALEnhLAlchMAlchR.Activate Player 1endifendif endifendifset AlchR to Pencil01set AlchR to GetNextRefGoto 47endif if ALEnhGNoteset NoteR to GetFirstRef 49 1 0Label 49if IsFormValid NoteRif (Player.GetDistance NoteR < 1000) && (NoteR.GetDisabled == 0)set OREvl to 0set OCEvl to 0set ORe to NoteR.GetOwnerset OCe to NoteR.GetParentCellOwnerif ORe && (ORe != Player.GetBaseObject) && (ORe != PlayerFaction)if GetType ORe == 8set OREvl to (ListGetFormIndex ALEnhLEvilFact ORe >= 0)endifendifif OCe && (OCe != Player.GetBaseObject) && (OCe != PlayerFaction)if GetType OCe == 8set OCEvl to (ListGetFormIndex ALEnhLEvilFact OCe >= 0)endifendifif ((ORe == 0) && (OCe == 0)) || (ORe == Player.GetBaseObject) || (ORe == PlayerFaction) || (OCe == Player.GetBaseObject) || (OCe == PlayerFaction) || ((Seen == 0) && (OREvl || OCEvl || ALEnhGSteal))NoteR.Activate Player 1endifendifset NoteR to Pencil01set NoteR to GetNextRefGoto 49endifendif set CMNYR to GetFirstRef 116 1 0Label 116if IsFormValid CMNYRif (Player.GetDistance CMNYR < 1000) && (CMNYR.GetDisabled == 0)set OREvl to 0set OCEvl to 0set ORe to CMNYR.GetOwnerset OCe to CMNYR.GetParentCellOwnerif ORe && (ORe != Player.GetBaseObject) && (ORe != PlayerFaction)if GetType ORe == 8set OREvl to (ListGetFormIndex ALEnhLEvilFact ORe >= 0)endifendifif OCe && (OCe != Player.GetBaseObject) && (OCe != PlayerFaction)if GetType OCe == 8set OCEvl to (ListGetFormIndex ALEnhLEvilFact OCe >= 0)endifendifif ((ORe == 0) && (OCe == 0)) || (ORe == Player.GetBaseObject) || (ORe == PlayerFaction) || (OCe == Player.GetBaseObject) || (OCe == PlayerFaction) || ((Seen == 0) && (OREvl || OCEvl || ALEnhGSteal))if CMNYR.IsInList ALEnhLCMNYCMNYR.Activate Player 1endifendifendifset CMNYR to Pencil01set CMNYR to GetNextRefGoto 116endifendifendifend Edited October 24, 2021 by kylez2006 Link to comment Share on other sites More sharing options...
yojeff Posted October 25, 2021 Share Posted October 25, 2021 The Pitt ingots are activators, not objects. Link to comment Share on other sites More sharing options...
kylez2006 Posted October 25, 2021 Author Share Posted October 25, 2021 The Pitt ingots are activators, not objects.Is there any way to activate them with a script. Im super new to fallout modding. I did however figure out the weapons problem. Form 40 is weapons and it didnt exist in this addon so i made this. set WeapR to GetFirstRef 40 1 0Label 40if IsFormValid WeapRif (Player.GetDistance WeapR < 1000) && (WeapR.GetDisabled == 0)set OREvl to 0set OCEvl to 0set ORe to WeapR.GetOwnerset OCe to WeapR.GetParentCellOwnerif ORe && (ORe != Player.GetBaseObject) && (ORe != PlayerFaction)if GetType ORe == 8set OREvl to (ListGetFormIndex ALEnhLEvilFact ORe >= 0)endifendifif OCe && (OCe != Player.GetBaseObject) && (OCe != PlayerFaction)if GetType OCe == 8set OCEvl to (ListGetFormIndex ALEnhLEvilFact OCe >= 0)endifendifif ((ORe == 0) && (OCe == 0)) || (ORe == Player.GetBaseObject) || (ORe == PlayerFaction) || (OCe == Player.GetBaseObject) || (OCe == PlayerFaction) || ((Seen == 0) && (OREvl || OCEvl || ALEnhGSteal))if ALEnhGGunif WeapR.IsInList ALEnhLGunWeapR.Activate Player 1endifendifendifendifset WeapR to Pencil01set WeapR to GetNextRefGoto 40endif Link to comment Share on other sites More sharing options...
yojeff Posted October 26, 2021 Share Posted October 26, 2021 If you're cycling through form lists, you should try to make a form list with the activators, and activate them. Activate JF. Link to comment Share on other sites More sharing options...
kylez2006 Posted November 1, 2021 Author Share Posted November 1, 2021 Got another question for you i got everything sorted out but now i ran into a new issue and i cant quite nail it down. When in game if i headshot someone triggering bloody mess it will cause a crash related to looting. I already linked how im sorting through the npc containers and guns and i cant seem to nail whats causing the crash, any help would be appreciated Link to comment Share on other sites More sharing options...
kylez2006 Posted November 1, 2021 Author Share Posted November 1, 2021 This is the code that is causing crashes. It will pickup stuff from the overworld and stuff laying around no problem but crashes if i kill the person. Craziest thing is sometimes it works for awhile no problems than it starts crashing everytime i kill someone. Im very lost and need help from a more experienced modder. I also tried changing the way i activate the item by adding it to my inventory and than disabling it in game but that didnt seem to work out. set WeapR to GetFirstRef 40 1 0 Label 40 if IsFormValid WeapR if (Player.GetDistance WeapR < 1000) && (WeapR.GetDisabled == 0) set OREvl to 0 set OCEvl to 0 set ORe to WeapR.GetOwner set OCe to WeapR.GetParentCellOwner if ORe && (ORe != Player.GetBaseObject) && (ORe != PlayerFaction) if GetType ORe == 8 set OREvl to (ListGetFormIndex ALEnhLEvilFact ORe >= 0) endif endif if OCe && (OCe != Player.GetBaseObject) && (OCe != PlayerFaction) if GetType OCe == 8 set OCEvl to (ListGetFormIndex ALEnhLEvilFact OCe >= 0) endif endif if ((ORe == 0) && (OCe == 0)) || (ORe == Player.GetBaseObject) || (ORe == PlayerFaction) || (OCe == Player.GetBaseObject) || (OCe == PlayerFaction) || ((Seen == 0) && (OREvl || OCEvl || ALEnhGSteal)) if ALEnhGGun if WeapR.IsInList ALEnhLGun WeapR.Activate Player 1 endif endif endif endif set WeapR to Pencil01 set WeapR to GetNextRef Goto 40 endif Link to comment Share on other sites More sharing options...
Recommended Posts