Help - Search - Members - Calendar
Full Version: [Sub] Lucky Strike!
RPG RPG Revolution Forums > Scripting > Event Emporium > Eventing Tutorials
Reshiram//Exe
What i plan for this is a simple Event which can be attached to any skill. What it does is make the character repeat the skill several times,for the price of 1 hit. This would be triggered totally at random, and can happen any time when a skill is used.

Untested version:

Randomly set Variable to (say 0-50) in a common event attached to the skill.
when the number is randomly picked to the lucky strike number, you show a message saying "LUCKY STRIKE!" Or something on the lines of that. now make a label and force the actor to do the skill they just used. jump to the label afterwards, this may cause bugs as i have not tested it yet. This would work with any battle system.

In-game mock:

____ uses 4 Point slash!
2095 damage!
3068 damage!
4905 damage!
9999 damage!
LUCKY STRIKE!
____ uses 4 Point slash!
2095 damage!
3068 damage!
4905 damage!
9999 damage!
LUCKY STRIKE!
____ uses 4 Point slash!
2095 damage!
3068 damage!
4905 damage!
9999 damage!

you could also set a variable to repeat LUCKY STRIKE!, this could mean it could go on for say a maximum of 5 times?
Alt_Jack
Shouldn't you have tested it before posting it? -_-


Lucky Strike --> http://www.zanesville.ohiou.edu/emedia/Adv...ky%20strike.jpg
Reshiram//Exe
I just tested it. It works great.
Alt_Jack
QUOTE (Phantsmal @ Jul 27 2010, 05:50 AM) *
I just tested it. It works great.

Though I'm not a gambling man, you could make it more interesting by introducing a risk factor:
Set the odds 1/5
1-it attacks once
2-attacks twice, but doubles the damage
3-attacks thrice, but goes up one more exponent each time
4-does nothing, but still takes away MP
5-takes away slightly more MP, blows up in your face, and damages you instead of the target

it sounds cruel, but having that element can add some excitement. There's better odds of success, too (1-50 gives a 98% chance of failure, 1-5 gives you an 60% chance that you might do damage, but a 20% chance it'll be to yourself).
Just a thought. sweat.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.