Hello everyone!!
Today we will learn how to create an elevator thgough events!
Once it is done, the game will be like this:
- press the button to call the elevator
- enter the elevator by yourself
- go to the panel command to press the desired floor button
- go out of the elevator once it arrived.
-------------------------------------------------------------------------------------------------------------------------
Before we begin
You will need some plug-ins to achieve this tutorial:
- Yanfly's
Message core &
Extented message
- Tsukihime's
Custom Page Conditions
If you want an elevator with a 3D effect like in the video, here you are the tileset (includes lights):
Spoiler
[/url]
-------------------------------------------------------------------------------------------------------------------------
1. Creating your maps
For this tutorial i decided to go with 3 floors: a ground floor (RDC), a 1st floor (1er étage) and a 2nd floor (2ème étage). You will have to create your 3 maps, and create a 'th map: the inside of the elevator. When the tutorial is done, you should end up with something similar to this:
Spoiler
[url=https://forums.rpgmakerweb.com/attachments/screenshot1-png.36187/]
-------------------------------------------------------------------------------------------------------------------------
2. Creating your elevator event
We will begin by creating an elevator event:
Spoiler[url=https://forums.rpgmakerweb.com/attachments/rdc-elevator_page1-png.36181/]
[/url]
[url=https://forums.rpgmakerweb.com/attachments/rdc-elevator_page3-png.36183/]
[/url]
[url=https://forums.rpgmakerweb.com/attachments/rdc-elevator_page5-png.36185/]
Note: this last page is to prevent a glitch later.
-------------------------------------------------------------------------------------------------------------------------
3. Creating your command event
Now we will create our command event. As the pad is included in my elevator sprite, i didn't put any image, but make sure to put one in yours!
Spoiler
[/url]
[url=https://forums.rpgmakerweb.com/attachments/rdc_command_page2-png.36179/]
[/url]
-------------------------------------------------------------------------------------------------------------------------
4. Creating your check Player's coordonates on map
Simply create a parallel event with 3 variables:
Spoiler[url=https://forums.rpgmakerweb.com/attachments/map-player-check-png.36177/]
-------------------------------------------------------------------------------------------------------------------------
5. Creating the Self Switch "C" deactivation event
Spoiler
[/url]
-------------------------------------------------------------------------------------------------------------------------
6. Creating your Inside-Elevator command event
Spoiler
[url=https://forums.rpgmakerweb.com/attachments/elevator-event1_page1-png.36174/]
-------------------------------------------------------------------------------------------------------------------------
7. Creating the teleport event
Spoiler[url=https://forums.rpgmakerweb.com/attachments/elevator-event2_pages-png.36176/]
-------------------------------------------------------------------------------------------------------------------------
8. Repeat the process
Now do the same thing for your floors, make sure you change the maps ID and Events ID in your self switches script calls and conditions.
And you're done!
I hope this tutorial was useful, and provided a way to improve how elevators work! So now your player can act and do actions while waiting for the elevator, and even talk to NPCs while the elevator is going upstairs/downstairs!
本贴来自国际rpgmaker官方论坛作者:byBibo处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/creating-an-elevator-event.60254/