Store current actor ID into variable

styx92

Veteran
Veteran
Joined
Jan 7, 2016
Messages
310
Reaction score
39
First Language
German
Primarily Uses
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 :/
 

mrcopra

Veteran
Veteran
Joined
Jul 21, 2015
Messages
452
Reaction score
158
First Language
Not English
Primarily Uses
N/A
BattleManager.actor().actorId()
 

styx92

Veteran
Veteran
Joined
Jan 7, 2016
Messages
310
Reaction score
39
First Language
German
Primarily Uses
Many thanks, but this happend.


Where is the mistake?

Unbenannt.PNG


Unbenannt2.PNG
 

mrcopra

Veteran
Veteran
Joined
Jul 21, 2015
Messages
452
Reaction score
158
First Language
Not English
Primarily Uses
N/A
hmmm,


when you put it that way it means you trying to get enemy's ID
 

styx92

Veteran
Veteran
Joined
Jan 7, 2016
Messages
310
Reaction score
39
First Language
German
Primarily Uses
And how i use it to get the actor? :D
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.
 

mrcopra

Veteran
Veteran
Joined
Jul 21, 2015
Messages
452
Reaction score
158
First Language
Not English
Primarily Uses
N/A
And how i use it to get the actor? :D
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
 

styx92

Veteran
Veteran
Joined
Jan 7, 2016
Messages
310
Reaction score
39
First Language
German
Primarily Uses
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 :D What do you want for your work?
 


Mabye you want some background:

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 :D


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.
 

styx92

Veteran
Veteran
Joined
Jan 7, 2016
Messages
310
Reaction score
39
First Language
German
Primarily Uses
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 :D
 
 
Last edited by a moderator:

styx92

Veteran
Veteran
Joined
Jan 7, 2016
Messages
310
Reaction score
39
First Language
German
Primarily Uses
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
 

styx92

Veteran
Veteran
Joined
Jan 7, 2016
Messages
310
Reaction score
39
First Language
German
Primarily Uses
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
 

styx92

Veteran
Veteran
Joined
Jan 7, 2016
Messages
310
Reaction score
39
First Language
German
Primarily Uses
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 :D
 

mrcopra

Veteran
Veteran
Joined
Jul 21, 2015
Messages
452
Reaction score
158
First Language
Not English
Primarily Uses
N/A
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 :D


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 
 

styx92

Veteran
Veteran
Joined
Jan 7, 2016
Messages
310
Reaction score
39
First Language
German
Primarily Uses
I watched everywhere but i dont find any plugin for that. I would not ask you, if i found some plugin for that
 

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

Latest Threads

Latest Profile Posts

I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

A bit of a "sparkle" update to the lower portion of the world map. :LZSexcite:
attack on titan final season is airing tomorrow, I'm excited and scared at the same time!

Forum statistics

Threads
105,882
Messages
1,017,230
Members
137,607
Latest member
Maddo
Top