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,404
Reaction score
2,503
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

I hate doing voice over videos but people said they like hearing about the details.
Modern Town Overworld, World of Solaria Dungeon, 80's Retro-Futuristic Font | RPG Maker News #73

I been slowing down and not focusing on project currently.
I had this idea for VTubers vs MOTHER and its a bunch of Vtubers finding eight melodies to fight a psychic alien and a fat kid. IDK, kinda find it hard to use RPG Maker for more than 15 minutes
Working on some wizard/magic bases:
TestChara-10-hover.gif

I mean, technically it's a flying base but I haven't made any wings yet, so magic hovering is it for now.

Forum statistics

Threads
112,297
Messages
1,067,156
Members
145,923
Latest member
katsuumo
Top