Hello.
PROBLEM:
I’m stuck and can’t figure out how to change an enemy’s image during battle. I don’t want the enemy to transform, just look different and retain all stats, skills, current hp, etc.
GOAL:
I have an enemy that I want to be in a certain pose to indicate he will use a heavy damage attack in two turns. Visual cue for the player.
WHAT I’VE TRIED:
The enemy uses a skill that gives him a “Watch Out!” State. I tried to change the enemy’s opacity to 0% in the skill's action sequence and then use a visual state effect battle animation as the new image/pose. But since I decreased the enemy’s opacity to 0%, the animation also decreases to 0%. It seems they are linked. Here is what I have in the notetags for the skill and state:
"Watch OUT Skill"
<setup action>
display action
immortal: targets, true
</setup action>
<target action>
zoom: 200%, 20
camera screen: user, front center, 20
camera focus: user, front center, 20
wait: 30
action effect
opacity user: 0%, 0
</target action>
// Follow: Apply Jump state to user.
<Follow Action>
add state 30: user
</Follow Action>
=================================
"Watch Out State"
<State Animation: 151>
// Buffs & States Core
<Custom Leave Effect>
// Get the landing skill.
var skill = 81;
// Get the last targeted index.
var target = -2;
// Queue the forced action.
BattleManager.queueForceAction(user, 81, target);
</Custom Leave Effect>
Functionally, the skill/states work. But the enemy is invisible while the state is applied.
WHAT I’M USING:
I’m using up to date MV. Using multiple Yanfly scripts. Particularly Action Sequences, buffs/states core, visual state effects. No error messages or anything.
How can I accomplish this using Yanfly’s scripts?
PROBLEM:
I’m stuck and can’t figure out how to change an enemy’s image during battle. I don’t want the enemy to transform, just look different and retain all stats, skills, current hp, etc.
GOAL:
I have an enemy that I want to be in a certain pose to indicate he will use a heavy damage attack in two turns. Visual cue for the player.
WHAT I’VE TRIED:
The enemy uses a skill that gives him a “Watch Out!” State. I tried to change the enemy’s opacity to 0% in the skill's action sequence and then use a visual state effect battle animation as the new image/pose. But since I decreased the enemy’s opacity to 0%, the animation also decreases to 0%. It seems they are linked. Here is what I have in the notetags for the skill and state:
"Watch OUT Skill"
<setup action>
display action
immortal: targets, true
</setup action>
<target action>
zoom: 200%, 20
camera screen: user, front center, 20
camera focus: user, front center, 20
wait: 30
action effect
opacity user: 0%, 0
</target action>
// Follow: Apply Jump state to user.
<Follow Action>
add state 30: user
</Follow Action>
=================================
"Watch Out State"
<State Animation: 151>
// Buffs & States Core
<Custom Leave Effect>
// Get the landing skill.
var skill = 81;
// Get the last targeted index.
var target = -2;
// Queue the forced action.
BattleManager.queueForceAction(user, 81, target);
</Custom Leave Effect>
Functionally, the skill/states work. But the enemy is invisible while the state is applied.
WHAT I’M USING:
I’m using up to date MV. Using multiple Yanfly scripts. Particularly Action Sequences, buffs/states core, visual state effects. No error messages or anything.
How can I accomplish this using Yanfly’s scripts?