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
Reforged body riot leon Resident hunk ghost Duty boom power suit dead khan money Ryse NPCs Gear marvel Mask clone Superpele commonwealth Metal space vault boomers
Latest topics
» R.S.A. Weapons question
Help fixing a Script for Ammo Sorting Emptyby gtp_750 Mon Nov 18, 2024 11:30 pm

» Hello - Fo4/76 player
Help fixing a Script for Ammo Sorting Emptyby 3doutlaw Sat Nov 16, 2024 5:28 pm

» Hey everyone
Help fixing a Script for Ammo Sorting Emptyby FentaBerry Wed Nov 13, 2024 8:29 pm

» [FNV] Question about Rainbow Six Siege armor set
Help fixing a Script for Ammo Sorting Emptyby IzzBee Wed Nov 13, 2024 10:54 am

» I made a detailed map for Fallout 1 & 2 remakes!
Help fixing a Script for Ammo Sorting Emptyby railroadbill Tue Nov 12, 2024 11:29 pm

» Tammy's Introduction (Making a PA port)
Help fixing a Script for Ammo Sorting Emptyby Leviatan Fri Nov 08, 2024 10:36 pm

» OICW Mod for New Vegas
Help fixing a Script for Ammo Sorting Emptyby DavidW75 Tue Oct 22, 2024 8:37 pm

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

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

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

» Weird bug or glitch with Console Command. [FNV]
Help fixing a Script for Ammo Sorting Emptyby nickenicole47 Tue Sep 24, 2024 3: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 2:31 am

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

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

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

» Fallout: New Vegas "Pizza Boy" Mod
Help fixing a Script for Ammo Sorting Emptyby MrMistyEyed2 Mon Sep 09, 2024 9:15 pm

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

» Saying hi after two years
Help fixing a Script for Ammo Sorting Emptyby spiralsandspirals Wed Aug 28, 2024 8:39 pm

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

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

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 11: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 : 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 5: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 10: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 11: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 : 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 7: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 9: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 10: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

-
» FO4: Help fixing the CWSS mod's bug?
» Fixing Wrist seams
» 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-