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

[转载发布] TSR_SideStairs by The Northern Frog

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

    连续签到: 2 天

    [LV.7]常住居民III

    7959

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

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




    TSR_SideStairs
    Author: TSR, The Northern Frog


    Use either map terrain tag or region Id to mark tiles on which the characters will move diagonally.
    This way you can create side stairways of any height.

    These tiles are meant to form diagonal stretches  that are only accesible from their extremities.
    Refer to  Plugin's instructions.

    Spoiler: Plugin instructions
                    Code:       
    1. * =========================================================================================
    2. * == About this Plugin ====================================================================
    3. * =========================================================================================
    4. * Use map terrain tag or region Id to mark special tiles on which the
    5. * characters will move diagonally. This way, you can make side stairways
    6. * of any heights.
    7. *
    8. * When on these tiles, the characters can move normally, but can't go up
    9. * or down, while right and left moves are converted into diagonal moves.
    10. * This means characters can stop mid stairs, turn up and down, go back
    11. * the other way around, or dash while ascending/descending the stairs.
    12. *
    13. * NPCs and events will also behave this way when on side stairs. You
    14. * don't have to put diagonal moves in your event move route commands
    15. * to make them ascend/descend the side stairs. An event that is on
    16. * a side stairway tiles and have a 'move right' commmand, will move
    17. * diagonally accordingly. Events that are set to move at random will
    18. * also move diagonally if their movement bring them on a side stairway.
    19. *
    20. *
    21. * How to use
    22. * =========================================================================================
    23. * You only need one marker (either a map region Id or a terrain tag) for
    24. * all your side stairs. The marker works for stairs of both sides, that
    25. * is stairs that descend from left to right, and stairs that descend from
    26. * right to left.
    27. *
    28. * Parameters
    29. * ==========
    30. *
    31. *    -Side Stairway ID Type
    32. *        Scroll between 'tag' and 'region Id' to select your side
    33. *        stairs Id type.
    34. *
    35. *    -Side Stairway Tag
    36. *        If you choosed to use terrain tag, this parameter set the
    37. *        terrain tag value that will be used to mark side stairways.
    38. *
    39. *    -Side Stairway Region
    40. *        If you choosed to use map region Id, this parameter set the
    41. *        region Id that will be used to mark side stairways.
    42. *
    43. *
    44. * Mechanics
    45. * =========
    46. * Side stairway tiles are meant to form diagonal pathways of 2 or more tiles,
    47. * that serves to connect 2 floors of different height on your game maps.
    48. *
    49. *     Example:
    50. *
    51. *          Bellow, 3 side stairway marked tiles (ST) are used to connect
    52. *          the floor area to a 2 tiles height roof top area.      
    53. *   
    54. *              ---------------------
    55. *              |              |     |
    56. *              |  Roof top    | ST  |
    57. *              |    area      |----- -----
    58. *              |              |     |     |         
    59. *              |              |     | ST  |
    60. *              ----------------      ----- -----
    61. *                                         |     |      Floor area
    62. *                                         |  ST |
    63. *                                          -----
    64. *
    65. * Side stairway tiles can only be walked in and out from both extremities
    66. * of the diagonal stretch. In the previous example, this means the stairs
    67. * can only be accessed from the left or right ST; you can't enter or leave
    68. * the stairway from the middle ST.
    69. *
    70. * Side stairway tiles cannot be accessed by a vertical move. The Plugin will
    71. * prevent any 'move up' or 'move down' that would bring the character either
    72. * in or out of a side stairway tile.
    73. *
    74. * In other words, side stairway diagonal pathways can only be accessed by a
    75. * lateral move in or out of their extremities tiles. But this lateral move
    76. * has to be in the "direction of the stairway" after the extremity tile.
    77. *
    78. *     Example:
    79. *        Taking the same example as previously, the stairway would only be
    80. *        accessible by a 'move right' from the Roof top area into the left
    81. *        ST, or a 'move left' from the floor area into the right ST.**
    82. *   
    83. *              ---------------------
    84. *              |            <===>   |  <=//=  Can't move in/out from here
    85. *              |  Roof top    |     |
    86. *              |    area      |----- -----
    87. *              |              |     |     |         
    88. *              |              |     |     |
    89. *              ----------------      ----- -----
    90. *                                         |   <===>     Floor area
    91. *     Can't move in/out from here  =//=>  |     |
    92. *                                          -----
    93. *
    94. *      **In this particular case, the right ST is considered as
    95. *        the 'Downstairs' tile (the lowest tile of the stairway).
    96. *        The 'Downstairs' tile is the only ST that can be moved
    97. *        in and out by vertical moves. See bellow.
    98. *
    99. *
    100. * Downstairs, upstairs and midstairs
    101. * ==================================
    102. * Characters movement behavior will change depending of their relative
    103. * position in the stairway. There's 3 disctincts positions in a side
    104. * stairway:
    105. *
    106. *   -Downstairs
    107. *       The lowest extremity tile. You can move in and out of this tile
    108. *       by its upper and bottom sides, and its lateral side opposite to
    109. *       the stairway. A character on this tile that go toward the lateral
    110. *       side of the stairway will make a diagonal move toward the next
    111. *       side stairs tile.
    112. *
    113. *   -Upstairs
    114. *       The highest extremity tile. You can only enter and leave this tile
    115. *       through its lateral side opposite to the stairway. Moving toward
    116. *       the other side will make the character move diagonally to the next
    117. *       side stairs tile.
    118. *
    119. *   -Midstairs
    120. *       Any side stairway tiles in between the 2 extremity tiles. You can't
    121. *       enter these tiles from outside of the stairway. A character can only
    122. *       move in and out of these tiles by a diagonal movement coming from or
    123. *       going to, another side stairs tiles.
    124. *
    125. *
    126. * Bellow is a few diagrams of the stairs positions and accessibility, with
    127. * different side stairs tiles arrangement.
    128. *
    129. * Legend:
    130. *        A: Side of a tile that can be accessed
    131. *           in and out by normal move.
    132. *        D: represent the diagonal moves that
    133. *           links the stairs tiles together.
    134. *
    135. *     
    136. *       3 tiles right side stairway          --------------
    137. *       ===========================          |            |
    138. *                                            | UPSTAIRS   A
    139. *                                            |            |
    140. *                               ------------ D ------------
    141. *                               |            |
    142. *                               |  MIDSTAIRS |
    143. *                               |            |
    144. *                  ------ A --- D ------------
    145. *                  |            |
    146. *                  A DOWNSTAIRS |
    147. *                  |            |
    148. *                  ------ A -----
    149. *
    150. *       When standing on the downstairs tile, a right move will make
    151. *       the character move diagonally toward the midstairs tile. On
    152. *       the midstairs tile, moving right will do an up-right diagonal
    153. *       move, and moving left will diagonally move the character on
    154. *       the downstairs tile. The stairway can only be accessed from 3
    155. *       side on the downstairs tile and the right side of the upstairs
    156. *       tile.
    157. *
    158. *
    159. *       4 tiles left side stairway      
    160. *       ===========================
    161. *
    162. *       --------------
    163. *       |            |
    164. *       A  UPSTAIRS  |
    165. *       |            |
    166. *       ------------ D ------------
    167. *                    |            |
    168. *                    |  MIDSTAIRS |
    169. *                    |            |
    170. *                    ------------ D -----------
    171. *                                 |           |
    172. *                                 | MIDSTAIRS |
    173. *                                 |           |
    174. *                                 ----------- D ---- A -----
    175. *                                             |            |
    176. *                                             | DOWNSTAIRS A
    177. *                                             |            |
    178. *                                             ------ A -----
    179. *
    180. *       This stairway behaves the same way as the precedent, but in the
    181. *       opposite direction. There's 2 midstairs tiles, but you can put
    182. *       as many as you want. Or none at all.
    183. *
    184. *
    185. *       2 tiles right side stairway     
    186. *       ===========================
    187. *
    188. *                               --------------
    189. *                               |            |
    190. *                               |  UPSTAIRS  A
    191. *                               |            |
    192. *                  ------ A --- D ------------
    193. *                  |            |
    194. *                  A DOWNSTAIRS |
    195. *                  |            |
    196. *                  ------ A -----
    197. *
    198. *       A 2 tiles stairway is the shortest side stairways you can make.
    199. *       Putting a single side stairway tile alone on the map won't do
    200. *       anything (and its passability will be as normal). While the mid
    201. *       stairs tiles can be ommited, side stairway always have 2 extre-
    202. *       mities. But not necessarely both a downstairs AND upstairs tiles.
    203. *
    204. *
    205. *       3 tiles ??? side stairway     
    206. *       =========================
    207. *
    208. *                               --------------
    209. *                               |            |
    210. *                               |  MIDSTAIRS |
    211. *                               |            |
    212. *                  ------ A --- D ---------- D ---- A -----
    213. *                  |            |            |            |
    214. *                  A DOWNSTAIRS |            | DOWNSTAIRS A
    215. *                  |            |            |            |
    216. *                  ------ A -----            ------ A -----
    217. *
    218. *
    219. *       Or
    220. *       ========================
    221. *
    222. *                  --------------            --------------
    223. *                  |            |            |            |
    224. *                  A  UPSTAIRS  |            |  UPSTAIRS  A
    225. *                  |            |            |            |
    226. *                  ----------------------------------------
    227. *                               |            |
    228. *                               |  MIDSTAIRS |
    229. *                               |            |
    230. *                               --------------
    231. *
    232. * As you can see, what's determining if a tile is either Upstairs or
    233. * Downstairs, is the diagonal direction toward the next side stairs.
    234. * The only thing that change, wether the extremity tile is upstairs
    235. * or downstairs, is the accessibility of the tile.
    236. *
    237. * Downstairs have 3 sides accessibility because they're supposed to
    238. * be on the lower ground. Upstairs tiles can only be accessed by one
    239. * side because they're supposed to give access to an higher ground.
    240. * Otherwise, one could go upstairs in one move from the lower ground.
    241. *
    242. * Upstairs tiles are supposed to lead to an higher ground and down-
    243. * stairs tiles are supposed to lead to lower ground. But in fact,
    244. * both can lead to the same level. You can even make a stairway that
    245. * goes downstairs to an higher ground on the map..?
    246. *
    247. *
    248. * Note on passability
    249. * ===================
    250. * When your side stairway lead to an higher ground, that is move from
    251. * a floor tile to a roof top tile, or from a roof top tile to another
    252. * one that is higher (somehow separated by a wall), the first roof top
    253. * tile on which the upstairs tile lead must be passable. This can be
    254. * easily acheived in many ways, one of them is to put an empty passable
    255. * tile over the roof top tile.
    256. *
    257. *
    258. * Straight side stairway?
    259. * =======================
    260. * Side stairway tiles are meant for diagonal arrangement. If you put
    261. * these tiles in an horizontal straight line, all tiles will be con-
    262. * sidered as 'upstairs', and it will result in creating a 'corridor'
    263. * that can only be accessed from its extremities.
    264. *
    265. * Placing the side stairs tiles in a vertical line have a weird effect
    266. * since only horizontal moves will be allowed on these tiles.
    267. *
    268. *
    269. * Diagonal patern?
    270. * ================
    271. * You can make these by alterning the midstairs up and down. Is this
    272. * good game making material? Nope.
    273. *
    274. * Is this gonna give you a good laugh? Yep!
    275. *
    276. *
    277. *
    复制代码


    Player, followers and events can move freely on the side stairways, but can't go up and down; while right and left moves are converted into diagonal moves.




    Place your side stairway marker on the map if you're using region ID




    Or on your tiles sheet if you're using terrain tag






    Accessibility of the side stairway tiles changes depending on their position in the stairway. In the image bellow, the characters cannot acces the higher ground on the left directly from the floor area on the right. They can only access the upper area using the stairway.​




    Side stairways can only be move in and out from their extremities. The image bellow use region Id to represent the passability of the side stairway tiles of the previous example.
    *The tile with region Id 11 is a roof top tile that have to be 'passable'




    Although side stairway tiles are meant to form diagonal pathways, you can also make weird paterns like in this demo:


                    Code:       
    1. * =========================================================================================
    2. * == Terms of usage =======================================================================
    3. * =========================================================================================
    4. * Use in any independant RPG Maker MV projects, including commercials.
    5. *
    6. * Credit is required for using this Plugin.
    7. * For crediting, use 'TSR' along with one of
    8. * the following terms:
    9. *      'The Northern Frog' or 'A frog from the north'
    10. *
    11. * Do not change the main Object name nor the Terms of usage.
    12. *
    13. * DO NOT REDISTRIBUTE!
    14. * If you want to share it, share the link to my itchi.io account:
    15. * https://the-northern-frog.itch.io/
    16. *
    17. *
    复制代码


    Regards,
    TSR, The Northern Frog




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

    本帖子中包含更多资源

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

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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-8-1 05:48 , Processed in 0.065806 second(s), 55 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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