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
vault Ryse body mandalorian dead Mask NPCs riot Overhaul money boomers daryl hunk Armor boom commonwealth Gear FCOM marvel Reforged wolfenstein ghoul khan Call machine Superpele
Latest topics
» Howdy from grandmastoes
Help fixing a Script for Ammo Sorting Emptyby Apoc Tue Apr 16, 2024 6:06 pm

» armor slot changing in creation kit
Help fixing a Script for Ammo Sorting Emptyby Meno Tue Apr 16, 2024 8:22 am

» The Fallout TV show destroyed NV. I'm done with Todd.
Help fixing a Script for Ammo Sorting Emptyby gavin gold Tue Apr 16, 2024 8:22 am

» {Multi Choice POLL} Fallout 3 or Fallout NV music?
Help fixing a Script for Ammo Sorting Emptyby HardComma Wed Apr 10, 2024 7:42 pm

» Hello from nexus
Help fixing a Script for Ammo Sorting Emptyby noacctname1 Wed Apr 10, 2024 1:54 am

» Who Would Win: Ulysses or Joshua Graham?
Help fixing a Script for Ammo Sorting Emptyby BellToadTall Wed Apr 03, 2024 4:06 pm

» The Next fallout
Help fixing a Script for Ammo Sorting Emptyby BellToadTall Wed Apr 03, 2024 4:01 pm

» Your favorite mods for F:NV
Help fixing a Script for Ammo Sorting Emptyby BellToadTall Wed Apr 03, 2024 3:55 pm

» Whats the Number 1 mod you really want? (NV)
Help fixing a Script for Ammo Sorting Emptyby CosmoMods Mon Apr 01, 2024 8:52 pm

» Unpopular Opinion: Too many mods ruin the game
Help fixing a Script for Ammo Sorting Emptyby Evmeister Sun Mar 31, 2024 11:11 am

» Guns you want in Fallout
Help fixing a Script for Ammo Sorting Emptyby Lupinboi Tue Mar 26, 2024 8:21 pm

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

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

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

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

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

» Late Introduction
Help fixing a Script for Ammo Sorting Emptyby Battleclad Sat Mar 02, 2024 4:29 pm

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

» Fallout New Vegas Stuttering And LOD Problems
Help fixing a Script for Ammo Sorting Emptyby gamerdude7892 Wed Feb 28, 2024 7:48 pm

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

April 2024
MonTueWedThuFriSatSun
1234567
891011121314
15161718192021
22232425262728
2930     
CalendarCalendar
_
April 2024
MonTueWedThuFriSatSun
1234567
891011121314
15161718192021
22232425262728
2930     
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 : 32
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 10:17 am

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-02-28
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 EmptyMon May 26, 2014 4:29 pm

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 : 32
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 EmptyMon May 26, 2014 9:13 pm

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

gunslinger6792

Posts : 299
Join date : 2014-04-04
Age : 32
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 10:18 am

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-02-28
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 6:38 am

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 : 32
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 8:47 am

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-04-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 Jun 17, 2014 9:48 am

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-