I watched Yanfly's Tips & Tricks video "Jump," and tried to make a Jump skill. Here's my code for the Jump skill:
// Action Sequences
// Setup: Jump animation.
<Setup Action>
display action
camera focus: user
zoom: 150%
perform start
wait: 60
se: Wind1, 80, 150
float user: 495%, 20
opacity user: 0%, 20
wait for float
</Setup Action>
// Whole: Ensure nothing happens.
<Whole Action>
</Whole Action>
// Target: Flag the target.
<Target Action>
action effect
</Target Action>
// Follow: Apply Jump state to user.
<Follow Action>
add state 61: user
</Follow Action>
// Finish: Without landing.
<Finish Action>
clear battle log
reset camera
reset zoom
wait for camera
wait for zoom
</Finish Action>
Here's my code for the landing skill:
// Action Sequence
// Setup: Setup landing spot.
<Setup Action>
clear battle log
display action
immortal: targets, true
move user: target, base, 1
</Setup Action>
// Whole: Land and deal damage to all targets.
<Whole Action>
camera focus: target
zoom: 150%
wait: 60
motion attack: user
opacity user: 100%, 1
float user: 0, 20
wait: 10
animation 2: targets
action effect
shake screen: 5, 5, 5
wait for animation
</Whole Action>
// Target: Ensure nothing happens.
<Target Action>
</Target Action>
// Follow: Reset everything.
<Follow Action>
reset camera
reset zoom
jump user: 200%, 30
move user: return, 30
wait for movement
</Follow Action>
And, here's my code for the state:
// Selection Control
<Cannot Select: All>
// Buffs & States Core
<Custom Leave Effect>
// Get the landing skill.
var skill = 92;
// Get the last targeted index.
var target = -2;
// Queue the forced action.
BattleManager.queueForceAction(user, skill, target);
</Custom Leave Effect>
And I have ensured that I have all the plugins required. Does anybody see anything wrong with my code?
The tips & tricks video is right here:
http://yanfly.moe/2016/07/02/tips-tricks-jump-final-fantasy-4-rpg-maker-mv/#more-3239
// Action Sequences
// Setup: Jump animation.
<Setup Action>
display action
camera focus: user
zoom: 150%
perform start
wait: 60
se: Wind1, 80, 150
float user: 495%, 20
opacity user: 0%, 20
wait for float
</Setup Action>
// Whole: Ensure nothing happens.
<Whole Action>
</Whole Action>
// Target: Flag the target.
<Target Action>
action effect
</Target Action>
// Follow: Apply Jump state to user.
<Follow Action>
add state 61: user
</Follow Action>
// Finish: Without landing.
<Finish Action>
clear battle log
reset camera
reset zoom
wait for camera
wait for zoom
</Finish Action>
Here's my code for the landing skill:
// Action Sequence
// Setup: Setup landing spot.
<Setup Action>
clear battle log
display action
immortal: targets, true
move user: target, base, 1
</Setup Action>
// Whole: Land and deal damage to all targets.
<Whole Action>
camera focus: target
zoom: 150%
wait: 60
motion attack: user
opacity user: 100%, 1
float user: 0, 20
wait: 10
animation 2: targets
action effect
shake screen: 5, 5, 5
wait for animation
</Whole Action>
// Target: Ensure nothing happens.
<Target Action>
</Target Action>
// Follow: Reset everything.
<Follow Action>
reset camera
reset zoom
jump user: 200%, 30
move user: return, 30
wait for movement
</Follow Action>
And, here's my code for the state:
// Selection Control
<Cannot Select: All>
// Buffs & States Core
<Custom Leave Effect>
// Get the landing skill.
var skill = 92;
// Get the last targeted index.
var target = -2;
// Queue the forced action.
BattleManager.queueForceAction(user, skill, target);
</Custom Leave Effect>
And I have ensured that I have all the plugins required. Does anybody see anything wrong with my code?
The tips & tricks video is right here:
http://yanfly.moe/2016/07/02/tips-tricks-jump-final-fantasy-4-rpg-maker-mv/#more-3239