Walldeaf

The Event-Master
Veteran
Joined
Apr 29, 2013
Messages
91
Reaction score
70
First Language
Dutch
Primarily Uses
RMVXA
Hi,

Currently on my new project in MV, I am working with SRD Hudmaker.
Awesome plugin, but I want to make a square rotate behind the actor's picture, when it's his or her turn.
I have got the square, i have the actors, I have the turning, now I only need the comdition.
The square rotates, when it's the player's turn to choose his/her action.
After that, the square dissapears and goes to the next actor.
I hope you guys understand what I mean.

I'll need a command kinda like: ${$gameParty.leader().turn} or something...
to make the condition true.
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
947
Reaction score
497
First Language
English
Primarily Uses
RMMV
I'd add it into Sprite_Actor.prototype.stepForward() and stepBack.
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
3,901
Reaction score
1,483
First Language
Dutch
Primarily Uses
RMMV
you might need around this (this is a cycle one) but you need to speciafy the ID
to rotate it by than: BattleManager.actor().actorId()
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
8,392
Reaction score
5,544
First Language
Dutch
Primarily Uses
RMXP

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

 

Walldeaf

The Event-Master
Veteran
Joined
Apr 29, 2013
Messages
91
Reaction score
70
First Language
Dutch
Primarily Uses
RMVXA
Hi guys,

I tried to input both, but without succes.
I looked it up in Ace, the moment where it should appear:
start_actor_command_selection
It's at this moment, I don't know the javascript for it.
And as Shadowdragon said: it has to be for actor 1,2,3 and 4 seperately.

Here is a screenshot:
moment.png
 
Last edited:

JGreene

Veteran
Veteran
Joined
Oct 24, 2015
Messages
452
Reaction score
360
First Language
English
Primarily Uses
RMMV
You can make the condition by the actor selected and their index in the party and not have to use every single actor ID in your database, but you have to make a separate element for each individual slot in your battle party. I don't know the code for the actor select either, but maybe this bit of info will help narrow it down for someone who does.
 

Walldeaf

The Event-Master
Veteran
Joined
Apr 29, 2013
Messages
91
Reaction score
70
First Language
Dutch
Primarily Uses
RMVXA
You can make the condition by the actor selected and their index in the party, but you have to make a separate element for each individual slot in your battle party. I don't know the code for the actor select either, but maybe this bit of info will help narrow it down for someone who does.
Yes, and what's the condition code?
 

JGreene

Veteran
Veteran
Joined
Oct 24, 2015
Messages
452
Reaction score
360
First Language
English
Primarily Uses
RMMV
For the index part:
$gameParty.battleMembers()[index]

Where index is 0-3 or higher if you have more than 4 actors in battle. But for this to work there needs to be something appended to it to show that the indexed actor is selected or ready to be given a command
 

Beckx

Villager
Member
Joined
Mar 29, 2021
Messages
18
Reaction score
138
First Language
german
Primarily Uses
RMMV
this thread/post also might be of interest regarding the condition, here the wish was to make a picture only appear when basically nothing is happening (like an attack or something -> "action"), and i think some parts could be adaptable / usable for your case?
 

Walldeaf

The Event-Master
Veteran
Joined
Apr 29, 2013
Messages
91
Reaction score
70
First Language
Dutch
Primarily Uses
RMVXA
For the index part:
$gameParty.battleMembers()[index]
I have entered this into the condition, and now, it stays spinning, so my guess is that this
only reads if the character exists, and doesn't stop if it's not his/her turn to input a command.
Thanks for effort, atleast. :thumbsup-right:

Beckx:​

this thread/post also might be of interest regarding the condition, here the wish was to make a picture only appear when basically nothing is happening (like an attack or something -> "action"), but maybe some parts could be adaptable / usable for your case?
I have tried this, but it shows when the character performs a skill like attack, not when the choice
needs to be made.

I guess this will maybe be a shot too far and unattainable at the current time.
 
Last edited:

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,419
Reaction score
1,830
First Language
EN
Primarily Uses
RMMZ
Try this:
JavaScript:
BattleManager._phase === 'input' && BattleManager._actorIndex === 0
I think this should be true iff the first party member (leader, index 0) is currently inputting. Replace the 0 with 1, 2, etc for the other members~
 

Beckx

Villager
Member
Joined
Mar 29, 2021
Messages
18
Reaction score
138
First Language
german
Primarily Uses
RMMV
I have tried this, but it shows when the character performs a skill like attack, not when the choice
needs to be made.
ah, shoot. well, i haven't played around with the plugin yet, though i plan to, which is why i've bookmarked the other thread :)
I thought maybe you'd get what you want if you negate the other condition, so that you have the opposite effect of what it's currently doing.

though it seems that there is a special 'input' phase, which probably is a safer check than "not action"
 

Walldeaf

The Event-Master
Veteran
Joined
Apr 29, 2013
Messages
91
Reaction score
70
First Language
Dutch
Primarily Uses
RMVXA
Currently at my work, so I can't check, but I will when I get home. Got a good feeling about the last one, with the input rule.


BattleManager._phase === 'input' && BattleManager._actorIndex === 0

It works :) !!!!!! Yaaaaay. Thank you. /bow
 
Last edited:

Latest Threads

Latest Posts

Latest Profile Posts

I can come up with all of the magic skills in the world, but I can hardly think of creative physical weapon skills within the JRPG realm. One of those ones....
It's time for episode 19 of our Make a Cliff Map in RPG Maker MZ... I mean, Make a Game in RPG Maker MZ! Today we're working on our cliff map again. Let's see if we can finish it this time!

A side story is almost getting into the next stage. Almost everything in this game has real-life references.
unfinishedbuildingwip1.jpg
Everyday life is full of absurdity. This is just a reflection.
TFW you discover how the script batching works in VNMaker... after you've had the program for almost 3 years.

Forum statistics

Threads
111,408
Messages
1,060,908
Members
144,765
Latest member
tinsel2
Top