Status
Not open for further replies.

AeroFunk80

Veteran
Veteran
Joined
Aug 25, 2016
Messages
297
Reaction score
176
First Language
English
Primarily Uses
RMMV
This is for MV. I'm not 100% sure how I should write this out:

1660732229911.png

In case you're not sure how this works... you can display images, text, bars, etc. via a tool. My question is regarding the players TP bar. I have it working just fine, but the issue I'm having... is the # text displaying total TP shows up even if that character isn't in the party. I'm wanting to only have it show if they're in the party. I could assign a switch to this, but I was wondering what the condition would be to have it check if a particular actor is in the party, and only if they are... does it display that text?

Thanks and let me know if you need anything else or any other details.
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
6,321
Reaction score
2,467
First Language
Dutch
Primarily Uses
RMMV
check if battleMember of that actor exist.
I got a scriptcall how to cycle through it, I can check later for you
if you still need it once I'm back.

EDIT:
this check for the partyMember ID which is currently in your party,
so if you switch formation, it should switch through it too.

JavaScript:
$gameParty.members()[memberID]._actorId

change memberID to a fix number, so if you use 4 members in party,
you probably need all 4 of them.

cycle through if you have 1 hud instead of seperately, you can use:
JavaScript:
BattleManager.actor().actorId()
otherwise, I dont know.
 
Last edited:

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
5,601
Reaction score
3,663
First Language
English
Primarily Uses
RMMV
There's no need to check different members of your party and cross-reference their actor IDs or cycle through anything - just check whether that one specific actor is in your battle party:
Code:
$gameActors.actor(ID).isBattleMember()
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
6,321
Reaction score
2,467
First Language
Dutch
Primarily Uses
RMMV
I compleetly forget that one, I save that one as well, can come in handy ^^
nice catch Turan :D
 

AeroFunk80

Veteran
Veteran
Joined
Aug 25, 2016
Messages
297
Reaction score
176
First Language
English
Primarily Uses
RMMV
There's no need to check different members of your party and cross-reference their actor IDs or cycle through anything - just check whether that one specific actor is in your battle party:
Code:
$gameActors.actor(ID).isBattleMember()
That did it. Thanks for the help, Turan!

@ShadowDragon Thanks for your help, as well! You're both amazing :kaojoy:
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,950
Reaction score
15,999
First Language
English
Primarily Uses
RMMV

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

New sprites & animations for Mint and Beri are coming along!
Guh-Colorbound.gif
ScreenShot_10_5_2022_4_44_8.png
Mad O' Malley... a stick figure that's afraid of it's existence being erased. so they always start battle in an anxious state.
Before, I was drawing all the sprite work, super big and shrinking it down. Which was really time consuming if thing's changed. So instead I'm drawing the characters sketch, and then remaking it with pixel art instead.
Why are job interviews so terrifying. :kaodes:

Forum statistics

Threads
125,801
Messages
1,173,671
Members
164,965
Latest member
RicardoCabral
Top