Thank you for the reply Caethyril.
Yes you are correct that the evals must be enclosed in ${...}.
I tried using the above examples and mostly got errors but then I removed the 'var item =' portion of the eval and everything after the semi colon so that visually it more resembled other evals that I've seen. This made the output change from 'Error' to '[object Object]' (minus quotes). Was not sure what this meant but it looked better!
Newayyyyy! To the good news. Between your code and the link you posted, I managed to stumble upon my 'Eureka' moment and now it is working!
The required eval is : ${$gameActors.actor(150).weapons()[0].name}
And Voila, HUD magic!!!
Many thanks for your assistance. I feel I may get a good night's sleep now!!!
P.S. This solution alone will still give an error if there are no weapons equipped. I believe I'll need to enter some conditions in HUD Maker to get that working. So for now ill just make sure a weapon is always equipped until I'm ready to battle that task!
Worked like a charm! You absolute Legend! 😀
Don't suppose you have any suggestions on the related icon issue, i.e code to display the icon for an equipped weapon?
OML
I’m just about to travel so once I’ve landed and settled in, i’ll whack this into HUD Maker and update you.
But to be fair, it looks pretty legit to my untrained eye. Can’t wait to test. OML
Edit: Hi again. So I've finally tested the above code and it hasn't really worked out! HUD Maker provides a selection of elements to customise your HUD e.g Text, Text Picture, Gauge, etc. The text element, I have used to display the weapon name. When using the icon code in the text element, it displays the weapon icon number which means its pointing at the correct thing but as yet I've not managed to get a Icon showing even after plugging the code into all element types.
The TextEx element type provides a way to display a selected icon but from what I see, it is only accepting something like, '\i[313]', to display a specific predetermined icon. I may be wrong but I'm stuck there.
I've had a think and reckon that using a picture element to display an image of my weapon instead may work better and might also be more visually pleasing.
Thanks again for the time and help that you have afforded me. OML