UGX-Mods

Call of Duty 5: World at War => Help Desk => Scripting => Topic started by: death_reaper0 on February 15, 2017, 02:53:40 pm

Title: using gsc scripts in the main menu
Post by: death_reaper0 on February 15, 2017, 02:53:40 pm
ok so my problem is a kind of weird one, in my mod i use gobblegums but the current way of selecting them is quite anoying, however it NEEDS gsc scripts to work, since it uses setstat/getstat. it also needs the player to go into a map specificly for gobblegum selecting and various other things (like using the vats).
 what i want to know is if its possible to set it up from the main menu to open another small menu that lets you click on the gums to select (there will need to be a selection for all 5)

if this isnt possible, can someone help with a menu that can be opened in that map where players can click on their gum, and have it display the description and amount they currently have (that stuff is set up, just needs a way of showing in menu)
Title: Re: using gsc scripts in the main menu
Post by: BluntStuffy on February 15, 2017, 05:16:15 pm
You can use stats in menu's as well. I use it to get stats a lot, just do:

Code Snippet
Plaintext
stat( 2500 )


To set stats you should try a little ( i havent used it in menus, i never needed it ). I found two things that might work:

Code Snippet
Plaintext
execnow "statset 263 1"; 

or

Code Snippet
Plaintext
statSetUsingTable( pstat, 1 );


Personally i've never managed to get a fully custom menu loaded and working from the main-menu. I solved this by replacing the credits with my custom menu.
Hope this helps
Title: Re: using gsc scripts in the main menu
Post by: death_reaper0 on February 16, 2017, 03:16:01 am
thanks, i'll try out something later, my main menu replaced multiplayer with the current gum sellection menu thing, and credits are gone, so i have a spare slot for it, just need to figure out how to open a part of a menu toclick on stuff