Stormund Posted September 16, 2019 Share Posted September 16, 2019 (edited) Okay, so I've been struggling with this for a couple of hours now. I'm trying to add a custom weapon to the leveled lists via script, with no experience with this whatsoever I used Millenia's mods as base to do what I wanted and I looked at some posts about the subject and the script ended up as follows: The script: scn MakeshiftPistolLeveledListQuestScript short iDoOnce BEGIN GameMode if (iDoOnce == 0) AddItemToLeveledList LootGunPistolsGunpowderNV WithAmmo00MakeshiftPistolLoot 1 1 100 AddItemToLeveledList Raider1WeaponGunNV WithAmmo00MakeshiftPistolLoot 1 1 100 AddItemToLeveledList LootNVGunsAll WithAmmo00MakeshiftPistolLoot 1 1 100 AddItemToLeveledList WastelanderWeapon WithAmmo00MakeshiftPistolLoot 1 1 100 AddItemToLeveledList LootWeaponsGunsTier1 WithAmmo00MakeshiftPistolLoot 1 1 100 AddItemToLeveledList LL2Tier1Guns WithAmmo00MakeshiftPistolLoot 1 1 100 AddItemToLeveledList LL2Tier1Guns50 WithAmmo00MakeshiftPistolLoot 1 1 100 AddItemToLeveledList LL2Tier1Guns75 WithAmmo00MakeshiftPistolLoot 1 1 100 AddItemToLeveledList LL2Tier1Guns35 WithAmmo00MakeshiftPistolLoot 1 1 100 AddItemToLeveledList LootGunPistolsGunpowderTier1 WithAmmo00MakeshiftPistolLoot 1 1 100 AddItemToLeveledList LootGunPistolsGunpowderTier1 WithAmmo00MakeshiftPistolLoot 1 1 100 AddItemToLeveledList LootGunPistolsGunpowderTier1 WithAmmo00MakeshiftPistolLoot 1 1 100 AddItemToLeveledList NPCTownWeaponLow WithAmmo00MakeshiftPistolNPC 1 1 100 AddItemToLeveledList LL1NPCTownWeaponLow WithAmmo00MakeshiftPistolNPC 1 1 100 AddItemToLeveledList LL1NPCTownWeaponLow WithAmmo00MakeshiftPistolNPC 1 1 100 AddItemToLeveledList LL1NPCTownWeaponLow WithAmmo00MakeshiftPistolNPC 1 1 100 AddItemToLeveledList LL2Tier2GunsProspector WithAmmo00MakeshiftPistolNPC 1 1 100 AddItemToLeveledList LL2Tier1GunsPowderGangerRenegade WithAmmo00MakeshiftPistolNPC 1 1 100 AddItemToLeveledList LL2Tier1GunsPowderGangerRenegade WithAmmo00MakeshiftPistolNPC 1 1 100 AddItemToLeveledList LL2Tier1GunsPowderGangerRenegade75 WithAmmo00MakeshiftPistolNPC 1 1 100 AddItemToLeveledList LL2Tier1GunsPowderGangerRenegade75 WithAmmo00MakeshiftPistolNPC 1 1 100 AddItemToLeveledList LL2Tier1GunsPowderGangerPistol75 WithAmmo00MakeshiftPistolNPC 1 1 100 AddItemToLeveledList LL2Tier1GunsPowderGangerPistol75 WithAmmo00MakeshiftPistolNPC 1 1 100 AddItemToLeveledList LL2Tier1GoodspringsPowderGanger WithAmmo00MakeshiftPistolNPC 1 1 100 AddItemToLeveledList LL2Tier1GoodspringsPowderGanger50 WithAmmo00MakeshiftPistolNPC 1 1 100 AddItemToLeveledList LL2Tier2GunsPowderGanger WithAmmo00MakeshiftPistolNPC 1 1 100 AddItemToLeveledList LL2Tier1GunsPowderGangerRenegade25 WithAmmo00MakeshiftPistolNPC 1 1 100 AddItemToLeveledList LL2Tier1GunsPowderGangerRenegade25 WithAmmo00MakeshiftPistolNPC 1 1 100 AddItemToLeveledList LL2Tier1GunsPowderGangerRenegade50 WithAmmo00MakeshiftPistolNPC 1 1 100 AddItemToLeveledList LL2Tier1GunsPowderGangerPistol25 WithAmmo00MakeshiftPistolNPC 1 1 100 AddItemToLeveledList LL2Tier1GunsPowderGangerPistol25 WithAmmo00MakeshiftPistolNPC 1 1 100 AddItemToLeveledList LL2Tier1GunsPowderGangerPistol50 WithAmmo00MakeshiftPistolNPC 1 1 100 AddItemToLeveledList LL2Tier1GunsPowderGangerPistol50 WithAmmo00MakeshiftPistolNPC 1 1 100 AddItemToLeveledList LL2Tier2GunsPowderGanger25 WithAmmo00MakeshiftPistolNPC 1 1 100 AddItemToLeveledList LL2Tier2GunsPowderGanger50 WithAmmo00MakeshiftPistolNPC 1 1 100 AddItemToLeveledList LL2Tier2GunsProspector50 WithAmmo00MakeshiftPistolNPC 1 1 100 AddItemToLeveledList LL1NPCTownWeaponLow50 WithAmmo00MakeshiftPistolNPC 1 1 100 AddItemToLeveledList LL1NPCTownWeaponLow35 WithAmmo00MakeshiftPistolNPC 1 1 100 AddItemToLeveledList LL1NPCTownWeaponLow75 WithAmmo00MakeshiftPistolNPC 1 1 100 AddItemToLeveledList LL1NPCTownWeaponLow15 WithAmmo00MakeshiftPistolNPC 1 1 100 AddFormToFormList NVAllWeapons 00WeapMakeshiftPistol set iDoOnce to 1 StopQuest MakeshiftPistolLeveledListModendif Then I tried to do one using JIP commands to see if made a difference, it didn't:SCN MakeshiftPistolLeveledListQuestScript Begin GameMode if GetGameRestarted == 0returnendif ;----------------------------------------- LeveledListAddForm LootGunPistolsGunpowderNV WithAmmo00MakeshiftPistolLoot 1 1 1.0 LeveledListAddForm Raider1WeaponGunNV WithAmmo00MakeshiftPistolLoot 1 1 1.0 LeveledListAddForm LootNVGunsAll WithAmmo00MakeshiftPistolLoot 1 1 1.0 LeveledListAddForm WastelanderWeapon WithAmmo00MakeshiftPistolLoot 1 1 1.0 LeveledListAddForm LootWeaponsGunsTier1 WithAmmo00MakeshiftPistolLoot 1 1 1.0 LeveledListAddForm LL2Tier1Guns WithAmmo00MakeshiftPistolLoot 1 1 1.0 LeveledListAddForm LL2Tier1Guns50 WithAmmo00MakeshiftPistolLoot 1 1 1.0 LeveledListAddForm LL2Tier1Guns75 WithAmmo00MakeshiftPistolLoot 1 1 1.0 LeveledListAddForm LL2Tier1Guns35 WithAmmo00MakeshiftPistolLoot 1 1 1.0 LeveledListAddForm LootGunPistolsGunpowderTier1 WithAmmo00MakeshiftPistolLoot 1 1 1.0 LeveledListAddForm LootGunPistolsGunpowderTier1 WithAmmo00MakeshiftPistolLoot 1 1 1.0 LeveledListAddForm LootGunPistolsGunpowderTier1 WithAmmo00MakeshiftPistolLoot 1 1 1.0 LeveledListAddForm NPCTownWeaponLow WithAmmo00MakeshiftPistolNPC 1 1 1.0 LeveledListAddForm LL1NPCTownWeaponLow WithAmmo00MakeshiftPistolNPC 1 1 1.0 LeveledListAddForm LL1NPCTownWeaponLow WithAmmo00MakeshiftPistolNPC 1 1 1.0 LeveledListAddForm LL1NPCTownWeaponLow WithAmmo00MakeshiftPistolNPC 1 1 1.0 LeveledListAddForm LL2Tier2GunsProspector WithAmmo00MakeshiftPistolNPC 1 1 1.0 LeveledListAddForm LL2Tier1GunsPowderGangerRenegade WithAmmo00MakeshiftPistolNPC 1 1 1.0 LeveledListAddForm LL2Tier1GunsPowderGangerRenegade WithAmmo00MakeshiftPistolNPC 1 1 1.0 LeveledListAddForm LL2Tier1GunsPowderGangerRenegade75 WithAmmo00MakeshiftPistolNPC 1 1 1.0 LeveledListAddForm LL2Tier1GunsPowderGangerRenegade75 WithAmmo00MakeshiftPistolNPC 1 1 1.0 LeveledListAddForm LL2Tier1GunsPowderGangerPistol75 WithAmmo00MakeshiftPistolNPC 1 1 1.0 LeveledListAddForm LL2Tier1GunsPowderGangerPistol75 WithAmmo00MakeshiftPistolNPC 1 1 1.0 LeveledListAddForm LL2Tier1GoodspringsPowderGanger WithAmmo00MakeshiftPistolNPC 1 1 1.0 LeveledListAddForm LL2Tier1GoodspringsPowderGanger50 WithAmmo00MakeshiftPistolNPC 1 1 1.0 LeveledListAddForm LL2Tier2GunsPowderGanger WithAmmo00MakeshiftPistolNPC 1 1 1.0 LeveledListAddForm LL2Tier1GunsPowderGangerRenegade25 WithAmmo00MakeshiftPistolNPC 1 1 1.0 LeveledListAddForm LL2Tier1GunsPowderGangerRenegade25 WithAmmo00MakeshiftPistolNPC 1 1 1.0 LeveledListAddForm LL2Tier1GunsPowderGangerRenegade50 WithAmmo00MakeshiftPistolNPC 1 1 1.0 LeveledListAddForm LL2Tier1GunsPowderGangerPistol25 WithAmmo00MakeshiftPistolNPC 1 1 1.0 LeveledListAddForm LL2Tier1GunsPowderGangerPistol25 WithAmmo00MakeshiftPistolNPC 1 1 1.0 LeveledListAddForm LL2Tier1GunsPowderGangerPistol50 WithAmmo00MakeshiftPistolNPC 1 1 1.0 LeveledListAddForm LL2Tier1GunsPowderGangerPistol50 WithAmmo00MakeshiftPistolNPC 1 1 1.0 LeveledListAddForm LL2Tier2GunsPowderGanger25 WithAmmo00MakeshiftPistolNPC 1 1 1.0 LeveledListAddForm LL2Tier2GunsPowderGanger50 WithAmmo00MakeshiftPistolNPC 1 1 1.0 LeveledListAddForm LL2Tier2GunsProspector50 WithAmmo00MakeshiftPistolNPC 1 1 1.0 LeveledListAddForm LL1NPCTownWeaponLow50 WithAmmo00MakeshiftPistolNPC 1 1 1.0 LeveledListAddForm LL1NPCTownWeaponLow35 WithAmmo00MakeshiftPistolNPC 1 1 1.0 LeveledListAddForm LL1NPCTownWeaponLow75 WithAmmo00MakeshiftPistolNPC 1 1 1.0 LeveledListAddForm LL1NPCTownWeaponLow15 WithAmmo00MakeshiftPistolNPC 1 1 1.0 LeveledListAddForm TESTLIST WithAmmo00MakeshiftPistolNPC 1 1 100 ListAddForm NVAllWeapons 00WeapMakeshiftPistol;----------------------------------------- End I've also made the quest in the GECK, added the script and checked Start Game Enabled, however, upon starting the game, it seems to have no effect, using 'resetinventory' on the NPCs and containers that use the lists above never get the added weapon and ammo. Anyone can help me out figure out what I'm missing? I could do it manually, it works, but I wanna add more stuff and have no issues with compatibility. Edited September 17, 2019 by Stormund Link to comment Share on other sites More sharing options...
dubiousintent Posted September 17, 2019 Share Posted September 17, 2019 Please see the 'TIP Adding Items to Actors aka Leveled Lists' and 'TIP Level Lists and GetBaseObject versus GetBaseForm' entries under the "Scripting" section of the wiki "Getting started creating mods using GECK" article. -Dubious- Link to comment Share on other sites More sharing options...
Recommended Posts