Jump to content

help to make a mod: display variables onscreen


mireazma

Recommended Posts

Hello, Nexus Community and thank you for all the good mods provided - they make FNV a new game to play.

Like pretty much anyone else playing FNV, I have installed dozens of mods. But!

I want to make my very first and probably last mod! Not as much out of passion for modding, but I need it.

 

I need the time and inventory weight/capacity displayed onscreen at all times.

 

Where should I start? In my humble and ignorant opinion simply showing up some variables that are already there should be pretty simple. Can somebody guide me, please?

 

EDIT:

I also want to change timescale to 20 instead of 30. Maybe execute a console command each time I start playing the game?

Edited by mireazma
Link to comment
Share on other sites

Is there really no one around here who may lend a hand?

There really are just a few things that improve Fallout NV experience exponentially. One of them is better awareness. With a simple onscreen value display, gameplay gets so much smoother.

In addition, I want to make (or d/l if available) a mod that shows you what you have stockpiled, where that is, all items you placed into containers and the containers' locations, so you won't have to travel to and fro just to remember all your items.

Waiting for advices.

Link to comment
Share on other sites

You need to learn how to make and use XML menus. If you never modded before I'm afraid this is not the best task to start.

 

New Vegas has only one vanilla function to show messages onscreen - ShowMessage. (or MessageEx, MessageBoxEx which are added by NVSE) bu they are not fit for what you want.

If you want to show anything on screen you need to create new XML menu, inject it in NV (manually or by using UIO. UIO is preffered because this is easier for users). Then you create new entry in XML menu and use SetUIFloat(added by NVSE) to display a variable on screen. It's more dfficult that it sounds. Still want this? Try Fps Counter mod by Fallout2AM - there is a simple XML menu and they way to control it in-game. Be advised that if you're gping to make it a template you should change all of entry's names inside XML menu from aFPS to any name to evade mod conflicts.

 

 

 

I also want to change timescale to 20 instead of 30. Maybe execute a console command each time I start playing the game?

You need to use If GetGameLoaded block added by NVSE. Inside it put any code you want and it will be executed each time you load save, quicksave etc.

Edited by TommInfinite
Link to comment
Share on other sites

Thank you TommInfinite. I'll have to admit it's so way over my head. I checked the xml menu in Fps Counter and I saw it's only a reference to the actual commands. Also saw the esp in there and I suppose the whole deal is in the esp. To see inside the esp I downloaded GECK and tried to open it, I set the esp active but got stuck at this point. I don't know where to look for the FPS onscreen display, as GECK shows the whole FalloutNV.esp not the isolated FPS counter.

Then I tried to follow the tutorials at the GECK main page but those are about adding new places. I feel like having to find the needle in the haystack.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...