Gw Temp

Menu

Tutorial - 'Random Encounters' by Urufukiraa

An item about RPGMaker 2000 posted on

Blurb

It's another random encounters tutorial, but this one has style!!

Body

Random Encounter Tutorial:

Hello, it's Urufukiraa, here to teach you a way for Random encounters, that in every aspect, can be Random! :P
First off, you need to be well aware of "If" events, Variables, Switches and Monster Parties, and Call Events.
Now, First off, the BASIC way takes 3 Events (Plus two pages for each Monster Party, and an event on every map for Random Encounters)! So lets list everything

needed:
[Variables]
Now for variables:
Hero X
Hero X2
Hero Y
Hero Y2
Steps
Enemy Encounter
Enemy Special

[Switches]
Random Encounters
[others only used when in ADVANCED Ver.]

[Enemies]
Any Enemy

[Events]
R.E. (First game map/Intro or somthing)
R.E.2(Random Encounter Controlls, All maps that have Enemies)[On switch:Random Encounters)
Hero X move (Common, Parallel)
Hero Y move (Common, Parallel)
[end of lists]

[Basic]
Now, lets get started! Go to Common Events tab in the database,
Click one, Select Parallel Process Name it (EX: Hero X move..
Now As for the Coding(make sure it looks like this!)

[Code]
<>label:1
<>Variable Oper: [Hero X] Set, Hero X Coord.
<>label:2
<>Variable Oper: [Hero X2] Set, Hero X Coord.
<>Wait: 0.1 Sec
<>Branch if Var [Hero X2] is [Hero X] Equal
<> Jump To lable: 2
<>
:Else Handler
<>Variable Oper: [Steps] -, 1
<>Jump to lable:1
[\Code]

then make ANOTHER common Event, Parallel Process
Name it(EX: Hero Y move)

[Code]
as for THIS coding
<>label:1
<>Variable Oper: [Hero Y] Set, Hero Y Coord.
<>label:2
<>Variable Oper: [Hero Y2] Set, Hero Y Coord.
<>Wait: 0.1 Sec
<>Branch if Var [Hero Y2] is [Hero Y] Equal
<> Jump To lable: 2
<>
:Else Handler
<>Variable Oper: [Steps] -, 1
<>Jump to lable:1
[\Code]

Now, for the Opening Event!
[Code][ Auto Start]
<>Variable Oper: [Steps] Set, Random 1-50
<>Move Event: Hero, Move speed Down 1
<>Change Switch: [Random Encounters], ON(Note: This turns ALL Enemy Encounters On/Off)
[\Code]
Now the above code, Sets it to where you may be able to move the moment you get into any Map, and allows you to
Get in Battles (Code ID: 1&3) and the move event makes it take a step away from it every time you are on a new block
next event, name it somthing (EX: R.E.2, Encounter Checker)
[Code] [Parallel Process]
<>Branch If Var [Steps] is, [0] Equal.
<>Variable Oper: [Enemy Encounter] Set, Random 1-10
<> Branch If var[ Enemy Encounter] is [1] Equal.
<>Variable Oper:[Enemy Special] Set, Random 1-5
<> Branch if Var [Enemy Special] is [1] Equal.
<>Enemy Encounter [Enemy Party X] No Advantage
<>Else Handler:
<> <> Branch if Var [Enemy Special] is [2] Equal.
<>Enemy Encounter [Enemy Party X] Surround Attack
<>Else Handler:
<> <> Branch if Var [Enemy Special] is [3] Equal.
<>Enemy Encounter [Enemy Party X] Initaive
<>Else Handler:
<> <> Branch if Var [Enemy Special] is [4] Equal.
<>Enemy Encounter [Enemy Party X] Back Attack
<>Else Handler:
<> <> Branch if Var [Enemy Special] is [5] Equal.
<>Enemy Encounter [Enemy Party X] Pincers Attack


<>Else Handler
<> Branch If var[ Enemy Encounter] is [2] Equal.
<>Variable Oper:[Enemy Special] Set, Random 1-5
<> Branch if Var [Enemy Special] is [1] Equal.
<>Enemy Encounter [Enemy Party 2] No Advantage
<>Else Handler:
<> <> Branch if Var [Enemy Special] is [2] Equal.
<>Enemy Encounter [Enemy Party 2] Surround Attack
<>Else Handler:
<> <> Branch if Var [Enemy Special] is [3] Equal.
<>Enemy Encounter [Enemy Party X2] Initaive
<>Else Handler:
<> <> Branch if Var [Enemy Special] is [4] Equal.
<>Enemy Encounter [Enemy Party X2] Back Attack
<>Else Handler:
<> <> Branch if Var [Enemy Special] is [5] Equal.
<>Enemy Encounter [Enemy Party X2] Pincers Attack

(Note: Enemy Party X\2 are different, and also: Copy, paste, Edit that untill you get to [Enemy Party X10], ALSO!!
Enemy parties may differ for each place. thus meaning there may not even be ten Enemy parties per place, just edit out the remander)
[\code]

So, D'you have fun?
I did. Well, it SHOULD work, if not, please tell me via PM/Tutorial Feedback..... ^_^.
And this was only Random Encounters Part ONE! please
be patient while I write Part Two, maybe even Part Three.
Well, I guess I'll See you Next time!! bye bye!