I am using the SRD HUD maker plugin and I am trying to place a condition so that an image will only show during the turn of the specific actor that is currently acting in battle scene. I cant seem to find the right code. i found the code that i need but its incomplete. im using BattleManager.isInputting() but i dont know how to specify which actor.. it just works for every actor that is inputting. where do i put the code to specify which actor is currently inputting?
does that make sense?
question about a Javascript condition for SRD HUD editor
● ARCHIVED · READ-ONLY
-
-
the one you use is incorrect as well. but what is the exact purpose?
what is the amount of the max battle members you have?
because I think you might need to check the name of the battle member if its more
than 4 though. if its a skill where it shows, than you might need to combine both
of those as a condition.
condition will be showing "red" (not met but correct if the code stays)
or green, while it is met.
best way to show a picture in battle (if its more than 4 members in the field,
is to check if the switch = true in the skill, which might be easier to accomplish. -
the one you use is incorrect as well. but what is the exact purpose?
what is the amount of the max battle members you have?
because I think you might need to check the name of the battle member if its more
than 4 though. if its a skill where it shows, than you might need to combine both
of those as a condition.
condition will be showing "red" (not met but correct if the code stays)
or green, while it is met.
best way to show a picture in battle (if its more than 4 members in the field,
is to check if the switch = true in the skill, which might be easier to accomplish.
i only have 4 actors.. what im trying to do is just show an image while the actor is inputting, once action selected, image goes away. and im trying to show a different image for each actor.. its like a visual cue showing it is that actors turn to make a move. so i need a condition that says something like "if actor 1 is inputting, return true" -
ok so i almost have it.. i got
BattleManager.actor() && BattleManager.actor().actorId() === 1
that works.. almost. i just need a way to make sure the image goes away once I select the enemy.. if i do it the way i posted here, the image stays all the way through the turn -
i solved this. sorry for all the trouble.. LOL this works perfectlyok so i almost have it.. i got
BattleManager.actor() && BattleManager.actor().actorId() === 1
that works.. almost. i just need a way to make sure the image goes away once I select the enemy.. if i do it the way i posted here, the image stays all the way through the turn
BattleManager.isInputting() && BattleManager.actor() && BattleManager.actor().actorId() === 1