Status
Not open for further replies.

AeroFunk80

Veteran
Veteran
Joined
Aug 25, 2016
Messages
295
Reaction score
175
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,289
Reaction score
2,461
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,459
Reaction score
3,536
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,289
Reaction score
2,461
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
295
Reaction score
175
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,903
Reaction score
15,976
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 Profile Posts

So, yeah. It's there.

Clarn Hold
(No storylines)
There was a tutorial on how to draw anime eyes. Just draw Among Us. So I tried.
Screenshot_107.jpg
DamageActor3_7.png added!
index.php

Making a "characters first appearance" drawing for my game. Now I just have to finish the sprite art animation for her grand entrance.​

Forum statistics

Threads
125,540
Messages
1,171,821
Members
164,614
Latest member
guymelul
Top