ultnobodyXIII Posted June 28 Share Posted June 28 Looking for a way to make it so that enemies use new weapons that my mod adds without messing with the base files Ex: Make it so that Powder Gangers use a .32 Pistol, as well as give them a chance to spawn with one. Link to comment Share on other sites More sharing options...
laclongquan Posted June 28 Share Posted June 28 use the script to add your weapon into powder ganger's weaponlist (can clash with other mods using that same list), or directly to their template's inventory Link to comment Share on other sites More sharing options...
sullyvanj93 Posted June 28 Share Posted June 28 It wouldn't really clash with other mods if yours added it to the list via script. Unless you're wanting to prevent them from using other weapons they normally would... Just create a quest script that runs once that adds the .32 to their weapon lists (or as laclongquan said, their inventory). That's really all there is to it. Link to comment Share on other sites More sharing options...
ultnobodyXIII Posted June 29 Author Share Posted June 29 do i use the additemroleveledist function, or is there a different function that works for it? Link to comment Share on other sites More sharing options...
laclongquan Posted June 29 Share Posted June 29 (edited) I think they still use dynamite over .32 pistol because their dmg or dps is higher. And that's how NPC chose which weapons to equip, dmg and ultimately dps. Honestly if I see two targets I would hit the dynamite user first before the crappy 32 pistoleer. Their explosion can create considerable damage. 32 pistol will always have weakness in that, because .32 ammo. Unless you can create a .32 SMG with same damage but higher DPS. Edited June 29 by laclongquan Link to comment Share on other sites More sharing options...
ultnobodyXIII Posted June 30 Author Share Posted June 30 20 hours ago, laclongquan said: I think they still use dynamite over .32 pistol because their dmg or dps is higher. And that's how NPC chose which weapons to equip, dmg and ultimately dps. Honestly if I see two targets I would hit the dynamite user first before the crappy 32 pistoleer. Their explosion can create considerable damage. 32 pistol will always have weakness in that, because .32 ammo. Unless you can create a .32 SMG with same damage but higher DPS. I mean I'm trying to balance a lot of the weapons out so that they're stronger, yet not overpowered. I'm just trying to get it to work first though. I'm just not sure what the proper script function is to use. I've tried using the additemtoleveledlist, but it never seems to work. However, I've also read that you're not supposed to use that function. It's just really confusion all in all. What I use to try was something along the lines of AddItemToLeveledList LL2Tier1GunsPowderGangerPistol75 OWRPWithAmmoNV32CaliberPistol (My Weapon List); Is that not right? Link to comment Share on other sites More sharing options...
ultnobodyXIII Posted July 3 Author Share Posted July 3 This is an example of my terrible spaghetti code, pretty sure something's not right here: ElseIf (nOWRPSetup == 1) LeveledListAddForm GunRunnerGunsAllTier1 OWRPWithAmmoNV32CaliberPistolLoot 1 1 0.99; LeveledListAddForm GunRunnerGunsAllTier1 OWRPWithAmmoNVChinesePistolLoot 1 1 0.99; LeveledListAddForm GunRunnerGunsAllTier1 OWRPWithAmmoNVLeverActionRifleLoot 1 1 0.99; LeveledListAddForm GunRunnerGunsAllTier2 OWRPWithAmmoNVAssaultRifleLoot 1 1 0.99; LeveledListAddForm GunRunnerGunsAllTier2 OWRPWithAmmoNVChineseAssaultRifleLoot 1 1 0.99; LeveledListAddForm GunRunnerGunsAllTier2 OWRPWithAmmoNVDoubleBarrelShotgunLoot 1 1 0.99; LeveledListAddForm GunRunnerGunsAllTier3 OWRPWithAmmoNVInfiltratorLoot 1 1 0.99; LeveledListAddForm LL1NPCTownWeaponLow OWRPWithAmmoNV32CaliberPistolLoot 1 1 1.0; LeveledListAddForm LL1NPCTownWeaponLow OWRPCondNVAxeNPC 1 1 1.0; LeveledListAddForm LL1NPCTownWeaponLow OWRPCondNVChineseOfficerSwordNPC 1 1 1.0; LeveledListAddForm LL1NPCTownWeaponLow OWRPWithAmmoNVChinesePistolLoot 1 1 1.0; LeveledListAddForm LL1NPCTownWeaponLow OWRPWithAmmoNVLeverActionRifleLoot 1 1 1.0; LeveledListAddForm LL1NPCTownWeaponLow15 OWRPWithAmmoNV32CaliberPistolLoot 1 1 1.0; LeveledListAddForm LL1NPCTownWeaponLow15 OWRPCondNVAxeNPC 1 1 1.0; LeveledListAddForm LL1NPCTownWeaponLow15 OWRPCondNVChineseOfficerSwordNPC 1 1 1.0; LeveledListAddForm LL1NPCTownWeaponLow15 OWRPWithAmmoNVChinesePistolLoot 1 1 1.0; LeveledListAddForm LL1NPCTownWeaponLow15 OWRPWithAmmoNVLeverActionRifleLoot 1 1 1.0; LeveledListAddForm LL1NPCTownWeaponLow35 OWRPWithAmmoNV32CaliberPistolLoot 1 1 1.0; LeveledListAddForm LL1NPCTownWeaponLow35 OWRPCondNVAxeNPC 1 1 1.0; LeveledListAddForm LL1NPCTownWeaponLow35 OWRPCondNVChineseOfficerSwordNPC 1 1 1.0; LeveledListAddForm LL1NPCTownWeaponLow35 OWRPWithAmmoNVChinesePistolLoot 1 1 1.0; LeveledListAddForm LL1NPCTownWeaponLow35 OWRPWithAmmoNVLeverActionRifleLoot 1 1 1.0; LeveledListAddForm LL2Tier1Guns OWRPWithAmmoNV32CaliberPistolLoot 1 1 1.0; LeveledListAddForm LL2Tier1Guns OWRPWithAmmoNVChinesePistolLoot 1 1 1.0; LeveledListAddForm LL2Tier1Guns OWRPWithAmmoNVLeverActionRifleLoot 1 1 1.0; LeveledListAddForm LL2Tier1Guns50 OWRPWithAmmoNV32CaliberPistolLoot 1 1 1.0; LeveledListAddForm LL2Tier1Guns50 OWRPWithAmmoNVChinesePistolLoot 1 1 1.0; LeveledListAddForm LL2Tier1Guns50 OWRPWithAmmoNVLeverActionRifleLoot 1 1 1.0; LeveledListAddForm LL2Tier2Guns OWRPWithAmmoNVAssaultRifleLoot 1 1 1.0; LeveledListAddForm LL2Tier2Guns OWRPWithAmmoNVChineseAssaultRifleLoot 1 1 1.0; LeveledListAddForm LL2Tier2Guns OWRPWithAmmoNVDoubleBarrelShotgunLoot 1 1 1.0; LeveledListAddForm LL2Tier2GunsMercenary OWRPWithAmmoNVAssaultRifleLoot 1 1 1.0; LeveledListAddForm LL2Tier2GunsMercenary OWRPWithAmmoNVChineseAssaultRifleLoot 1 1 1.0; LeveledListAddForm LL2Tier2GunsMercenary25 OWRPWithAmmoNVAssaultRifleLoot 1 1 1.0; LeveledListAddForm LL2Tier2GunsMercenary25 OWRPWithAmmoNVChineseAssaultRifleLoot 1 1 1.0; LeveledListAddForm LL2Tier2GunsMercenary50 OWRPWithAmmoNVAssaultRifleLoot 1 1 1.0; LeveledListAddForm LL2Tier2GunsMercenary50 OWRPWithAmmoNVChineseAssaultRifleLoot 1 1 1.0; LeveledListAddForm LL2Tier2GunsProspector OWRPWithAmmoNVAssaultRifleLoot 1 1 1.0; LeveledListAddForm LL2Tier2GunsProspector OWRPWithAmmoNVChineseAssaultRifleLoot 1 1 1.0; LeveledListAddForm LL2Tier2GunsProspector OWRPWithAmmoNVDoubleBarrelShotgunLoot 1 1 1.0; LeveledListAddForm LL2Tier2GunsProspector25 OWRPWithAmmoNVAssaultRifleLoot 1 1 1.0; LeveledListAddForm LL2Tier2GunsProspector25 OWRPWithAmmoNVChineseAssaultRifleLoot 1 1 1.0; LeveledListAddForm LL2Tier2GunsProspector25 OWRPWithAmmoNVDoubleBarrelShotgunLoot 1 1 1.0; LeveledListAddForm LL2Tier2GunsProspector50 OWRPWithAmmoNVAssaultRifleLoot 1 1 1.0; LeveledListAddForm LL2Tier2GunsProspector50 OWRPWithAmmoNVChineseAssaultRifleLoot 1 1 1.0; LeveledListAddForm LL2Tier2GunsProspector50 OWRPWithAmmoNVDoubleBarrelShotgunLoot 1 1 1.0; LeveledListAddForm LL2Tier2GunsProspector75 OWRPWithAmmoNVAssaultRifleLoot 1 1 1.0; LeveledListAddForm LL2Tier2GunsProspector75 OWRPWithAmmoNVChineseAssaultRifleLoot 1 1 1.0; LeveledListAddForm LL2Tier2GunsProspector75 OWRPWithAmmoNVDoubleBarrelShotgunLoot 1 1 1.0; LeveledListAddForm LL2Tier1MeleeWasteland50 OWRPCondNVAxeNPC 1 1 1.0; LeveledListAddForm LL2Tier1MeleeWasteland50 OWRPCondNVChineseOfficerSwordNPC 1 1 1.0; LeveledListAddForm LL2Tier1ExplosivesPowder OWRPLootMolotovCocktail100 1 1 1.0; LeveledListAddForm LL2Tier1ExplosivesPowder50 OWRPLootMolotovCocktail100 1 1 1.0; LeveledListAddForm LL2Tier2GunsTown OWRPWithAmmoNVDoubleBarrelShotgunLoot 1 1 1.0; LeveledListAddForm LL2Tier2GunsTown75 OWRPWithAmmoNVDoubleBarrelShotgunLoot 1 1 1.0; LeveledListAddForm LL2Tier3GunsMercenary OWRPWithAmmoNVInfiltratorLoot 1 1 1.0 LeveledListAddForm LL2Tier3GunsMercenary50 OWRPWithAmmoNVInfiltratorLoot 1 1 1.0 LeveledListAddForm LL2Tier3Guns OWRPWeapNVInfiltrator 1 1 1.0; LeveledListAddForm LL2Tier1GunsPistolNCRTrooper35 OWRPWithAmmoNV32CaliberPistolLoot 1 1 1.0; LeveledListAddForm LL2Tier1GunsPistolNCRTrooper50 OWRPWithAmmoNV32CaliberPistolLoot 1 1 1.0; LeveledListAddForm LL2Tier2GunsNCRTrooper OWRPWithAmmoNVDoubleBarrelShotgunLoot 1 1 1.0; LeveledListAddForm LL2Tier2GunsNCRTrooper50 OWRPWithAmmoNVDoubleBarrelShotgunLoot 1 1 1.0; LeveledListAddForm LL2Tier2GunsNCRTrooper90 OWRPWithAmmoNVDoubleBarrelShotgunLoot 1 1 1.0; LeveledListAddForm LootWeaponNCRRanger OWRPWithAmmoNVAssaultRifleLoot 1 1 1.0; LeveledListAddForm LootWeaponNCRRanger OWRPWithAmmoNVChineseAssaultRifleLoot 1 1 1.0; LeveledListAddForm LootWeaponNCRRanger OWRPWithAmmoNVLeverActionRifleLoot 1 1 1.0; LeveledListAddForm LootWeaponNCRRangerVeteran OWRPWithAmmoNVAssaultRifleLoot 1 1 1.0; LeveledListAddForm LootWeaponNCRRangerVeteran OWRPWithAmmoNVChineseAssaultRifleLoot 1 1 1.0; LeveledListAddForm LootWeaponNCRRangerVeteranHooverDam OWRPWithAmmoNVInfiltratorLoot 1 1 1.0; LeveledListAddForm LL2Tier1GunsLegionRecruit OWRPWithAmmoNV32CaliberPistolLoot 1 1 1.0; LeveledListAddForm LL2Tier1GunsLegionRecruit OWRPWithAmmoNVChinesePistolLoot 1 1 1.0; LeveledListAddForm LL2Tier1GunsLegionRecruit OWRPWithAmmoNVLeverActionRifleLoot 1 1 1.0; LeveledListAddForm LL2Tier1GunsLegionRecruit50 OWRPWithAmmoNV32CaliberPistolLoot 1 1 1.0; LeveledListAddForm LL2Tier1GunsLegionRecruit50 OWRPWithAmmoNVChinesePistolLoot 1 1 1.0; LeveledListAddForm LL2Tier1GunsLegionRecruit50 OWRPWithAmmoNVLeverActionRifleLoot 1 1 1.0; LeveledListAddForm LL2Tier2GunsLegionVeteran OWRPWithAmmoNVAssaultRifleLoot 1 1 1.0; LeveledListAddForm LL2Tier2GunsLegionVeteran OWRPWithAmmoNVChineseAssaultRifleLoot 1 1 1.0; LeveledListAddForm LL2Tier2GunsLegionVeteran OWRPWithAmmoNVDoubleBarrelShotgunLoot 1 1 1.0; LeveledListAddForm LL2Tier2GunsLegionVeteran50 OWRPWithAmmoNVAssaultRifleLoot 1 1 1.0; LeveledListAddForm LL2Tier2GunsLegionVeteran50 OWRPWithAmmoNVChineseAssaultRifleLoot 1 1 1.0; LeveledListAddForm LL2Tier2GunsLegionVeteran50 OWRPWithAmmoNVDoubleBarrelShotgunLoot 1 1 1.0; LeveledListAddForm LL2Tier1GunsPowderGangerPistol75 OWRPWithAmmoNV32CaliberPistolLoot 1 1 1.0; LeveledListAddForm LL2Tier1GunsPowderGangerPistol75 OWRPWithAmmoNVChinesePistolLoot 1 1 1.0; LeveledListAddForm LL2Tier1MeleePowderGanger OWRPCondNVAxeNPC 1 1 1.0; LeveledListAddForm LL2Tier1MeleePowderGanger OWRPCondNVChineseOfficerSwordNPC 1 1 1.0; LeveledListAddForm LL2Tier1MeleePowderGanger50 OWRPCondNVAxeNPC 1 1 1.0; LeveledListAddForm LL2Tier1MeleePowderGanger50 OWRPCondNVChineseOfficerSwordNPC 1 1 1.0; LeveledListAddForm LL2Tier1MeleePowderGangerSimple50 OWRPCondNVChineseOfficerSwordNPC 1 1 1.0; LeveledListAddForm LL2Tier1MeleePowderGangerSimple50 OWRPCondNVChineseOfficerSwordNPC 1 1 1.0; Set nOWRPSetup To 2; Return; Link to comment Share on other sites More sharing options...
Recommended Posts