Store current actor ID into variable

Hey guys.


I have mabye a simple question.


I need to know a scriptcall or somethinh to check the current actor in battle. The id from the actor, who is on turn actually. 


Example:


current actor id = variable 


Please help :/
BattleManager.actor().actorId()
Many thanks, but this happend.


Where is the mistake?

Spoiler
Unbenannt.PNG


Unbenannt2.PNG
hmmm,


when you put it that way it means you trying to get enemy's ID
And how i use it to get the actor? 😀
Enemy is unimportant.
Should i do it in a skill or a common event?


I want to check every turn, which actor is on turn.
And how i use it to get the actor? 😀
Enemy is unimportant.
Should i do it in a skill or a common event?


I want to check every turn, which actor is on turn.



Btw, your way will check once in the battle unless you have plugin to check every turn.


I love complicated way to get what i want, so if you want i can make plugin for check every turn or wait for anyone have a way to check


without plugin
Btw, your way will check once in the battle unless you have plugin to check every turn.


I love complicated way to get what i want, so if you want i can make plugin for check every turn or wait for anyone have a way to check


without plugin

Sounds pretty 😀 What do you want for your work?
 


Mabye you want some background:

Spoiler
Look here:






I want to check every actor to check his TP and other conditions and if its true, then i will blend a picture with "Overdrive" or something. Like in the link.


I dont want only to lock a new stype window. Thats to standard. I want that the player press Q or something to open a specific stype window and choose his overlimit skills.
An every actor have of course his own skills. I want to create the skill window with yanflys common event menu, because i dont know the scriptcall to open stype windows in battle. Hope you understand what i mean 😀


And the overdrive window should be apear if the conditions met. But i need to check the specific actor, because i dont want, that actor 3 have 100Tp and its actor1's turn and he can access the overdrive menu.
Try this

View attachment CheckActorId.js

Works pretty *.* many thanks for this!


Do have an idea how i create an event before the actor turn? I have to check the variable from your script at the beginning of the actor action. The maker only allow to execute an event at the


end of each turn.


Edit:


Maybe you can include an common event call in your script, every time when it checks the current actor?


That would be awesome 😀
 
Bump! 🙂
Bump! 🙂

Sorry I wasn't forgot about you


But I faced hard time to make it work before actor's turn 
Oh i'm sorry. I don't want to get on your nerves.


I thought you only have to write on line like:

Code:
$gameTemp.reserveCommonEvent
Oh i'm sorry. I don't want to get on your nerves.


I thought you only have to write on line like:

Code:
$gameTemp.reserveCommonEvent
Oh i'm sorry. I don't want to get on your nerves.


I thought you only have to write on line like:


$gameTemp.reserveCommonEvent(ID)


But no problem, i would find a way 🙂
I thank you very much for your trouble 😀
Oh i'm sorry. I don't want to get on your nerves.


I thought you only have to write on line like:



$gameTemp.reserveCommonEvent(ID)


But no problem, i would find a way 🙂
I thank you very much for your trouble 😀



I know that script


but i couldn't make it execute in the begin of actor's turn with actor's id


I think there is plugin can execute common event anytime in battle but i am not sure 
I watched everywhere but i dont find any plugin for that. I would not ask you, if i found some plugin for that

Original thread: https://forums.rpgmakerweb.com/threads/store-current-actor-id-into-variable.67382/