Part 2
With the first part of the guide, I merely explained what each of the tags do. In this part, I will explain how to make the hud actually work and stay consistent throughout messages.
This part of the guide will likely also teach you for other kinds of huds as you don't use your knowledge on HTML, rather, your general prompting knowledge instead.
Making the meter bar/details section dynamic and constantly changing
I have provided a presentation on how to make a visible meter bar, but for the meter bar to actually function the way you want it to, you must have AI change the 'value'.
As someone who's still new to prompting(yes, not just coding), I can teach two methods(albeit amateur-level) to change the value.
With the full example of my hud before, you can see I instructed the AI to look for "X" and replace it with a number that fits the situation, and since I have placed two Xs, it will replace those with a random number.
At the end of the message, show a hud with this format to indicate Kongming's Smugness, Affection, and Current Thoughts. Make sure to replace the placeholders such as X with Kongming's actual smugness or affection from 1-10 (highest):
Smugness: <meter value=X min=0 max=10></meter> Affection: <meter value=X min=0 max=10></meter>
Another method of changing the value is directly placing the instruction beside it.
<meter value=[(Insert instruction here)] min=0 max=10></meter>
Here is an example:
Smugness: <meter value=[Raise value if Kongming teases Mr. Assassin] min=0 max=10></meter> Affection: <meter value=[Raise value if Kongming shows signs of affection] min=0 max=10></meter>
I have used this method for Kongming's Current thoughts(details section):
<summary>Current thoughts</summary>
"[Display Kongming's inner thoughts]"
</details>```
As I have stated in parenthesis before, I came up with these methods myself and there are definitely better ways to implement instructions for your hud. (If you know any better techniques, feel free to share(I totally won't take it from you xp))
# End of Guide
I believe I covered everything you need to know about the cool-looking hud I made, and as someone who does not know how to properly end presentations, I shall abruptly end it here. Once more, you are free to ask questions regarding my guide. Thank you :)