Gaming Underground Network

Come for the mods, stay for the community
 
HomePortalLatest imagesInterviewsRegisterLog in
Search
 
 

Display results as :
 

 


Rechercher Advanced Search
Info Panel
______________
MOD MASTER THREADS:
FALLOUT
THE ELDER SCROLLS

______________


______________


GUNinsider
Fallout Miami: Mika999
Stay Connected

GUNetwork
Keywords
wolfenstein upgrades commonwealth boom daryl marvel riot hunk dead NPCs Mask space ghoul boomers mandalorian FCOM machine khan Reforged body money Superpele vault Call Ryse Gear
Latest topics
» Your favorite mods for F:NV
Help fixing a Script for Ammo Sorting Emptyby ZedraxStereo Today at 9:44 am

» Whats the Number 1 mod you really want? (NV)
Help fixing a Script for Ammo Sorting Emptyby john96 Yesterday at 12:53 pm

» Unpopular Opinion: Too many mods ruin the game
Help fixing a Script for Ammo Sorting Emptyby Lupinboi Yesterday at 7:43 am

» Who Would Win: Ulysses or Joshua Graham?
Help fixing a Script for Ammo Sorting Emptyby Lupinboi Yesterday at 7:26 am

» Guns you want in Fallout
Help fixing a Script for Ammo Sorting Emptyby Lupinboi Yesterday at 7:21 am

» black doors in sierra madre bug
Help fixing a Script for Ammo Sorting Emptyby Wɪmzɪkl Wed Mar 20, 2024 8:27 pm

» Any Titanfall mods out their that have the female sniper armor?
Help fixing a Script for Ammo Sorting Emptyby john96 Wed Mar 20, 2024 3:14 pm

» Modder looking for gun mods
Help fixing a Script for Ammo Sorting Emptyby Bset Sun Mar 17, 2024 6:33 pm

» schorched enclave officer
Help fixing a Script for Ammo Sorting Emptyby Smash96 Sun Mar 17, 2024 5:13 pm

» Sup everyone (link funny shorts here)
Help fixing a Script for Ammo Sorting Emptyby DHB00P Thu Mar 14, 2024 2:29 pm

» Late Introduction
Help fixing a Script for Ammo Sorting Emptyby Battleclad Sun Mar 03, 2024 4:29 am

» Greetings!
Help fixing a Script for Ammo Sorting Emptyby Primus_Daibhidh Thu Feb 29, 2024 9:01 pm

» Fallout New Vegas Stuttering And LOD Problems
Help fixing a Script for Ammo Sorting Emptyby gamerdude7892 Thu Feb 29, 2024 7:48 am

» hello, here for porting tips and tricks to fnv
Help fixing a Script for Ammo Sorting Emptyby uxof Mon Feb 26, 2024 4:50 pm

» (Fo4) fo76 Steel Dawn Weapons and Armor ports
Help fixing a Script for Ammo Sorting Emptyby DireTheRed Fri Feb 23, 2024 5:52 pm

» So I tried my hand at modding...
Help fixing a Script for Ammo Sorting Emptyby Bset Fri Feb 23, 2024 4:01 am

» hi i'm new person
Help fixing a Script for Ammo Sorting Emptyby Jackfishproductions Mon Feb 19, 2024 9:00 am

» What Fallout 4 Armor Mod is This?
Help fixing a Script for Ammo Sorting Emptyby Skroge Sun Feb 18, 2024 11:15 pm

» [FNV] Weird facial problem when using Dragbody overhaul
Help fixing a Script for Ammo Sorting Emptyby CommunistDragon Sun Feb 18, 2024 10:18 pm

» [FNV] Some help with placing npcs in wasteland pls
Help fixing a Script for Ammo Sorting Emptyby TimvorixosGR Sun Feb 18, 2024 5:37 am

March 2024
MonTueWedThuFriSatSun
    123
45678910
11121314151617
18192021222324
25262728293031
CalendarCalendar
_
March 2024
MonTueWedThuFriSatSun
    123
45678910
11121314151617
18192021222324
25262728293031
CalendarCalendar

Share
 

 Help fixing a Script for Ammo Sorting

View previous topic View next topic Go down 
AuthorMessage
gunslinger6792

gunslinger6792

Posts : 299
Join date : 2014-04-04
Age : 31
Location : North Carolina, United States

Help fixing a Script for Ammo Sorting Empty
PostSubject: Help fixing a Script for Ammo Sorting   Help fixing a Script for Ammo Sorting EmptyMon May 26, 2014 9:17 pm

