YanL Posted December 1, 2016 Share Posted December 1, 2016 Hello guys, I have two doubts. 1)One is for this mod: http://www.nexusmods.com/newvegas/mods/37190/? This little guy gives to the player 2 itens, a egg and a nectar. This are the conditions in Geck if Player.GetItemCount KazEgg == 0Player.additem KazEgg 3endif if Player.GetItemCount KazNectar == 0Player.additem KazNectar 1endifendifEND I wanna change that. What I want is that it give 3 eggs and 1 nectar per day. Something like the Implant RGX, that regen to a maximum number every 24 hours, but only if you use the implants. ====================================================================================================== 2) Other is for this mod http://www.nexusmods.com/newvegas/mods/55666/? What I want is that this weapon be unique. ONLY I CAN HAVE XD This is the script. if (iDoOnce == 0) AddItemToLeveledList VendorWeaponsGunsTier4 WithAmmoSDBBLoot 1 1 100 AddItemToLeveledList DamNCRTrooperWeapons WithAmmoSDBBLoot 1 1 100 AddItemToLeveledList LL2Tier4Guns WithAmmoSDBBLoot 1 1 100 AddItemToLeveledList LL2Tier4GunsMixed50 WithAmmoSDBBLoot 1 1 100 AddItemToLeveledList GunRunnerStoreTier4 WithAmmoSDBBLoot 1 1 100 AddItemToLeveledList RRCGreatKhanRanged WithAmmoSDBBLoot 1 1 100 AddFormToFormList ShotgunSurgeonWeaponsList WeapSDBB AddFormToFormList NVAllWeapons WeapSDBB AddFormToFormList WeaponShotgunList WeapSDBB set iDoOnce to 1 StopQuest SDBBLeveledListModendif END Deleting these red lines solve my problem? ======================================================================== Thanks :) Link to comment Share on other sites More sharing options...
Ladez Posted December 1, 2016 Share Posted December 1, 2016 1) There's several ways you could code this, depending on how specifically you want it to work, but generally you'll want to use GameDaysPassed to check if 24 hours have passed. This is just one example: if Player.GetItemCount KazEgg == 0 && LastEgg + 1 < GameDaysPassed Player.additem KazEgg 3 set LastEgg to GameDaysPassed endif if Player.GetItemCount KazNectar == 0 && LastNectar + 1 < GameDaysPassed Player.additem KazNectar 1 set LastNectar to GameDaysPassed endif endif END LastEgg and LastNectar should be float variables. 2) That looks correct. Link to comment Share on other sites More sharing options...
YanL Posted December 2, 2016 Author Share Posted December 2, 2016 Hello Ladez, thanks for the repply, but bouth dont work :laugh: For your script, I erase this lines if Player.GetItemCount KazEgg == 0Player.additem KazEgg 3endif if Player.GetItemCount KazNectar == 0Player.additem KazNectar 1endifendifEND And replace by your lines, but the geck dont allow me to close the script box, for some reason. And for the Thunderpipe, I erase the red lines and manage to save, but the khans still have the weapon. Maybe I have to reset the cell? =============================================================================================================== Seizing the opportunity, maybe you can help me with another problem. This weapon (Thuderpipe) uses the AmmoList12Ga Ok, but it dont accepted ammo from the gun runners arsenal http://i64.tinypic.com/jkhkxg.jpg Why? If I change the type of ammo to; for example; NVDLC05Ammo12GaDragonBreath, it works fine, of course with only this ammo especific. How can I fix this? Link to comment Share on other sites More sharing options...
Recommended Posts