Quote: Blue: Make a book from the quotes(i suggessted ...
blade2k » articles & tutorials

jump to:
Tutorials » Game Creation » RPG Maker 2000

Journal System


Reading Article
Author: Greg Morrison
Posted on 08/02/2004
print :: back to list

<

lt;*---------------*>HOW TO MAKE A JOURNAL WITH MEMORY PLACE<*---------------*> BY: GREG MORRISON (a.k.a: davidmo)
Hello there all you RM2K fans! Today, I beleive I've made the jump from newbie to amateur. I've made up my own system before, but it kind of sucked.
This morning, I made a Journal system that I think could be extremely useful to players. If you've ever played Zelda OOT, this system has the same
basic use as Farore's Wind, but it isn't the same thing.
NOTE:
This is actual copyrighted materiel, just like all my games, so I'm not doing what everyone else does: just says it's copyrighted when, legally, it isn't.
My uncle is a copyright lawyer, and he gave me a HUGE discount.

Anyway, enough talk, let's get moving.

Go to your database and make an item named Journal, and make it a switch item. Make it available in the field, not in battle.
Define the switch here, call it Journal. Make it be able to be used a limitless number of times. Make the price whatever
you want (I made 75GP).
Go to Common Events (in your database). Make a Common Event called :o Journal!:o :o Make it Parallel Process and the Appearence
Conditions Switch the switch you defined earlier, Journal. I'll just write down what's in the Event Commands box, at the bottom,
I'll explain the more complicated parts. I only put 2 pages in my journal, but you can add as many as you want.

<>Messg:Would you like to write about this place in your
journal?
<>Show Choice: Yes/No
[Yes] Case
<>Messg:You have 2 pages in your journal, which page
do you want to write on? Remember, if you write about
sosmething on a used page, you'll lose whatever you
had on that page!
<>Input Number: 1 Dg.[0008:InputNumber1]
<>FORK Optn:Varbl[0008:InputNumber1]-1
<>Memory Place: [0009],[0010],[0011]
<>
:ELSE Case
<>
:END Case
<>FORK Optn:Varbl[0008:InputNumber1]-2
<>Memory Place: [0013],[0014],[0015]
<>
:ELSE Case
<>
:END Case
<>
:[No] Case
<>Messg: Do you want to read your Journal?
<>Show Choice: Yes/No
:[Yes]
<>Messg:What page do you wnat to read?
<>Input Number: 1 Dg.[0012:InputNumber2]
<>FORK Optn:Varbl[0012:InputNumber2]-1
<>Goto Memorized Plac:V[0013] (V[0014],V[0015])
<>
:ELSE Case
<>
:END Case
<>
[No] Case
<>
:END Case
<>
:END Case
<>Messg:<Greg closes Journal>
<>Change Switch: [0035:Journal]-OFF Set
<>



As you can see, there are many nested Fork Conditions and Choices. Read that code over a couple of time and try to grasp it.
It's fairly simple. The maximum amount of pages with only a 1 digit Input Number is 9. But you can add many more digits, thus adding many
more pages, and places for the player. If you haven't already figured it out, what happens is when the layer says Yes to
writing about the place they're in, it makes a memory place, storing the Map ID, X and Y coordinates in 3 different variables.
for every page, there's another place they can save. When the player read the appropriate page, they're sent to the place they
"wrote" about on that "page". Basically, they can save the place they're in, and retur there later, as you can see, this could
be quite useful to a player. Thanks alot for reading my first tutorial!

Questions? Comments? Send them to pranks40@hotmail.com.

&#1075; 2001 Copyrighted Greg Morrison.