[SOLVED] Falcao Pearl ABS HUD Key Addon?

This one is a bit more complicated than what I've asked for before. Here's a mock-up, so we know what we're dealing with:

hg3ELX2.png


I'm effectively asking for a function that creates these hud piece (key image + number of normal keys in your inventory), and allows you to summon them with a script command similar to:

Ruby:
$game_system.skillbar_enable = nil / true

Being able to customize what kind of key (since different dungeons have their own specific keys) the HUD piece is reading is also a necessity.

Bonus: It would be cool if the HUD element turns 50% transparent if you walked over it, like what happens when you step over the skillbar at the bottom.

Link to Falcao's ABS script.
Kicking this one back up because this is quite important for me.
What is that image from? is that an edit of your game?
What is that image from? is that an edit of your game?

Do you mean the hud picture that shows the key in it? I made that and then edited it in as a mockup to show what it's supposed to look like when it's all set up.


I felt compelled to get this over with and decided to fix it on my own. I overcomplicated the hell out of it originally. Here's my new process:

Ruby:
PearlKernel.image_exp(self.bitmap,e[0] + 4, e[1],@beximg,@piexp, battler) if $game_switches[505] == true

PearlKernel.draw_exp(self.bitmap, EXP_Info[0], EXP_Info[1], battler) if $game_switches[505] == true

  • I had to attach "if $game_switches[505] == true" to the ends of these bits of code from Falcao Pearl ABS's Pearl_Lifebar code. This was the primary reason I even made the thread to begin with, as I wanted to control these showing up separately from everything else. Turns out that's all I needed.
  • draw_exp is modified to not use the actor's EXP but instead $game_variables[950], which itself is tied to the value of whatever is assigned to it. This allows me to have a customizable system.
  • This is why the number changes to 10 in the video, variable 950 was using the 10 blue salves as the stored value instead of the keys.
  • If the value of variable 950 goes over 99, it stays as a static "99+" so it doesn't ruin the key counter by going off the entire thing.
I think it's safe to say I've cracked this one.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-falcao-pearl-abs-hud-key-addon.148134/