Simplest method to change Barter Menu's "caps" label

Post » Sat May 28, 2011 9:49 pm

To complete part of a faction currency mod I need to change the "caps" strings displayed on the Barter Menu depending on the currency being used. However, figuring out how this is accomplished is frustrating as the user-interface tutorials seem scattered, mostly focused on Oblivion, and slightly overwhelming for what I am trying to accomplish. They also seem to be tied to certain mods (such as DarNified) for some reason? I'd prefer avoiding additional requirements if possible.

If there's a comprehensive FO3/FNV User-Interface Tutorial 101 I'd greatly appreciate being pointed in the right direction.
User avatar
Amy Gibson
 
Posts: 3540
Joined: Wed Oct 04, 2006 2:11 pm

Post » Sat May 28, 2011 7:12 pm

Comprehensive tutorial... I don't think there is one. It's one of those things you just jump in and play around with.

To do what you want, use the SetUIString NVSE function in MenuMode 1053:
SetUIString "BarterMenu\NOGLOW_BRANCH\BM_CapsFlow\BM_CapsLabel" "New String"

User avatar
teeny
 
Posts: 3423
Joined: Sun Feb 25, 2007 1:51 am

Post » Sat May 28, 2011 12:38 pm

Awesome. I knew that I had to use SetUIString but didn't know which arguments to pass.

Thanks a lot.

EDIT: Celebrated too soon. I don't see any changes to either the inventory list headers or the amount transferred display. Is "BarterMenu\NOGLOW_BRANCH\BM_CapsFlow\BM_CapsLabel" the wrong argument are is there something else I need?
User avatar
John Moore
 
Posts: 3294
Joined: Sun Jun 10, 2007 8:18 am

Post » Sat May 28, 2011 10:04 pm

Oops, I forgot to include which parameter. It's actually...
SetUIString "BarterMenu\NOGLOW_BRANCH\BM_CapsFlow\BM_CapsLabel\string" "New String"

User avatar
Bellismydesi
 
Posts: 3360
Joined: Sun Jun 18, 2006 7:25 am

Post » Sat May 28, 2011 7:52 am

SetUIString "BarterMenu\NOGLOW_BRANCH\BM_CapsFlow\BM_CapsLabel\string" "NCR $"


No luck with the above either. Does it work in your game?
User avatar
Kyra
 
Posts: 3365
Joined: Mon Jan 29, 2007 8:24 am

Post » Sat May 28, 2011 5:51 pm

It works fine for me. I even copied and pasted the exact line you have there.
User avatar
Jessica White
 
Posts: 3419
Joined: Sun Aug 20, 2006 5:03 am

Post » Sat May 28, 2011 2:06 pm

It works fine for me. I even copied and pasted the exact line you have there.


Are you using anything besides NVSE?
User avatar
Tiff Clark
 
Posts: 3297
Joined: Wed Aug 09, 2006 2:23 am

Post » Sat May 28, 2011 11:58 am

Are you using anything besides NVSE?

No, I don't think so. Here's the code I used to switch it. The iString variable is there so it doesn't apply every frame and kill the FPS.

short iStringbegin MenuMode 1053	if iString != GetUIFloat "BarterMenu\NOGLOW_BRANCH\BM_CapsFlow\visible"		set iString to GetUIFloat "BarterMenu\NOGLOW_BRANCH\BM_CapsFlow\visible"		if iString			SetUIString "BarterMenu\NOGLOW_BRANCH\BM_CapsFlow\BM_CapsLabel\string" "NCR $"		endif	endifend

User avatar
sunny lovett
 
Posts: 3388
Joined: Thu Dec 07, 2006 4:59 am

Post » Sat May 28, 2011 10:03 am

No luck with the above either. Does it work in your game?

You were probably using at the wrong time. To modify values in any menu, it has to be active at the time you're doing it. Also, after closing it and opening it again it will be reset. The script Pelinor posted already accounts for both.
User avatar
Sabrina Schwarz
 
Posts: 3538
Joined: Fri Jul 14, 2006 10:02 am


Return to Fallout: New Vegas