设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 73|回复: 0

[制作教程] How to make a Chasing Event Through Multiple Maps - Tutorial & DEMO

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    前天 04:10
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    4471

    主题

    864

    回帖

    2万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    7
    卡币
    22949
    OK点
    16
    推广点
    0
    同能卷
    50
    积分
    28314

    灌水之王

    发表于 前天 14:00 | 显示全部楼层 |阅读模式
    Hello everyone!
    I found a kinda easy and 100% working way for Chasing Event(s) Through Multiple Maps and i decided to share it with everyone since the 2-3 tutorials/videos i found were kinda hard, and I read many comments "complaining" about them not working properly..
    I'll try to explain it as easily as I can, even though it's my first tutorial, I hope everyone will understand it!
    (It's not hard, really! I believe it's the simplest and easiest method.)
    By the way, if someone has a suggestion for improving it, Please feel free to tell me.

    I am not going to include any scripts since the tutorial works just fine with game's default system.
    But i am going to recommend optionally, Pathfinding and Event Chase Player Script by TheoAllen.
    I recommend it because this script simply determines/calculates the shortest path for the wanted destination without any distractions or without having to use move route's movement commands.
    In this tutorial and demo, i am using the system's default "Approach" Autonomous Movement on the "Chaser" but if anyone wants to use the Pathfinding Script, Set the Autonomous Movement type to "Fixed" (Or leave Approach for random movement) and make a comment inside the "chaser" event, contents and write <chase player> in it.

    I want to Thankvery muchCootadude because in one of his screenshots he posted on one thread, he showed the variable settings i had to put and the correct settings inside the conditional branch for making it to work. This helped me ALOT.


    (2024 WORKING LINKS)
    DEMO (Without RTP) DOWNLOAD LINK
    DEMO (With RTP) DOWNLOAD LINK


    What we going to need:

    2 Switches:


    • Chasing Start
    • Chasing Stop
    2 Variables:

    • Player's Map X
    • Player's Map Y
    5 Events:

    • The "Chaser"
    • The Chaser's Settings
    • The Chaser's Trigger "Lever"
    • The Chaser's Stop "Lever"
    • The Transfer Player Event(s)
    Step 1) Setting/Making the Events, Switches and the Variables:

    • Make and name the 5 Events.
    • Make and name the 2 Switches.
    • Make and name the 2 Variables.
    Step 2) Setting the "Chaser's Trigger "Lever"

    • Set the Event "The Chaser's Trigger "Lever" with "Action Button" Trigger, Priority "Same as Characters" and "6: 4x Faster" Speed and "5: Highest" Freq.
    • In the Contents set "Control Switches" Command and select the "Chasing Start" Switch to be on.
    • Below the Switch Command put a "Wait 10 frames" Command.
    • Below the "Wait 10 frames" Command put "Set Event Location" Command for the Chaser Event and set it where it will appear for the first time (It's a one-time thing).
    • Below the "Set Event Location" Command put a "Move Route" Command for the Chaser Event and select the Graphic/Sprite it will have when it's enabled.
    • Below the "Move Route" Command put a "Self Switch "A" to be on.
    • On the same Event make a second page with "Action Button" Trigger, Priority "Same as Characters" and "6: 4x Faster" Speed and "5: Highest" Freq.
    • On the Conditions Set the Self Switch A On.
    • Inside the Contents make Conditional Branch with the Variable "Chasing Stop" to be On, Check for "Set Handling when conditions do not apply".
    • Inside the Conditional Branch put a text to appear when the player have turn off the chasing event.
    • On the "Else" box Below, put a text to appear when the player haven't turn off yet, the chasing event.
    The Event Should look like this:
    Spoiler: Chaser Trigger Lever Picture




    Step 3) Setting the "Transfer Player" Event:

    • Set the Event "Transfer Player" with "Player Touch" Trigger and "Below Characters" Priority.
    • Save the X and Y of the positions you will place it. (They are down the map at the very end of the RPG Program)


    • Inside the Contents make a "Move Route" Command for the Chaser Event and select the Graphic/Sprite (None).
    • Below the "Move Route" Command put a "Set Event Location" For the Chaser Event, and place it somewhere far the player. (I usually put it very high on the map, next to the setting event).
    • Below the "Set Event Location" Command Put a "Transfer Player" Command and set the next map for the player to go to.
    The Event Should look like this:
    Spoiler: Transfer Player Picture
    [/quote]

    Step 4) Setting the "Chaser's Settings" Event:

    • Set the Event "The Chaser's Settings" with "Parallel Process" Trigger, "6: 4x Faster" Speed and "5: Highest" Freq.
    • On the Conditions set on the switch and select the "Chasing Start" Switch.
    • Inside the Contents Put 2 Variables Commands and Set/Connect the 2 Variables (Player's Map X & Player's Map Y) Each one on their own, with "Player's Map X and Y".
    • Make 1 Conditional Branch with the "Player's Map X" Variable, Equal to the X number of the map (where the "Transfer Player" Event/Command is, so the Chaser will appear when the player enters the map.)
    • Below the variable (inside the conditional branch), Make 1 More Conditional Branch with the "Player's Map Y" Variable, Equal to the Y number of the map (where the "Transfer Player" Event/Command is).
    • If you have Multiple paths make those conditional branches as many as the paths with their X and Y. (I have example on the demo in the map 2).
    • If you want, set a wait 60 frames command so the player can earn a little time to move ahead of the chaser.
    • Below and inside the second Contitional Branch, Put a "Set Event Location" for the Chaser right on the "Transfer Player" Event.
    • Below the Event Location Command, Put a Move Route for the Chaser event and select the Graphic/Sprite it will have when it's enabled.
    • Below the Move Route put a "Erase Event" Command.
    • On the same Event make a second page with "Parallel Process" Trigger, "6: 4x Faster" Speed and "5: Highest" Freq.
    • On the Conditions set on the switch and select the "Chasing Stop" Switch.
    • Inside the Contents make a "Erase Event" Command.
    The Event Should look like this:
    Spoiler: Chaser Settings Picture[quote]

    Step 5) Setting the "Chaser" Event:

    • Set the Event "Chaser" with "Event Touch" Trigger, Priority "Same as Characters", Type as "Approach" and "4: Normal" Speed and "5: Highest" Freq.
    • On the Conditions set on the switch and select the "Chasing Start" Switch.
    • Optionally, Inside the Contents make a "Game Over" Command.
    • On the same Event make a second page with "Parallel Process" Trigger, Priority "Below Characters" Type as "Fixed" and "6: 4x Faster" Speed and "5: Highest" Freq.
    • On the Conditions set on the switch and select the "Chasing Stop" Switch.
    • Inside the Contents make a "Erase Event" Command.
    The Event Should look like this:
    Spoiler: Chaser Event Picture
    [/quote]

    Step 6) Setting the "Chaser's Stop "Lever":

    • Set the Event "Chaser's Stop "Lever" with "Action Button" Trigger, Priority "Same as Characters" and "6: 4x Faster" Speed and "5: Highest" Freq.
    • Inside the Contents make a "Conditional Branch" with Switch "Chasing Start" On. Check for "Set Handling when conditions do not apply".
    • Inside and below the Conditional Branch, Make a Switch with "Chasing Stop" On.
    • Below the Switch put a text to appear when the Chasing Stops.
    • Below the Text Put a Self Switch "A" On.
    • Below the "Else" box, put a text to appear when the Chasing isn't yet turned off.
    • On the same Event make a second page with "Action Button" Trigger, Priority "Same as Characters" and "6: 4x Faster" Speed and "5: Highest" Freq.
    • On the Conditions set on the Self Switch "A" On.
    • Inside the Contents make a text to appear when the Chasing is turned off.
    The Event Should look like this:
    Spoiler: Chaser's Stop Lever Picture[quote]
    That's all. Just set all those on every map you want the chasing event to be and remember to change the names of all the events in the commands when you paste them, because on every different map the names of the events are changing/being reset.

    I have some notes that i have to mention. (Suggestions are open).

    • If a map that the Chaser is enabled on, has multiple transfer paths, make sure to set the Chaser to appear on all of those paths, because when the player leaves but returns to the map, if it doesn't have settings that applied to the path the player went, the Chaser becomes invisible and goes to the player. (If you have game over command on the chaser, it's gonna happen).
    • Sometimes, if the player enters a map that the Chaser is enabled on, and Player doesn't move at all, the Chaser stays still until the player takes at least 1 step. ( I kinda fixed that by setting the Chaser's movement type to "approach" instead of "fixed")
    • In "Step 3) Setting the "Transfer Player" Event:" on the 4 and 5 line numbers, if you don't set up those 2 steps, when the player re-enters a map that the chaser is enabled in there, the chaser will be on the spot the player left it. So if it's near the transfer event, it's likely that the Chaser will go right on the player.



    本贴来自国际rpgmaker官方论坛作者:TheRamenGirl处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/how-to-make-a-chasing-event-through-multiple-maps-tutorial-demo.149740/

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    x
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    简体中文
    繁體中文
    English(英语)
    日本語(日语)
    Deutsch(德语)
    Русский язык(俄语)
    بالعربية(阿拉伯语)
    Türkçe(土耳其语)
    Português(葡萄牙语)
    ภาษาไทย(泰国语)
    한어(朝鲜语/韩语)
    Français(法语)
    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2026-7-14 17:56 , Processed in 0.130400 second(s), 56 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表