The RPG Maker Resource Kit

RMRK RPG Maker Creation => General Tutorials and Eventing => RPG Maker General => Tutorials Database => Topic started by: Wolfram77 on February 19, 2009, 05:30:11 PM

Title: [-Eventing-] How to make a lock
Post by: Wolfram77 on February 19, 2009, 05:30:11 PM
INTRODUCTION
Do you have a height difference in the water bu you don't know how to make it passable?
Use this simple but effective lock system!


REQUIREMENTS
All you need to know how to do is know how to make a Set Move Route!
Yep, no kidding! It's all based on move routes! No switches, variables or scripts necessary.
FOR MORE EXPERIENCED USERS
You can make it work with switches or conditional branches if you want the locks to open only under a
certain circumstance.


FEATURES
-Makes an effective lock system for water.
-It can be used as a gate on land.
-Very easy to make.
-No need for scripts or switches.
-Easily custumizable


DEMO
If you don't want to make it yourself just copy/paste from the demo below:
http://www.mediafire.com/?sharekey=62d3f44820e095d3c2b435915e8821d7e04e75f6e8ebb871 (http://www.mediafire.com/?sharekey=62d3f44820e095d3c2b435915e8821d7e04e75f6e8ebb871)


SCREENSHOTS
Yor final result should be something like this:
Spoiler for:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg132.imageshack.us%2Fimg132%2F356%2Fmwsnap119qo5.jpg&hash=d1eef5d784d6f7556905632de803db1426a8d921) (http://www.imagehosting.com/)
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg54.imageshack.us%2Fimg54%2F730%2Fmwsnap120lz4.jpg&hash=7fa1374a83db834474cb210505108d16e9b91081) (http://www.imagehosting.com/)
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg201.imageshack.us%2Fimg201%2F1838%2Fmwsnap121lt1.jpg&hash=320cda764990c76dd7a3662065a1bf69395cd074) (http://www.imagehosting.com/)
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg413.imageshack.us%2Fimg413%2F8427%2Fmwsnap122jf6.jpg&hash=1c8e694b36b060a4a5bf34ac71104a84933cd1a3) (http://www.imagehosting.com/)


INSTRUCTIONS
STEP ONE
First off we an event where the lock begins and we change it's trigger to Player Touch (you can leave it in default id you want):
Spoiler for:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg100.imageshack.us%2Fimg100%2F9277%2Fmwsnap123wn0.jpg&hash=35446fefc820c4b7249bd87ba5566b8a7eda5cf2) (http://www.imagehosting.com/)
It's important you use a graphic of a gate that lowers when it opens, or else it wouldn't make any sense
This is the best one for this use in the RTP:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg54.imageshack.us%2Fimg54%2F3255%2Fmwsnap127jb1.jpg&hash=fc454d75e74a09d4295cfb21b078b111db16dc53) (http://www.imagehosting.com/)

STEP TWO
We make the first Set Move Route to make it lower and become passable:
Spoiler for:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg207.imageshack.us%2Fimg207%2F4538%2Fmwsnap124hh9.jpg&hash=6a57edf1fd790ca5d7c553e6d76eeb4d75cecabc) (http://www.imagehosting.com/)

STEP THREE
Next we make another Set Move Route - this time with Player (not This Event) - telling the boat to move ahead when the lock is open:
Spoiler for:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg201.imageshack.us%2Fimg201%2F9207%2Fmwsnap125jo8.jpg&hash=89019d138fc9311abcbe09548184f27614f6dc06) (http://www.imagehosting.com/)

STEP FOUR
This is just like step two, only in reverse order:
Spoiler for:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg527.imageshack.us%2Fimg527%2F4657%2Fmwsnap126se4.jpg&hash=1a9f7844eed7fb93b520c7374d434383bd6e0e81) (http://www.imagehosting.com/)

And that's it! Good job! You made a lock!


FAQs
Q: The game gets stuck when I try using the lock.
A: Doublecheck that the first and third Set Move Routes are on "This Event"
    and that the second one is on "Player"
Other questions? Post them!


COMMENTS
It's up to you!



:.:.:.:.:.:Sincerely, Wolfram:.:.:.:.:.: