Skip to content

[SOLVED] PSTEE - need help with Lua: display character stats in inventory.

bzmbzm Member Posts: 30
edited August 2023 in UI Modding
We are trying to make character stats displayed in right side of modded inventory.

There is something like this inside ui.menu:
text
	{
		area 744 58 218 421
		text lua "recordHelpString"
		text style "normal_parchment"
		scrollbar	'cgscrl1'
		
	}

And (if it has to do with it) :
function resetRecordHelpString()
	recordHelpString = characters[currentID].proficiencies.pstDetails
end


The thing is, when we paste: text lua "recordHelpString" - into inv section(menu), the stats show up, only with a trick: enter inv, then enter character screen, then go back to inv. Shows with trick, and not refreshing after change companion, e. g. stats for Namless One stays on Morte etc.

How to make that this String to be proper displaying and refreshing in inv??

There must be a way! ;)

Edit:
Solution among others:
text lua "characters[id].proficiencies.pstDetails"

https://www.youtube.com/watch?v=hx7c68ImoDQ
Post edited by bzm on
Sign In or Register to comment.