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

[转载发布] TSR_MoveEvent

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

    连续签到: 2 天

    [LV.7]常住居民III

    5778

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 前天 18:46 | 显示全部楼层 |阅读模式



    Author:
    TSR, The Northern Frog
    Download:
    TSR_MoveEvent

    This plugin allows to push, pull, pick up and throw events.




    Spoiler: Instructions
                    Code:       
    1. *
    2. * =========================================================================================
    3. * == About this Plugin ====================================================================
    4. * =========================================================================================
    5. * Use the following comment tags to turn the event page into a movable event.
    6. *
    7. * Event Comment Tags:
    8. * ===================
    9. *
    10. *            <MOVABLE EVENT>
    11. *                  Event page having this comment tag can be pushed and
    12. *                  pulled by the player.
    13. *
    14. *
    15. *            <MOVABLE MYSTERY: X>
    16. *                  Event page having this comment tag can be pushed and
    17. *                  pulled by the player. In addition, these events will  
    18. *                  play the 'Mystery Sound' (set in parameters), and turn
    19. *                  ON the switch specified by X.
    20. *
    21. *                  This will happen only the first time the event is moved.
    22. *                  Those events will be considered as regular movable events
    23. *                  afterwards.
    24. *
    25. *
    26. *            <PICKUP EVENT>
    27. *                  Event page having this comment tags can be picked up and
    28. *                  thrown by the player.
    29. *
    30. *
    31. *            <MOVE EVENT OFFSET: X>
    32. *                  Use this tag if you need to adjust the distance the
    33. *                  player has to walk to get closer to the movable event.
    34. *                  Without the tag, the distance will be defined by the
    35. *                  'move event offset' parameter.
    36. *
    37. *                  This commment tag can also be used on pickup events to
    38. *                  set the distance between the player and the event it is
    39. *                  holding.
    40. *
    41. *
    42. * Map Note Tag:
    43. * =============
    44. *
    45. *      By default the thrown events respect the same passability as the player.
    46. *      You can throw events over some unpassable tiles by using the following
    47. *      tag in a map notebox.
    48. *
    49. *            <THROW REGION: x, x, x>
    50. *                  Use this map notetag to mark some region Id as passable
    51. *                  for throwing event through those regions.
    52. *
    53. *
    54. *
    55. * HOW TO USE:
    56. * ===========
    57. *
    58. *          TO PUSH: Hold the ARROW KEY in the direction toward the movable
    59. *                   event until it back off one tile.
    60. *
    61. *          TO PULL: Hold the OK BUTTON when standing next to a movable event
    62. *                   and facing it, and wait until it move one tile.
    63. *
    64. *              *There's a small delay when pushing or pulling. Keep holding
    65. *               the key and you'll see the player starting to 'run' against
    66. *               the movable event. Then you'll hear the 'Effort Sound' (set
    67. *               in parameters) and see the 'Effort Balloon' (also set in
    68. *               parameters). After a few more frames, the event will move
    69. *               and the player will move along with it.
    70. *
    71. *             **When pushing and pulling, the player will walk shortly to
    72. *               get closer to the movable event. The default distance is
    73. *               set in parameters. There's also an event comment tag to
    74. *               assign specific distance to some events.
    75. *
    76. *            ***The pushing and pulling event will move at the speed set in
    77. *               the event tab. Player will move at same speed when pushing
    78. *               or pulling the event.
    79. *
    80. *
    81. *         TO PICKUP: Stand in front of a pickable event and hold the OK
    82. *                    BUTTON to pick it up. Keep holding the key because
    83. *                    releasing it will drop the event. You can move and
    84. *                    dash while holding an event.
    85. *
    86. *          TO THROW: Release the OK BUTTON to drop the event the player is
    87. *                    holding. The event will be dropped on the tile in front
    88. *                    of the player. If you drop it while holding an ARROW
    89. *                    KEY, the event will be thrown one tile away in front
    90. *                    of the player. And if you drop while holding both the
    91. *                    DASH BUTTON and an ARROW KEY, the event will be thrown
    92. *                    2 tiles away in front of the player.
    93. *
    94. *
    95. * SCRIPT CALLS:
    96. * =============
    97. *
    98. *      In order to manage your movable events interaction on the map, you can
    99. *      use a few script calls to check events position on the map.
    100. *
    101. *      
    102. *      PUSH / PULL events
    103. *      ==================
    104. *
    105. *      Use the following default call to check an event position at any time:
    106. *
    107. *               $gameMap.event(eventId).pos(x, y)
    108. *
    109. *      It will return true or false wheter the event is at position x, y on
    110. *      the map. This can be checked in a parallel process event or in an
    111. *      autonomous movement script command.
    112. *
    113. *
    114. *
    115. *      PICK & THROW events
    116. *      ===================
    117. *  
    118. *      These events can be a bit trickier to manage for game mechanics
    119. *      purposes. The plugin provide additionnal script calls to check
    120. *      these events positions.
    121. *
    122. *               $gamePlayer.isHolding(eventId);
    123. *
    124. *      This call will return true if the map event specified by eventId is
    125. *      hold (carried) by the player.
    126. *
    127. *
    128. *               $gamePlayer.hasBroughtEvent(eventId, x, y, d)
    129. *
    130. *      This call will return true if the map event specified by eventId is
    131. *      hold by the player on tile x, y and turned in direction d.
    132. *
    133. *
    134. *               $gamePlayer.hasGaveEvent(eventId, targetEventId)
    135. *
    136. *      This call will return true if the map event specified by eventId is
    137. *      hold by the player on the tile in front of the map event specified
    138. *      by targetEventId The player must be facing the target event.
    139. *
    140. *
    141. *              $gamePlayer.hasThrownEvent(eventId, x, y)
    142. *
    143. *      This one will returm true if the player has actually thrown or
    144. *      drop the map event specified by evenId on that exact tile at
    145. *      position x, y.
    146. *     
    147. *
    148. *
    149. *
    复制代码


                    Code:       
    1. ===========================================================
    2. ToU:
    3. Use in any independant RPG Maker MZ or MV projects, including commercials.
    4. Credit is required for using this Plugin. For crediting, use 'TSR' along with one of the following terms: 'The Northern Frog' or 'A frog from the north'
    5. Do not change the Header or the Terms of usage.
    6. DO NOT REDISTRIBUTE! If you want to share it, share the link to my itch.io account:  https://the-northern-frog.itch.io/
    7. Sending me a copy of your completed game using my plugin would be appreciated,  but there's no obligation.
    8. ===========================================================
    复制代码


    Regards!
    TSR


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

    本帖子中包含更多资源

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

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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-7-26 03:51 , Processed in 0.087132 second(s), 56 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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