Calling Actor HP into a variable?

Murg1

Villager
Member
Joined
Feb 27, 2019
Messages
20
Reaction score
1
First Language
English
Primarily Uses
RMMV
I am trying to call a variable Actor ID to set the HP of that actor as another variable.

I am trying to do it like this:

$gameActors.actor($gameVariables.value(0001)).hp

Where 0001 is just a theoretical variable that I have set = to the ID of the actor who's ID I need.

... It doesn't seem to do anything.

I have already checked and the variable is indeed storing an Actor ID already. It just doesn't come out as HP when I try.

How do I call a variable Actor ID and check it's HP?
 

Aloe Guvner

Walrus
Veteran
Joined
Sep 28, 2017
Messages
1,628
Reaction score
1,115
First Language
English
Primarily Uses
RMMV
Numbers don't have leading zeros, so just use 1 instead of 0001
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

This is relevant so much I can't even!
Frostorm wrote on Featherbrain's profile.
Hey, so what species are your raptors? Any of these?
... so here's my main characters running around inside "Headspace", a place people use as a safe place away from anxious/panic related thinking.
Stream will be live shortly! I will be doing some music tonight! Feel free to drop by!
Made transition effects for going inside or outside using zoom, pixi filter, and a shutter effect

Forum statistics

Threads
105,999
Messages
1,018,219
Members
137,777
Latest member
Bripah
Top