Quote: (+TwoBears) I passed a rather large log just a ...
blade2k » articles & tutorials

jump to:
Tutorials » Game Creation » RPG Maker 200x

Making a Fencing Sidequest


Reading Article
Author: Stalker
Posted on 11/08/2004
print :: back to list
Your non-battle variable-teaching thing!

H

ere's some basic code...

Fencer
Would you like to try your luck
At fencing with me, or try
the tournament?
Show chocie:
Tournament
You
Tournament Case
(Insert series of 8 battles here)
You Case
Teleport: Dome
Dome has:
You infront of Fencer.
Event conditions: Autostart
Move event: Hero, (Walk up to Fencer)
Fencer:
3..2..1
Wait: 300 tenths of a second.
Show chocie
attack
Parry
Run
Attack Case
Variable: Attack Rndm 1-3
If Variable Attack is 2
Fencer 1 Health: 2
Case:
If fencer health is 0
Fencer:
ugh.. Choose a stat to raise...
Strength
Magic
Strength Case
Hero alex strength +4
Magic case
Hero Alex Magic +4
And so on. Loop might work.

Oh, And Run Might work, Expect the hero runs, run goers random to see if the
enemy follows, If not, You get another turn, but a new command pops out "Go Direction" Then "Left, right" Etc. But that would make loop useless, Tell me
if I'm wrong.


Coding:
Fencer
Would you like to try your luck
At fencing with me, or try
the tournament?
Show chocie:
Tournament
You
Tournament Case
(Insert series of 8 battles here)
You Case
Teleport: Dome
Dome has:
You infront of Fencer.
Event conditions: Autostart
Move event: Hero, (Walk up to Fencer)
Fencer:
3..2..1
Wait: 300 tenths of a second.
Show chocie
attack
Parry
Run
Attack Case
Variable: Attack Rndm 1-3
If Variable Attack is 2
Fencer 1 Health: 2
Case:
If fencer health is 0
Fencer:
ugh.. Choose a stat to raise...
Strength
Magic
Strength Case
Hero alex strength +4
Show Battle animation: Any animation
Magic case
Hero Alex Magic +4
Show battle aimatioN: Any animation
Else case
Wait 100 tenths of a second (Because he can attack you quicker if he parries it.)
Show chocie:
Attack
Parry
Run
Run case
Hero move down
Variable Run 1-2 random
If 2 Enemy Follow hero
(From now on, the Commands show choice will be called SC1)
SC1
Parry Case
Variable Parry 1-3
If 2
Wait 600 Tenths of a second
SC1, but attack won't fail.
Else case
Hero health 2
If Hero health 0
Fencer: Heh! Easy!
Hero:...
Fencer: Weakling! Choose a stat to lower!
Show choices here....
And so on. Loop might work.
And, You might add more commands, and teleport when fencer health is 0.

And, here's a few things:
In a zelda game, you can make a variable Liek "Health" Be 0,
And kill the characteri n a common event. :D