How To Make Current Active Battle Member Condition?!

Status
Not open for further replies.

GlitchRabbit

Villager
Member
Joined
Dec 23, 2019
Messages
5
Reaction score
0
First Language
English
Primarily Uses
RMMV
bandicam 2019-12-22 16-00-27-927.png

Okay so here is the problem I'm having. I'm using a plugin SumRdmDudes HUD Maker. Now the reason I'm asking here is because of "Conditions." I can't figure out the commands for "Currently Selected Character"
So what I'm wanting to do is under "Condition" I want this image to only appear when that character is active. So when "Damien" is active or attacking, the picture will display. Then when it goes to "Isaak" I'd like to have his image show up and so on and so on. The only problem is the picture just shows up and never leaves during the battle. I'm sorry if this seems weird and all, just wanting to have a personal touch on the Battle Hud. Thank you.
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
15,351
Reaction score
8,532
First Language
English
Primarily Uses
RMMV

I've moved this thread to Plugin Support. Please be sure to post your threads in the correct forum next time. Thank you.


Moved here based on your "primarily uses" being set to MV.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
The screenshot you have shown is not when someone is "active" or "attacking" - it is simply the selection of actions for each character.

So can you please clarify - do you want to know which character is currently choosing the action they will later execute, or which character is actually executing an action? They are two different stages of the battle.

If you actually want what's in your screenshot, try BattleManager.actor().actorId() which will return the currently selected actor's id, which you can then compare as required. eg: BattleManager.actor().actorId() === 1 will be true if it is actor 1's turn to choose.
 
Last edited:

GlitchRabbit

Villager
Member
Joined
Dec 23, 2019
Messages
5
Reaction score
0
First Language
English
Primarily Uses
RMMV
The screenshot you have shown is not when someone is "active" or "attacking" - it is simply the selection of actions for each character.

So can you please clarify - do you want to know which character is currently choosing the action they will later execute, or which character is actually executing an action? They are two different stages of the battle.

If you actually want what's in your screenshot, try BattleManager.actor().actorId() which will return the currently selected actor's id, which you can then compare as required. eg: BattleManager.actor().actorId() === 1 will be true if it is actor 1's turn to choose.
Ooops sorry about the confusion. I want the picture to stay on when that character is currently choosing the action they will later execute. Then when the next character is up to choose, that pic will disappear and their pic will pop up. So for that particular pic, it will be for Actor 0001 Damien. Hope that made some sense, hehe.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
I gave you a possible solution - did you try it? Note, never put 0001 as an id. Just put 1. At least with previous versions of the engines, weird things happened when you added leading zeros, and it's not necessary, so best to just not do it.
 

GlitchRabbit

Villager
Member
Joined
Dec 23, 2019
Messages
5
Reaction score
0
First Language
English
Primarily Uses
RMMV
I gave you a possible solution - did you try it? Note, never put 0001 as an id. Just put 1. At least with previous versions of the engines, weird things happened when you added leading zeros, and it's not necessary, so best to just not do it.
Thanks for your time. I've tried with: BattleManager.actor().actorId()1 and BattleManager.actor().actorId()[1]

It turned red and had an error
Again sorry for the noobness. I've used Rpgmaker several times and many versions. But only stuck to default everything for fun. This round I'm trying a few things to mix it up.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Neither of those is what I suggested. Please look carefully at my post again. In fact, copy and paste the text.

BattleManager.actor().actorId() === 1
 

GlitchRabbit

Villager
Member
Joined
Dec 23, 2019
Messages
5
Reaction score
0
First Language
English
Primarily Uses
RMMV
Sorry, I forgot to say I tried pasting it. It was green and all good, and as soon as the character completed an action, it got an error, and the condition turned red and the picture wouldn't return. So then I tried those other things I posted. I do appreciate the advise :)bandicam 2019-12-22 20-48-07-336.pngbandicam 2019-12-22 20-52-25-715.png
 
Last edited:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Okay, try this:

Code:
BattleManager.actor() && BattleManager.actor().actorId() === 1
I am guessing that there was at least temporarily no actor selected and that's what made it error. If this altered version also fails, please hit F8 and post a screenshot of the Console tab so we can see the error message.
 

GlitchRabbit

Villager
Member
Joined
Dec 23, 2019
Messages
5
Reaction score
0
First Language
English
Primarily Uses
RMMV
Okay, try this:

Code:
BattleManager.actor() && BattleManager.actor().actorId() === 1
I am guessing that there was at least temporarily no actor selected and that's what made it error. If this altered version also fails, please hit F8 and post a screenshot of the Console tab so we can see the error message.
You are Awesome! It worked. Thank you so much! :)
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Perfect! SRD Hud is a nice looking plugin.

If this question is resolved, just report your first post and let the mods know, and they'll close the thread for you.
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
7,830
Reaction score
5,221
First Language
Dutch
Primarily Uses
RMXP

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.

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

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,975
Members
137,563
Latest member
cexojow
Top