Jump to content

Search the Community

Showing results for tags 'getcontainer'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Nexus Mods Hub
    • Site Updates
    • Site Support
    • Account Support
    • Vortex Support
    • Nexus Mods App
  • Modding Discussion
    • Mod Troubleshooting
    • Mod Ideas
    • Modding Academy
    • Articles and Guides
  • The Lounge
    • Newbies
    • General Chat
    • Gaming
    • Hardware and software discussion
    • Off-Topic
  • Moderation
    • Formal Warnings and Bans
  • Discussions
  • Vortex
  • Cyberpunk 2077's Mod Ideas
  • Cyberpunk 2077's Discussion
  • Baldur's Gate 3's Discussion
  • Baldur's Gate 3's Mod Ideas
  • Blade & Sorcery's Discussion
  • Blade & Sorcery's Blade & Sorcery: Nomad
  • Elden Ring's Discussion
  • Elden Ring's Mod Ideas
  • Fallout 4's Discussion
  • Fallout 4's Mod Ideas
  • Fallout 4's Creation Kit and Modders
  • Skyrim's Skyrim SE
  • Skyrim's Skyrim LE
  • Skyrim's Skyrim VR and Consoles
  • Skyrim's Mod Ideas
  • Skyrim's Creation Kit and Modders
  • Monster Hunter's MH Rise
  • Monster Hunter's MH World
  • Morrowind's Discussion
  • Morrowind's Spoilers
  • Morrowind's Lore
  • Morrowind's Construction Set and Modders
  • Morrowind's Troubleshooting
  • Mount & Blade II: Bannerlord's Discussion
  • Mount & Blade II: Bannerlord's Old Games
  • Oblivion's Discussion
  • Oblivion's Mod Ideas
  • Oblivion's Mod troubleshooting
  • Oblivion's Oblivion Construction Set and Modders
  • Oblivion's Spoilers
  • Ready or Not's Discussion
  • Red Dead Redemption 2's Discussion
  • Red Dead Redemption 2's Mod Ideas
  • Resident Evil Remakes's Resident Evil 4
  • Resident Evil Remakes's Resident Evil 3
  • Resident Evil Remakes's Resident Evil 2
  • Resident Evil Remakes's Resident Evil Village
  • Starfield's Discussion
  • Starfield's Mod Ideas
  • Starfield's Creation Kit and Modders
  • The Witcher's The Witcher 3: Wild Hunt
  • The Witcher's Mod Ideas
  • The Witcher's The Witcher 2: Assassins of Kings
  • The Witcher's The Witcher
  • The Witcher's REDEngine and Modders
  • Spider-Man's Spider-Man Remastered
  • Spider-Man's Miles Morales
  • Spider-Man's Mod Ideas
  • Fallout New Vegas's Discussion
  • Fallout New Vegas's Mod Ideas
  • Fallout New Vegas's Mod Troubleshooting
  • Fallout New Vegas's GECK and Modders
  • Fallout New Vegas's Spoilers
  • Stardew Valley's Discussion
  • Fallout 3's Mod Ideas
  • Fallout 3's Discussion
  • Fallout 3's GECK and Modders
  • Fallout 3's Spoilers
  • Fallout 3's Mod Troubleshooting
  • Dragon Age: Origins's Discussion
  • Dragon Age: Origins's Builder Troubleshooting
  • Dragon Age: Origins's Mod Troubleshooting
  • Dragon Age: Origins's Mod Ideas
  • Valheim's Discussion
  • Dark Souls's Dark Souls
  • Dark Souls's Dark Souls 2
  • Dark Souls's Dark Souls 3
  • Dark Souls's Dark Souls Remastered
  • Mass Effect's Legendary Edition
  • Mass Effect's Original Trilogy
  • Mass Effect's Andromeda
  • Hogwarts Legacy's Discussion
  • Subnautica's Subnautica
  • Subnautica's Below Zero
  • XCOM's Discussion
  • XCOM's Mod Ideas
  • XCOM's Enemy Unknown
  • XCOM's XCOM 2
  • Jurassic World Evolution's Jurassic World Evolution 2
  • Jurassic World Evolution's Jurassic World Evolution
  • 7 Days To Die's Discussion
  • Anno 1800's Discussion
  • Assassin's Creed's Odyssey
  • Assassin's Creed's Valhalla
  • Fallout 76's Discussion
  • Fallout 76's Mod Ideas
  • Far Cry's Far Cry 3
  • Far Cry's Discussion
  • Final Fantasy's Discussion
  • Final Fantasy's VII Remake
  • Final Fantasy's XII The Zodiac Age
  • BattleTech's Discussion
  • Dying Light's Dying Light
  • Dying Light's Dying Light 2
  • Dragon's Dogma: Dark Arisen's Discussion
  • Dragon's Dogma: Dark Arisen's Mod Ideas
  • Dragon Age: Inquisition's Discussion
  • Dragon Age: Inquisition's Mod Ideas
  • Dragon Age: Inquisition's Troubleshooting
  • No Man's Sky's Discussion
  • No Man's Sky's Mod Ideas
  • The Elder Scrolls Online's Discussion
  • State of Decay's State of Decay
  • State of Decay's State of Decay 2
  • Planet Zoo's Discussion
  • Neverwinter Nights's NWN Discussion
  • Neverwinter Nights's NWN2 Discussion
  • Neverwinter Nights's Mod Ideas
  • My Summer Car's Discussion
  • Metal Gear Solid V: The Phantom Pain's Discussion
  • MechWarrior 5: Mercenaries's Discussion
  • Kingdom Come: Deliverance's Discussion
  • Kingdom Come: Deliverance's Modding Tools and Modders
  • Devil May Cry 5's Discussion
  • Star Wars Jedi's Fallen Order
  • Star Wars Jedi's Survivor
  • Star Wars: Battlefront II (2017)'s Discussion
  • Sekiro: Shadows Die Twice's Discussion
  • Pillars of Eternity's Pillars of Eternity
  • Pillars of Eternity's Pillars of Eternity 2: Deadfire
  • Palworld's Mod Ideas
  • Palworld's Discussion
  • Palworld's Unreal Engine and Modders
  • Dragon's Dogma 2's Discussion
  • Dragon's Dogma 2's Mod Ideas

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 1 result

  1. My goal with this script is to allow a one-size-fits-all leveled list to work for both Capital Wasteland and Mojave Wasteland NPCs in Tale of Two Wastelands without either using incorrect weapons for the locale. Here's the script I'm using: scn CYCWCChineseAssaultRifleWasterSCRIPT ref rHolder begin GameMode if (rHolder != GetContainer) ; Set the reference so we can add the item. set rHolder to GetContainer else if (rHolder != 0) ; Ensure the item is in a container before proceeding. if (bInDCWasteland == 1) || (GetRandomPercent == 1) rHolder.AddItem WithAmmoChineseAssaultRifleNPC 1 1 else rHolder.AddItem WithAmmoAssaultRifleNPC 1 1 endif endif RemoveMe ; Remove the misc item as it's done its job. endif EndThis runs on a misc item that, as the code might suggest, is intended to transform into the appropriate weapon. When added to the player or an NPC via the AddItem command, this works just fine and it functions correctly. I've ensured that leveled lists inside the script exist and I know that the global exists, so I don't think they're the problems. On NPCs that are just spawning into the world, however (in my case, a test NPC spawned with the PlaceAtMe command), the game locks up and has to be ended with the task manager. I've tried adding a timer to the script to give the NPC time to load in, but that only delayed the crash until after the timer expired. This script has to function with an item that has to be part of a leveled list. If it can't, it's entirely useless and I'll be forced to juggle even more leveled lists for the Mojave (which is a problem as I've got way too many for just D.C.). What am I doing wrong and how can I fix it?
×
×
  • Create New...
  翻译: