Walldeaf

The Event-Master
Veteran
Joined
Apr 29, 2013
Messages
90
Reaction score
69
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
888
Reaction score
475
First Language
English
Primarily Uses
RMMV
I'd add it into Sprite_Actor.prototype.stepForward() and stepBack.
 

ShadowDragon

Veteran
Veteran
Joined
Oct 8, 2018
Messages
3,802
Reaction score
1,444
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,353
Reaction score
5,523
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
90
Reaction score
69
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
90
Reaction score
69
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
90
Reaction score
69
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,408
Reaction score
1,817
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
90
Reaction score
69
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

Just finished my first Slip into Ruby since last July! It'll be up and added to the main post tomorrow, along with a new Jump into Javascript.
to pass the time.pngTesting out making boxes and packs of items. These things are always fun to do.
Rural Japan Tiles, Giant Dragon Sprite, Paint Icons? & Game Spicy Pixel Fonts | RPG Maker News #31

just hopped into project recruitment... hoping to maybe find some artists to help with parallax maps and whatnot. I could do them myself, but I'm not really good at it so I'd prefer to stick to my strengths which is character art and SOME UI elements.
PRODUCTIVE DAY! I think I FINALLY completed all the items for part 1 of Fallen Feather, that includes the animations, the stats, the pricing, etc. for weapons, armors, key and consumables! all i need to be 100% done is write a few more descriptions (only 10 left out of the 40+ items) and to find some nice pants icons (dont ask lol).

Forum statistics

Threads
111,097
Messages
1,058,268
Members
144,302
Latest member
Richard_Co
Top