• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • The Eevee Expo Game Jam has concluded! 🎉 Head on over to the game jam forum to play through the games.
    Don't forget to come back September 21st to vote for your favorites!
  • Reminder: AI-generated content is not allowed on the forums per the Rules and Regulations. Please contact us if you have any questions!
[v13+] Simple HUD

Resource [v13+] Simple HUD 3.0.1

-FL-

Pokémon Island Creator
Member
Joined
Aug 28, 2022
Posts
375
-FL- submitted a new resource:

Simple HUD - Displays a HUD with the party icons (with tones for status), HP bars and some small text.

gif.gif
screen.png

Displays a HUD with the party icons (with tones for status), HP bars and some small text.

Tested on Essentials v13 and v20.1. If this script isn't working on latest Essentials version, please inform on this thread.

Read more about this resource...
 
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.3]

Exception: NoMethodError
Message: undefined method `party' for nil:NilClass

Backtrace:
Simple HUD:215:in `block in refreshAllPokemon'
Simple HUD:213:in `each'
Simple HUD:213:in `refreshAllPokemon'
Simple HUD:208:in `refresh'
Simple HUD:146:in `create'
Simple HUD:318:in `update'
Simple HUD:303:in `tryUpdate'
Simple HUD:381:in `update'
Spriteset_Map:66:in `initialize'
Sprite_AnimationSprite:52:in `initialize'
 
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.3]

Exception: NoMethodError
Message: undefined method `party' for nil:NilClass

Backtrace:
Simple HUD:215:in `block in refreshAllPokemon'
Simple HUD:213:in `each'
Simple HUD:213:in `refreshAllPokemon'
Simple HUD:208:in `refresh'
Simple HUD:146:in `create'
Simple HUD:318:in `update'
Simple HUD:303:in `tryUpdate'
Simple HUD:381:in `update'
Spriteset_Map:66:in `initialize'
Sprite_AnimationSprite:52:in `initialize'
Fixed!
 
Hello I'm a Newbie,

how do i get this to work? I've put the Script in the plugins folder and flipped the switch to 1, compiled it, but i cant get it to render.

Thanks in Advance!
 
Hello I'm a Newbie,

how do i get this to work? I've put the Script in the plugins folder and flipped the switch to 1, compiled it, but i cant get it to render.

Thanks in Advance!
You probably incorrectly converted it into a plugin. Instead, paste it above main (in scripts view). Here is the method to create a plugin, if you are interested.
 
Last edited:
An user asked me how to change background color based in a variable. To do this. Change line BACKGROUND_COLOR = Color.new(128,128,192) to
Ruby:
Expand Collapse Copy
def backgroundColor
  return case pbGet(42)
    when 1; Color.new(192,128,128)
    when 2; Color.new(128,192,182)
    else;   Color.new(128,128,192)
  end
  return Color.new(128,128,192)
end

Change the other BACKGROUND_COLOR to backgroundColor

So, when variable 42 is 1, the color is red. When it is 2, the color is green. Else, the color is blue.

You can do a similar thing wih the text color (remember that it is an array, [Color.new,Color.new] rather than Color.net) and bg path.
 
Back
Top