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,705
Reaction score
2,807
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

So the number one complaint I get so far is the levels are simply too large. What's funny is in testing I deemed levels taking too long and actually shortened them. Figuring I could beat them in 5-6 minutes so players would be able to do so in probably double that. I was apparently very mistaken, only one player has mentioned even reaching the second area. Let alone the first boss. :kaoswt:
I don't believe it. I actually did some proofreading in my game - and fixed some grammar errors! I feel so accomplished, knowing I can actually proofread my own writing!
...I've had a bad day, okay? Bad enough for me to want to proofread stuff. :yswt2:
Ughhh, July is not my month. Thankfully, it's nearly done.
mercba30 wrote on Jesse - PVGames's profile.
How do I get the new version of the character creator? Thank you in advance!

I fixed the lips and noses for MZ! The files have been updated.
qQwgk8C.png

Everything below!
Ugh, I opened MV after a few weeks and I'm completely lost on what I was working on.
Does it happen to someone else or am I the only disorganized one around? :kaoswt:
xH5Fk2f.jpg

Forum statistics

Threads
113,674
Messages
1,076,580
Members
147,694
Latest member
ProjectElpizo
Top