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
boomers commonwealth marvel NPCs Reforged ghost Metal power boom Superpele Mask khan Duty vault ghoul money suit hunk Gear body riot clone leon space dead Ryse
Latest topics
» OICW Mod for New Vegas
Help fixing a Script for Ammo Sorting Emptyby DavidW75 Wed Oct 23, 2024 12:37 am

» Looking for Gta 5 xbox one modded account
Help fixing a Script for Ammo Sorting Emptyby salman0786 Tue Oct 08, 2024 4:47 pm

» [FNV] Flickering Landscape Textures
Help fixing a Script for Ammo Sorting Emptyby zliu313 Fri Oct 04, 2024 2:33 pm

» Best Site Ever!
Help fixing a Script for Ammo Sorting Emptyby WasteNinja88 Sun Sep 29, 2024 5:38 am

» Weird bug or glitch with Console Command. [FNV]
Help fixing a Script for Ammo Sorting Emptyby nickenicole47 Tue Sep 24, 2024 7:11 pm

» Suggestions on npc mod that Blends with dragbodys mod?
Help fixing a Script for Ammo Sorting Emptyby ilovebees.com Sun Sep 22, 2024 6:31 am

» [FNV] Right Mouse Button Zoom/ADS Bug
Help fixing a Script for Ammo Sorting Emptyby Lankychazz2009 Sun Sep 22, 2024 4:20 am

» (FO4) FO76 BOS Objects
Help fixing a Script for Ammo Sorting Emptyby campesino.p Sat Sep 21, 2024 9:53 pm

» [FNV] Dragbody's FO4 Power Armors bug.
Help fixing a Script for Ammo Sorting Emptyby Lankychazz2009 Thu Sep 19, 2024 2:34 pm

» Fallout: New Vegas "Pizza Boy" Mod
Help fixing a Script for Ammo Sorting Emptyby MrMistyEyed2 Tue Sep 10, 2024 1:15 am

» Here Are Some Of The Best Mods From GunNetwork
Help fixing a Script for Ammo Sorting Emptyby Abyssfer Sun Sep 08, 2024 10:02 am

» Saying hi after two years
Help fixing a Script for Ammo Sorting Emptyby spiralsandspirals Thu Aug 29, 2024 12:39 am

» Looking for an alternative to Nexus
Help fixing a Script for Ammo Sorting Emptyby freakoverse Fri Aug 23, 2024 10:50 am

» fallout 4 mods
Help fixing a Script for Ammo Sorting Emptyby salientguitar4 Mon Aug 19, 2024 5:47 pm

» [FNV] How to troubleshot infinite loading issues?
Help fixing a Script for Ammo Sorting Emptyby Abyssfer Wed Aug 14, 2024 5:28 pm

» Fnv Enable player control command
Help fixing a Script for Ammo Sorting Emptyby GenJohnWilliam Mon Aug 05, 2024 9:25 pm

» Problem with Dragbodies NCR overhaul
Help fixing a Script for Ammo Sorting Emptyby Lankychazz2009 Fri Aug 02, 2024 8:53 pm

» NCR Trooper Overhaul Armors with NCR Ultimate Overhaul
Help fixing a Script for Ammo Sorting Emptyby Abyssfer Thu Aug 01, 2024 8:29 pm

» Roland Deschain ist The Mysterious Stranger and other t
Help fixing a Script for Ammo Sorting Emptyby SpaceRanger Mon Jul 22, 2024 10:15 am

» Guns you want in Fallout
Help fixing a Script for Ammo Sorting Emptyby SpaceRanger Mon Jul 22, 2024 9:25 am

November 2024
MonTueWedThuFriSatSun
    123
45678910
11121314151617
18192021222324
252627282930 
CalendarCalendar
_
November 2024
MonTueWedThuFriSatSun
    123
45678910
11121314151617
18192021222324
252627282930 
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 3: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 : 31

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: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 EmptyTue May 27, 2014 2: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 : 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 3: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 : 31

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 11: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 1: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 2: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

-
» Fixing My FNV game
» Fixing Wrist seams
» FO4: Help fixing the CWSS mod's bug?
» help fixing an issue
» (FNV) Please Help With Fixing Stutter

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