I'm trying to get a script to work that a friend gave me to sort ammo. I want my 5.56mm ammo to go into an ammo box that's ID name is houseammobox4. The geck gives me a warning saying its an invalid reference that only object references and reference variables are allowed in that context. Can anyone here help me out?

Short Playercount

Set PlayerCount to (Player.GetItemCount Ammo556mm)
Player.RemoveItem Ammo556mm PlayerCount 1
houseammobox4.AddItem Ammo556mm PlayerCount 1
Back to top Go down
hitman47101

hitman47101

Posts : 1947
Join date : 2014-03-01
Age : 30

Help fixing a Script for Ammo Sorting Empty
PostSubject: Re: Help fixing a Script for Ammo Sorting   Help fixing a Script for Ammo Sorting EmptyTue May 27, 2014 3:29 am

Are you sure that the containers ref ID is houseammobox4 and that it is set as a persistent reference?

Because that script works for me, i just tried it.
Back to top Go down
gunslinger6792

gunslinger6792

Posts : 299
Join date : 2014-04-04
Age : 31
Location : North Carolina, United States

Help fixing a Script for Ammo Sorting Empty
PostSubject: Re: Help fixing a Script for Ammo Sorting   Help fixing a Script for Ammo Sorting EmptyTue May 27, 2014 8:13 am

I'll double check but yes I believe so.
Back to top Go down
gunslinger6792

gunslinger6792

Posts : 299
Join date : 2014-04-04
Age : 31
Location : North Carolina, United States

Help fixing a Script for Ammo Sorting Empty
PostSubject: Re: Help fixing a Script for Ammo Sorting   Help fixing a Script for Ammo Sorting EmptyTue May 27, 2014 9:18 pm

I still can't get the script to work I keep getting errors. The ammo box is set to persistent but still no joy.
Back to top Go down
hitman47101

hitman47101

Posts : 1947
Join date : 2014-03-01
Age : 30

Help fixing a Script for Ammo Sorting Empty
PostSubject: Re: Help fixing a Script for Ammo Sorting   Help fixing a Script for Ammo Sorting EmptyWed May 28, 2014 5:38 pm

Sorry its taken me so long to reply.

How exactly are you using this script? an activator or something else?

Edit: This script will work, just attach it to your activator.

scn AmmoSortingScript

Short Playercount

Begin OnActivate

Set PlayerCount to (Player.GetItemCount Ammo556mm)
Player.RemoveItem Ammo556mm PlayerCount 1
houseammobox4.AddItem Ammo556mm PlayerCount 1

End


I hope this helps. Smile
Back to top Go down
gunslinger6792

gunslinger6792

Posts : 299
Join date : 2014-04-04
Age : 31
Location : North Carolina, United States

Help fixing a Script for Ammo Sorting Empty
PostSubject: Re: Help fixing a Script for Ammo Sorting   Help fixing a Script for Ammo Sorting EmptyWed May 28, 2014 7:47 pm

I'm trying to use the script in the terminal. The idea being is the player clicks on sort 556ammo and the ammo (in theory) should be removed from the players inventory and placed into houseammobox4 or 5.56mm Ammo (thats the name of the ammo box in game) I tried your script by placing it in terminal but I got the same error. I may just scrap the sorting idea since its complexities seem beyond me. Thank you for trying to help and your replies I think its lack of knowledge on my end thats making this so difficult.
Back to top Go down
nyaalich

nyaalich

Posts : 18
Join date : 2014-05-01

Help fixing a Script for Ammo Sorting Empty
PostSubject: Re: Help fixing a Script for Ammo Sorting   Help fixing a Script for Ammo Sorting EmptyTue Jun 17, 2014 8:48 pm

Haven't setup a console in a mod before, but I imagine that it works similarly to menus. You'd need to add the script that hitman provided to the script that controls what happens when each console option is selected.
Back to top Go down
Sponsored content




Help fixing a Script for Ammo Sorting Empty
PostSubject: Re: Help fixing a Script for Ammo Sorting   Help fixing a Script for Ammo Sorting Empty

Back to top Go down
 

Help fixing a Script for Ammo Sorting

View previous topic View next topic Back to top 
Page 1 of 1

 Similar topics

-
» Sorting with a huge modlist
» FO4: Help fixing the CWSS mod's bug?
» help fixing an issue
» (FNV) Please Help With Fixing Stutter
» Fixing My FNV game

Permissions in this forum:You cannot reply to topics in this forum
Gaming Underground Network :: Fallout :: Troubleshooting-