FF Real Thirst in HUD status bars...expertise coding needed

Post » Wed Mar 09, 2011 1:38 am

Hy!

I'm gonna try to keep this short... And this really is only for those who have been implementing various mods and their values to HUD status bars mod.
I wish to make it so that the bar is FULL when I am 100% NOT thirsty and then goes from RIGHT TO LEFT when getting thirsty. When the bar reaches LEFT end of the bar - I die...or whatever is the max penalty.
This is what I figured so far:

; ==== FF Real Thirst
set tnoHSB.hud_color to sv_Construct "4" ;...................................................... OK
set tnoHSB.hud_val to sv_Construct "aThirstQuest.aThirstRatio" ;..................... OK (I guess)
set tnoHSB.hud_min to sv_Construct "getaThirstLevel" ;..................................... NOT GOOD (possible input may be "aMaxThirstLevel" in combination with some math) and also, do I need to put the prefix "get"?
set tnoHSB.hud_max to sv_Construct "0" ;......................................................... NOT SURE - PART OF THE PROBLEM (but has to be lower than hud_min for bar to go from right to left)

set tnoHSB.hud_x to HUDbars ;................................................ OK
set tnoHSB.hud_y to "-30" ; .......................................................WILL FIGURE OUT AND ADJUST
set tnoHSB.hud_name to sv_Construct "Thirst: " ;........................................ OK
set tnoHSB.hud_textDisplay to HUDtxtPercent ;...................................... OK

set tnoHSB.hud_textColor to sv_Construct "4" ;.................................................. OK

SetStage tnoHSB 10

I really need help on this on 'cos I am just learning this - not easy for a newb, but I am trying. I presume that this will be a no-brainer for some of you, so I hope someone will help me.
Thank you!
User avatar
Cagla Cali
 
Posts: 3431
Joined: Tue Apr 10, 2007 8:36 am

Post » Tue Mar 08, 2011 10:47 pm

Hint: Why don't you write all this in the http://www.gamesas.com/index.php?/topic/1138841-relz-hud-status-bars/ where someone knowledgeable is more prone to visit? Like TNO, the author? :wink_smile:
User avatar
jessica robson
 
Posts: 3436
Joined: Mon Oct 09, 2006 11:54 am

Post » Wed Mar 09, 2011 11:25 am

Actually there's no way to get bar from rigth to left.
You can only switch "hud_min" and "hud_max", so the bar decreases when "hud_val" increases.

If you look at the bottom of "HUD Status Bars.ini" there are some examples.
I found this:
; ==== FF Real Thirst (Cobl and non-Cobl)	set tnoHSB.hud_val to sv_Construct		"aThirstQuest.aThirstRatio"	set tnoHSB.hud_min to sv_Construct		"0.1"	set tnoHSB.hud_max to sv_Construct		"0"
This is full when thirsty. If you switch "hud_min" with "hud_max", it will be full when quenched.
User avatar
Neliel Kudoh
 
Posts: 3348
Joined: Thu Oct 26, 2006 2:39 am


Return to IV - Oblivion