[help] Is there a way to show a picture in battle depending on what action is performed?

How can I show a specific picture in battle depending on which equipment is used by an actor what skills they use and what states they are in? Basically said picture would show what this actor is doing/wearing at the moment.

If it was answered somewhere already please direct me there as I can't find any information on it.

EDIT: So basically thanks to Yanfly's Buffs & States Core I can show pictures tied to a variable. And have said variable change with states. Need to figure out a way to assign specific images to a specific actors.

Using RPG Maker MV.
Thank you.
How can I show a specific picture in battle depending on which equipment is used by an actor what skills they use and what states they are in? Basically said picture would show what this actor is doing/wearing at the moment.

If it was answered somewhere already please direct me there as I can't find any information on it.

EDIT: So basically thanks to Yanfly's Buffs & States Core I can show pictures tied to a variable. And have said variable change with states. Need to figure out a way to assign specific images to a specific actors.

Using RPG Maker MV.
Thank you.

I don't use that particular addon. And I'm not sure if I exactly understand what you are asking. So take this with a grain of salt.

But if you are attempting to show a picture when a skill is being used by a specific actor, one way you might can do this is to make your skills actor specific and then add common events to them that show the picture when the skill is being used.

For example, let's say you have a fire spell and four actors. Make four identical but separate fire spells, one for each actor. That way when they use the spell during combat you'll be able to tell which actor is using it.

There are probably better and more convenient ways to do this. But that's how I do it. If you figure out an easier way please let me know.
How can I show a specific picture in battle depending on which equipment is used by an actor what skills they use and what states they are in? Basically said picture would show what this actor is doing/wearing at the moment.
I'm having a hard time visualizing what you're describing here. Do you have an example from another game of what you want? Or can you make a little mock up picture?

Generally speaking, if you can do kind of what you want using the Buffs and States Core, then you can customize per actor using the code inside those notetags. For example,
Code:
if (user.actorId()==1)
will make your next command execute only if the state is on actor ID 1. But you'd need to show what you're doing now in your states notetags for us to be of any help.
if you are attempting to show a picture when a skill is being used by a specific actor
This is, at least, not what the OP asked. It is possibly what they want, but not as stated 😉
one way you might can do this is to make your skills actor specific and then add common events to them that show the picture when the skill is being used.

For example, let's say you have a fire spell and four actors. Make four identical but separate fire spells, one for each actor. That way when they use the spell during combat you'll be able to tell which actor is using it.

There are probably better and more convenient ways to do this. But that's how I do it. If you figure out an easier way please let me know.
I see two problems with this.

1 - It is quite inefficient/inconvenient to make all of your skills multiple times and code all of those common events with conditionals and such.

2 - It can have a detrimental effect on your play experience. Common events play after a skill has resolved, so if you're trying to show images during the skill, this just won't work, and will look odd instead.

Yanfly's Action Sequences are a way to accomplish this during a skill. You can show images at any point, use conditionals to do different things depending on which actor is using the skill, and eliminate the need for any common events or multiple skills.

Of course, this might not apply to you - your profile doesn't say which version of RPG Maker you use, so if it's something earlier than MV, you won't be able to use plugins. But the thread is for MV, and MV and MZ both have action sequence plugins.
I'm having a hard time visualizing what you're describing here. Do you have an example from another game of what you want? Or can you make a little mock up picture?

Generally speaking, if you can do kind of what you want using the Buffs and States Core, then you can customize per actor using the code inside those notetags. For example,
Code:
if (user.actorId()==1)
will make your next command execute only if the state is on actor ID 1. But you'd need to show what you're doing now in your states notetags for us to be of any help.

This is, at least, not what the OP asked. It is possibly what they want, but not as stated 😉

I see two problems with this.

1 - It is quite inefficient/inconvenient to make all of your skills multiple times and code all of those common events with conditionals and such.

2 - It can have a detrimental effect on your play experience. Common events play after a skill has resolved, so if you're trying to show images during the skill, this just won't work, and will look odd instead.

Yanfly's Action Sequences are a way to accomplish this during a skill. You can show images at any point, use conditionals to do different things depending on which actor is using the skill, and eliminate the need for any common events or multiple skills.

Of course, this might not apply to you - your profile doesn't say which version of RPG Maker you use, so if it's something earlier than MV, you won't be able to use plugins. But the thread is for MV, and MV and MZ both have action sequence plugins.


You might could get around the problem of the picture showing up after the skill fires by linking two skills together and having the first one acting only as an introduction to the following skill.

But I agree it's not ideal and I tried to frame my comment to make that as clear as possible. But if there is another way to be able to show images during combat based on which actor is using which skill without using addons I haven't been able to figure one out. So if you know of one I could really use that information.

Is it considered bad form on here to try and help people with the base game tools when there are addons available that do the trick easier? (sincere question)
Here are some example pictures:
Spoiler: Lewd 1
1.jpg
Spoiler: Lewd 2
2.jpg
Spoiler: Lewd 3
3.jpg
Spoiler: Lewd 4
4.jpg

(Hope my censor is adequate enough for this forum)
This is an example from a game Succulence made on RPG VXAce, but it should get the general idea.

Depending on what an actor is wearing, on their status (like torn clothes) and on what skill is used it should show a specific combination of pictures. Like if the actor is wearing glasses game would draw on another layer on top glasses.

Ideally it could also show different images depending on weapons but I fear I'd make events that draw said pictures too big, since there would be a big variety of equipment.

