Anyone know how they created this custom resource counter in the player hud? I’m trying to recreate the same thing but I haven’t been able to find any solutions yet
Verse ui or a widget_bp in the editor connected to something if i was to do this i would use a hud_widget_bp for the image and text bar and set the text via verse its easily doable and they is yt vids on this type of thing
Thanks for the reply! I’m pretty new to verse scripting. Would you mind linking to some tutorials that go over this? I managed to make the hud widget but haven’t found anything videos that show how to connect the text in the widget to the player’s inventory. Thanks in advance!
I thought they would be some tutorials on the quick method but i couldn’t see any.
What you would do is set a loop in verse to get the amount of items using the conditional_button_device → GetItemCount() and pass that value to the text on the wisget via the hud_message_device using the s2m
If you need help i could help you if you get stuck
I’m a little lost. I tried writing it like this and it gives me an error. “Script error 3601: Data definitions at this scope must be initialized with a value.”
You should call it ConditionalButton or CondButton or something related to the Conditional Button as they is that and also just Button so it may confuse you later on.
Also have a function run a loop dnt run within OnBegin
Lastly the function expects a int value for the index of the item in the item array so it would be (Agent,0) for example
You are not passing any Agent into the function body tho so im not entirely sure what your trying to do ?
If your new to verse they is great docs by Epic and tons of yt vids
This link is what you want the code snippet is in the description
Thanks for finding that video! That was exactly what I needed!