RMMZ Get Actor Image via JavaScript / make the image a circle via JavaScript

Neareyn

Villager
Member
Joined
Apr 21, 2021
Messages
19
Reaction score
3
First Language
German
Primarily Uses
RMMZ
Hello!

I'm currently trying to get an Actor Image via JavaScript and then set a radius so it becomes a circle.
I wanna use it inside of HUDMakerUltra.

I was able to get the actor class with code but I can't figure out how I can get the actor image with it.
if($gameParty.allMembers()[0] != null){ return $gameParty.allMembers()[0].currentClass().name; } else{ return ""; }
I tried to change "currentClass().name" to "faceImage()" but that didn't work.

The HUDMakerUltra can create the image too, but it only shows "return 1;" as code and I can't figure out how to set a radius with that.

I don't have any knowledge with JavaScript beside a bit knowledge to edit things. (or google them, but that's why I can't get the second method to work)
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
3,423
Reaction score
2,517
First Language
English
Primarily Uses
RMMZ
You can use $gameParty.leader() rather than allMembers()[0]. The property for face graphic is .faceName IIRC
 

Neareyn

Villager
Member
Joined
Apr 21, 2021
Messages
19
Reaction score
3
First Language
German
Primarily Uses
RMMZ
I use "allMembers()[0]" since I have multiple characters that are shown in the HUD.
.faceName just gives me an error :/
 

Latest Threads

Latest Posts

Latest Profile Posts

Pretty much stopped posting in the progress thread cuz it feels like talking to the void, lol, so I've just been posting on IG instead. But someone finally liked my post there, lol. Dunno if I'll continue tho. Probably not xD

My game's progressing quite well. Just kinda stuck on mapping right now. Decided to go the side, slightly top down view route. I'm drawing everything from scratch for a personal touch uwu
Stomach isn't feeling too good last time. Perhaps something I ate
Phew! logged back. Seems I was too occupied with 3D learning (yeah for RPGM purposes) creating IRL space, trying to grow catnip, dealing with health and DC is good. (so MrC) ^^
Tyler.stewart wrote on Cherry's profile.
I was wondering if you've heard anything about the patch that allows you to show text anywhere on the screen utilizing pictures being upgraded to work with the official 2k3 release? Your work with 2k3 is awesome dude, keep it alive. I'm 33 and am still playing with 2k3 largely thanks to your work with the game engine. I appreciate the official patch updates you post. Please continue posting
Currently trying to add items in the same style as Kyrise's excellent icons. I like having a large variety of items :3 KyriseandMe.PNG

Forum statistics

Threads
112,333
Messages
1,067,465
Members
145,971
Latest member
sullivanvicente
Top