Also since the game I am making is of erotic nature it would be best to show actors images as big as they can reasonably fit on the battle screen. But it poses a problem when I have like 4 actors in a party. Is it possible to draw images based on which actor is selected at the moment (or something similar)?

Also also, with Yanfly's Buffs and States Core plugin (or any other) could I have an example of how the conditional code is executed?

Please let me know if it's too complicated and THANK you very much!
But if there is another way to be able to show images during combat based on which actor is using which skill without using addons I haven't been able to figure one out. So if you know of one I could really use that information.
There isn't, but why would you specify "without using addons"? That's what plugins are for, to let you do things the base engine can't.
Is it considered bad form on here to try and help people with the base game tools when there are addons available that do the trick easier? (sincere question)
Absolutely not! And I don't think I said anything in my response that you should have interpreted that way. But between this and the first sentence I quoted, you seem to have some kind of predilection against plugins (or scripts, I still don't know which Maker you use) and I don't understand why.

If a plugin does something easier, by your own admission, then why wouldn't one use it? Unless you just want the creative challenge for yourself to do as much as you can purely by events (which, to be fair, is quite a lot, but at a certain point the effort is not commensurate to the end product).

@McAron It looks like you are, in fact, asking about showing the images during a skill which is exactly what Berylstone thought you were asking. In that case, my response there is the same as for you - action sequences will do what you want.
There isn't, but why would you specify "without using addons"? That's what plugins are for, to let you do things the base engine can't.

Absolutely not! And I don't think I said anything in my response that you should have interpreted that way. But between this and the first sentence I quoted, you seem to have some kind of predilection against plugins (or scripts, I still don't know which Maker you use) and I don't understand why.

If a plugin does something easier, by your own admission, then why wouldn't one use it? Unless you just want the creative challenge for yourself to do as much as you can purely by events (which, to be fair, is quite a lot, but at a certain point the effort is not commensurate to the end product).

@McAron It looks like you are, in fact, asking about showing the images during a skill which is exactly what Berylstone thought you were asking. In that case, my response there is the same as for you - action sequences will do what you want.

I was just specifying "without using addons" in that comment to try and explain where I was coming from. I grew up on the older RPG Makers. So I'm still unfamiliar with addons. I don't know how to write them, I am unaware of all the kinds of addons that are available to people, I don't know the terms of their use, their compatibility, etc. etc. etc. So unless it's a plugin I use personally or am familiar with (and there aren't very many) I will have no idea about them and try to frame my comments in that context.

I'm also not a purist or anything. Plugins are wonderful tools and have allowed me to do some very necessary things on my game. Honestly, I would have probably quit my project already without them. So I was never trying to diminish plugins. Keep in mind: when I responded to this thread there was no other comments, and the author seemed to be having difficulty getting the result they wanted with the addons they were using.

So since I did similar things on my project, and show pictures that correspond to specific skills used by specific actors, I thought I would share the method I used just in case they couldn't find a better alternative. I tried to go out of my way to stress it was a very primitive solution, and should be viewed as a last resort.

Your post did give me the impression that it would be better if I just kept my primitive ways to myself. lol But if I misinterpreted your comment I apologize.
It is capable to read variables and equipment/state?
Your post did give me the impression that it would be better if I just kept my primitive ways to myself. lol But if I misinterpreted your comment I apologize.
You don't need to apologize at all, but I don't see what I wrote that would give you that impression. You specifically asked for suggestions of easier ways to do what you were doing, and I gave one.
It is capable to read variables and equipment/state?
Yes.
You don't need to apologize at all, but I don't see what I wrote that would give you that impression. You specifically asked for suggestions of easier ways to do what you were doing, and I gave one.

Yes.
So I am trying to make that plug-in work but I have stumbled on a problem with executing Java script code in a common event that I call from a skill:

if (user.actorId() == 1) {

$gameScreen.showPicture(21, "2000_Actor1_1_mvt", 0, 50, 50, 100, 100, 255, 0);
}

What is wrong with that "if" check?


EDIT: For anyone who might stumble on this with same problem I've figured out a solution to show a picture of a specific actor depending on a skill used.

Using Yanfly's The Action Sequence Pack 2 I've put in a note tag of a skill code to call up a common event. Example:

<setup action>
common event: 2
</setup action>

Then inside said common event the script call code would be like this:
if (BattleManager._subject.actorId() === 1) {
$gameScreen.showPicture(21, "2000_Actor1_1_mvt", 0, 50, 50, 100, 100, 255, 0);
}

This way it shows a corresponding picture right before the action is executed.
So I am trying to make that plug-in work but I have stumbled on a problem with executing Java script code in a common event that I call from a skill:

if (user.actorId() == 1) {

$gameScreen.showPicture(21, "2000_Actor1_1_mvt", 0, 50, 50, 100, 100, 255, 0);
}

What is wrong with that "if" check?


EDIT: For anyone who might stumble on this with same problem I've figured out a solution to show a picture of a specific actor depending on a skill used.

Using Yanfly's The Action Sequence Pack 2 I've put in a note tag of a skill code to call up a common event. Example:

<setup action>
common event: 2
</setup action>

Then inside said common event the script call code would be like this:
if (BattleManager._subject.actorId() === 1) {
$gameScreen.showPicture(21, "2000_Actor1_1_mvt", 0, 50, 50, 100, 100, 255, 0);
}

This way it shows a corresponding picture right before the action is executed.
could this work with 2 up to 4 actors?

thanks in advance, im having the same problem
@SnakeBD , please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/help-is-there-a-way-to-show-a-picture-in-battle-depending-on-what-action-is-performed.147136/