Could someone please inform me of the right coding term?

I would like to know what the term used by the games code to distinguish which party member selected in battle is.
I assume it would be similar to ${$gameParty.leader()} maybe something like ${$gameParty.selected()}?
I think it's BattleManager.actor(); but plugins can complicate things
I think it's BattleManager.actor(); but plugins can complicate things
thanks for answering but it didnt seem to work :I
It would be more useful for you to describe what you're trying to do.

You're jumping to the end result, but that may not be the correct thing for your situation.

Even in your post where you said it didn't work (and what @Gensun provided is a valid script call), you never said what you're trying to achieve.
It would be more useful for you to describe what you're trying to do.

You're jumping to the end result, but that may not be the correct thing for your situation.

Even in your post where you said it didn't work (and what @Gensun provided is a valid script call), you never said what you're trying to achieve.

ah right, what I want to do is have a text box in battle that lists which party member is currently selected. I am using sumrnddude's HUD maker which might interfere with things a little =.=
ah right, what I want to do is have a text box in battle that lists which party member is currently selected. I am using sumrnddude's HUD maker which might interfere with things a little =.=
What exactly have you tried?
if youre just trying to display the name, use BattleManager.actor().name();
trying to output the entire battler directly into some textbox probably wont get you anything usable
have a text box in battle that lists which party member is currently selected
this is not as easy as you think, because it depends on your battlemode as well as your battle plugins - something you never told anywhere.

for example if you have turn-based battle, then the selection phase (where you decide what skill to use) is different than the execution phase (where the skill is processed and displayed).
To the point that the selection order is independent of the execution order.

and that is only one possible battlemode, with plugins you can get to other modes.
SRD HUDMaker should be able to display the currently selected actor if you give it the code for it.
What exactly have you tried?
if youre just trying to display the name, use BattleManager.actor().name();
trying to output the entire battler directly into some textbox probably wont get you anything usable
I have indeed tried that and it had failed :T.

I used this ``What will ${$BattleManager.actor().name();} do?``
Why is there a dollar sign in front of it?
Why is there a dollar sign in front of it?
OHHH, could that be it im very inexperienced with javascript so I didn't really understand the innate purpose of the dollar sign, just that it exists.
Code is just like English words - if you don't type it the way you're told, it's misspelled 😉

Robro didn't have a dollar sign in front of the letters he gave you, so you shouldn't add one. It should work if you correct that.
I have indeed tried that and it had failed :T.

I used this ``What will ${$BattleManager.actor().name();} do?``
It looks like what you're trying to do there is string interpolation, but I think you need to remove one set of `` on either side for that. And no $ before BattleManager.

Original thread: https://forums.rpgmakerweb.com/threads/could-someone-please-inform-me-of-the-right-coding-term.164564/