RPG Maker MV - Luck Based Skill (Lucky 7's)
RPG Maker MV - Luck Based Skill (Lucky 7's)
In today's video I'll share my Animation Pallet with you along with a brief explanation of Math.random and Math.floor. I'll be explaining my action sequence as well to show you how the skill works.
This skill will select a random number and based on the Users Luck will either heal or damage the enemy for 7, 77, 777 or 7777.
[setup action]
Display Action
Motion Chant: User
Motion Wait: User
Animation 18: User
wait for animation
[/setup action]
[target action]
change variable 22 = Math.floor(Math.random() * 5);
change variable 21 = Math.floor(Math.random() * 99);
Motion Skill: User
Motion Wait: User
Animation 87: Target
Animation wait: 15
IF ($gameVariables.value(21) [= user.luk && $gameVariables.value(22) == 0)
HP -0%: Target, Show
ELSE IF ($gameVariables.value(21) ] user.luk && $gameVariables.value(22) == 0)
HP +0%: Target, Show
END
IF ($gameVariables.value(21) [= user.luk && $gameVariables.value(22) == 1)
HP -7: Target, Show
ELSE IF ($gameVariables.value(21) ] user.luk && $gameVariables.value(22) == 1)
HP +7: Target, Show
END
IF ($gameVariables.value(21) [= user.luk && $gameVariables.value(22) == 2)
HP -77: Target, Show
ELSE IF ($gameVariables.value(21) ] user.luk && $gameVariables.value(22) == 2)
HP +77: Target, Show
END
IF ($gameVariables.value(21) [= user.luk && $gameVariables.value(22) == 3)
HP -777: Target, Show
ELSE IF ($gameVariables.value(21) ] user.luk && $gameVariables.value(22) == 3)
HP +777: Target, Show
END
IF ($gameVariables.value(21) [= user.luk && $gameVariables.value(22) == 4)
HP -7777: Target, Show
ELSE IF ($gameVariables.value(21) ] user.luk && $gameVariables.value(22) == 4)
HP +7777: Target, Show
END
[/target action]
[finish action]
Death Break
Perform Finish
Clear Battle Log
[/finish action]
Action Sequence Plugins: http://yanfly.moe/yep/
Forum Post: https://tinyurl.com/ycucgom3
Google Drive: https://tinyurl.com/y9udajy5
--------------------------------------------------------------
Like / Subscribe / Comment / Share -
--------------------------------------------------------------
Other Videos By Game Slobs
Other Statistics
RPG Maker MV Statistics For Game Slobs
Game Slobs currently has 2,094 views spread across 3 videos for RPG Maker MV. Less than an hour worth of RPG Maker MV videos were uploaded to his channel, making up less than 0.68% of the total overall content on Game Slobs's YouTube channel.