Script Help

Hey,

No matter how hard I try it seems as though the character will not use animations in a battle.

I am currently attempting -

$gamePlayer;0003.requestAnimation0052;

It is set to the proper character, and the proper animation. I have it set to start turn 1. Nothing happens. Can anyone help?
That's completely the wrong syntax. If you want to use a script, you have to do it in the correct format.


However, why are you trying to use a script call? Why can't you use the Show Battle Animation command?


Where are you setting this up - as a troop event command, part of the damage formula, in a common event that's linked to an item or a skill?
That's completely the wrong syntax. If you want to use a script, you have to do it in the correct format.

However, why are you trying to use a script call? Why can't you use the Show Battle Animation command?

Where are you setting this up - as a troop event command, part of the damage formula, in a common event that's linked to an item or a skill?
That's the format I found here. https://docs.google.com/spreadsheets/d/1-Oa0cRGpjC8L5JO8vdMwOaYMKO75dtfKDOetnvh7OHs/edit#gid=0 (Though I am terrible at reading it, and understanding it.)

The command won't work. It only allows me to make enemies do things. I want the main character to do it.

Edit: I have a feeling I am somehow out of my league here. I should probably explain more.

The character is supposed to have the "Power Up 2" animation as they're chanting a spell. So not only do I want an animation to appear, but, I also want her speaking. I have figured out how to have her speaking, but the power up refuses to happen.

Edit Again: I suppose what I could do... Is create an extra character... Make that character have a one shot kill spells, and force the character to use it. That's basically the scene I am trying to provide by making the character have an animation.

Edit: Then swap out that character, for one without one shot kill spells.
That's the format I found here. https://docs.google.com/spreadsheets/d/1-Oa0cRGpjC8L5JO8vdMwOaYMKO75dtfKDOetnvh7OHs/edit#gid=0 (Though I am terrible at reading it, and understanding it.)
The parenthesys are actual part of the syntax.

Also the part you saw was to display animations ON MAP.

so 

$gamePlayer.requestAnimation(52)

will display an animation on the player on the map.

To display an animation during a battle uses a different process.
The parenthesys are actual part of the syntax.

Also the part you saw was to display animations ON MAP.

so 

$gamePlayer.requestAnimation(52)

will display an animation on the player on the map.

To display an animation during a battle uses a different process.
What would that process be?

I thought that the command $gameMap.event made it work on the map. I thought that the $gamePlayer.requestAnimation made it work in the battle.
$gamePlayer only exists on the map. $gameParty is what you have in battle. $gameMap is for events on the map, not for the player.


You also didn't answer my other questions - is this command being run from a common event attached to a skill?


mmm ... one of the battler poses is casting a skill. If you want this to happen for this actor with EVERY skill, you could simply edit the sv battler spritesheet and put the animation in there (though it might play too fast, as it's only 3 frames being repeated).


If you are doing it as part of the damage formula, or in a common event attached to the skill, that might actually execute too late - AFTER the "casting" animation has finished playing, because both of those things happen when the damage is being calculated.


The explanation of what you're trying to achieve is really helpful. Now we have some clear direction and are not guessing your purpose.
Oh. Sorry, Shaz!

I am running it in a "Battle Event" for that battle. I have it set aside and named "Opening Battle."

This battle will only be used once, and only to showcase one of the final moves that the characters can achieve. Though, I'd like while she's speaking for the "Power Up 2" to appear around her. I apologize should I be continuing to not properly answer your question.

Edit: The reason being. (To paint a better picture) Is that she's casting a spell that requires her to chant in her first language. (The language she learned all her spells, since she cannot cast them while speaking English) While she is casting said spell. The aura from "Power Up 2" will appear, and hopefully, will end around the same time she's done speaking. (Should that be possible.)
battler.startAnimation(animationId, mirror, delay)

 

battler = a Game_Battler object (see bellow)

animationid = the id of the animation.

mirror = true or false. if true the animation will be inverted

delay = animation delay, the default value is 8.

for the battler you must get a valid Game_Battler object

For example. $gameParty.leader() is the first battler of the party.

so if you call $gameParty.leader().startAnimation(50, false, 8) you will display the animation 50 on the first member.

you can retrieve any member of the part with $gameParty.members(index), where index is the position of the member (starting at 0)

so if you call $gameParty.members(2).startAnimation(45, false, 8) you will display the animation 45 on the THIRD member.

Edit.: If you want to display an animation during an event, why not use the Display Animation event command instead?
No, that's okay. The more I learn about what you're after, the more questions I have to get in the right direction.


So this is a once-only thing you need to happen as part of a tutorial?


How many characters will be in the party at this time?


If more than one, which party member will be using this animation - will it be the leader, or someone in a specific position in the battle lineup, or will it be just actor id?


I can give you the script command to run, but I need to determine which of your party members we need to execute the command on first. If this is going to be the only party member at this stage, that will make it super easy. If not, I'll need to know how to identify which battler it is.


edit: ninja'd.
I will attempt the option provided by Victor Saint and return with the results in an Edit.

Thanks to both of you. Should this still SOMEHOW fail, I suspect it's on me then.

@ Victor Saint: The "Show Animation" in tab 2 wasn't working in the "Battle Event" tab for some reason. It could be me somehow though.
nah, if it fails, we'll help you get it working.


If it doesn't work, can you please add a screenshot of the enemy troop event window, where you've got the command, so we can see it in context?


Show Animation in tab 2 won't work because it applies only on the map, not in battle.
nah, if it fails, we'll help you get it working.

If it doesn't work, can you please add a screenshot of the enemy troop event window, where you've got the command, so we can see it in context?
It is working now. This feels pretty good. I've been sitting here hitting my head against the keyboard.

Secondary Question: (If Allowed)

The "Tab 2" "Show Animation" Is it supposed to be able to work on the "Battle Event" page? It doesn't work for me, but I keep reading the same option. "Display Animation event command" Which display animation event command is being mentioned?

I find this amusing. I was starting to feel really confident with RPG Maker, as I've been fooling around with VX for awhile, and now MV.... and now I feel I've been lucky up until this point.
no. As you can see, it offers the character or an event. These are things on the map, not in battle. Show Battle Animation, on tab 3, is for battles, but as you say, only for enemies, not for your own party.


I'm not aware of any Display Animation event command. When people use those terms, they are probably referring to one of those, depending on whether the context is map or battle, and just using the wrong words. We do that sometimes, as we don't always have MV open in front of us when replying to questions.
Didn't knew that the the command to display battle animations worked only for enemies. (Now this is a big fail on the side of the developers, since they added visible party, they should've added event commands related to them)

Original thread: https://forums.rpgmakerweb.com/threads/script-help.55053/