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,713
Reaction score
2,830
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 Profile Posts

Fire-Emblem Style Level Up System, Boost on Class Change, And Animated Arrows | RPG Maker News #115

Why keyboards don't sleep? Because they have two shifts.
I realized a while ago my game was toooo big in scope. even now I wonder am I trying to do too much by myself. and that's after completely changing the format of the game.
Last week at SLC. Cali awaits. TBH I love SLC more than SF.
Back home now. I had a good time, but I had a checkup this morning so I had to come home for that. Now I'm just waiting for my therapist meeting tomorrow...
Decided to work on Wishful Wanda today. Since it's a BFB spinoff game, I decided to make the Huang brothers
Easter eggs! I'm actually pitching this to the BFDI team, btw.

Forum statistics

Threads
113,935
Messages
1,078,527
Members
148,045
Latest member
gamegialap
Top