Quote: (&niggastolemybike) [JonathanOfDrain] Ramza like...
blade2k » articles & tutorials

jump to:
Tutorials » Game Creation » RPG Maker 2000

item portal system


Reading Article
Author: ignc666@hotmail.com
Posted on 08/02/2004
print :: back to list

R

M2K TUTORIAL: A ITEM PORTAL
By ignc666.hotmail.com

On The rpg-zoneemula-zone board a perona asked if it were possible to
create a portal
whith a item. This is how.



First of all you'll need a Common event. Call it use portal, make it a
parallel process
that is enabled when switch [0002 : Use Portal] is on.
<>Memorize Place: [0002],[0003],[0004]
<>Variable Op:[0004], -1
<>Set Event's Place: Portal(V[0003], V[0004])
<>Change switch : [0001: Portal]-ON Set
<>Change swich : [0002: Use Portal]- OFF Set
<>



Now make the Item that'll create the portal:
Name: Portal, Classification: Switch, Price(you choose), Use number of
times:(you choose)
Explanation: Summons a Portal(or something like that) ON switch: [0002: use
portal]
Availible at: Field



The portal event(You'll need one on every map the portal will be avalible)

The first page will be blank.
The second will have a portal graphic(or stairs) and will be triggered when
switch
[0001: Portal] is on, and event start condition must be set to "at hero
touch".


Second page:
<>Memorize Place: [0005], [0006], [0007]
<>Teleport:(Where you want the portal to go)
<>Change swich [001:Portal] - OFF Set
<>


If you dont want a portal to appear in a map that you can have the portal
item, make a
portal event that looks like this:
<>Mssg: You cant use the portal here!
<>

Or else you'll get the error "invalid event name"


If you want the portal to be two way, use this event in the map you
teleported to.

Name: Portal
First page: blank

The second page will have the same properties as the first portal, but the
event commands
will loook like this:
<>Memorize place: [0002], [0003], [0004]
<>Goto memorized plac: V[0005], [0006], [0007]
<>Change switch: [0001: Portal]- OFF Set
<>

Now you'll get back to exactly the same point as the first portal where on!

And ofcourse you can use var 0001 instad of 0002 and so on, but then you
must change
all of the places that uses those vars. I started on 0002, because my map
that I
looked on when I made this tut, used 0001 to something else...