Search the Community
Showing results for tags 'gamemode'.
-
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?
-
I have searched around the NMM forums in order to get an answer for this, but I haven't found anything so far. This problem is that whenever I try to import a LOOT load order to nexus mod manager, the following message appears: "An error was encountered while trying to import the load order. The specified import source does not include a game mode". I found somewhere that you have to write gamemode=fallout4 but they didn't specify where to actually find "gamemode=".
-
I am trying to script something for an upcoming mod that makes some weapons react like they do in call of duty, but I came into a weird problem. The 12th line and the following should have began as soon as the player gets close enough to the object, in this case an activator, but when i try it out ingame the script works but like if were to begin with onactivate. If I walk up to the activator and click it it runs that script aslong as im close enough to the activator. When I first started making the script it worked out perfectly, but somewhere in the making it for some reason broke. Any help is appreciated, thanks in advance. Scn XXXServiceRiflePrimaryWeaponScript ;Refs ref AmmoGiven ref Activated ref GotAmmo ref HasPrimary ;------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ ;Checks for the gun and gives the player ammo for their current gun begin gamemode set AmmoGiven to 1 + GetRandomPercent * 30 / 100 if getdistance Playerref <= 40 if player.getitemcount WeapNVServiceRifle == 1 if GotAmmo == 0 player.additem Ammo556mm AmmoGiven disable set GotAmmo to 1 endif endif endif end ;------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ ;Checks for a primary weapon Begin Gamemode if player.getitemcount WeapNVServiceRifle == 1 set HasPrimary to 1 endif if player.getitemcount Weap10mmSubmachineGun == 1 set HasPrimary to 1 endif end ;------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ ;Checks if player has no primary begin gamemode if player.getitemcount WeapNVServiceRifle == 0 if player.getitemcount Weap10mmSubmachineGun == 0 set HasPrimary to 0 endif endif end ;------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ ;Removes the players current weapon and gives them the new one, or gives the player the gun when they have none begin onactivate if HasPrimary == 0 player.additem WeapNVServiceRifle 1 player.additem Ammo556mm AmmoGiven disable endif if player.getitemcount Weap10mmSubmachineGun == 1 player.removeitem Weap10mmSubmachineGun 1 XXXGunDropMarkerREF.placeatme Weap10mmSubmachineGun 1 15 0 player.additem WeapNvServiceRifle 1 player.additem Ammo556mm AmmoGiven disable endif end ;------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-
Hello, Can someone please make a mod that would allow me to play HvV in style of the Battlefront 2015 one? If this is not possible than i would like to have a mod that would allow me to play Hero Showdown in IA (But 3 vs 3 not 2 vs 2). Thank you