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

[制作教程] Creating a Geomancy / Terrain Skill with Events in MZ

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

    连续签到: 2 天

    [LV.7]常住居民III

    4616

    主题

    864

    回帖

    2万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 2026-7-7 15:03:46 | 显示全部楼层 |阅读模式
    Geomancy / Terrain Skill with Events tutorial for MZ!



    Brief description:​

    This is a tutorial on how to remake the "Geomancy" skill from the Final Fantasy series (also called Terrain or Gaia). This technique lets a character "draw magic from their surroundings" and produce a skill determined by the current terrain. A cave could create earth magic, a forest could sprout magic vines, etc etc.
    Requirements:​

    Only MZ and basic eventing knowledge is required. The exact same process can also be followed for MV too. If, however, you want the battleback to also change with the terrain then you'll have to use a plugin for that (such as VisuStella's Battle Core for MZ or Yanfly's Regional Battlebacks for MV).


    Tutorial Body:

    This method can be done using either region IDs or terrain tags by choice. Both have their own pros and cons. Terrain tags can be quicker as you simply have to assign each tile a tag in the database, however you are limited between only 0 - 7 for tags. Region IDs require that you "paint" over each tile in the map editor, but the large number of region IDs means you can have a lot more variety and control. I personally prefer the region IDs for the control and will be using them for this tutorial.

    To begin, first decide how many terrain types you want in your project. I.e. places like plains, forests, deserts, bodies of water, etc. In addition to creating the 'main' Geomancy skill, you'll also want to make a skill for each terrain type. For this tutorial's example, we'll just create 6 terrain skills and name them after each terrain.





    For now, set the Geomancy skill to a scope of "None" and the terrain skills to "All Enemies".

    Next, create three variables: one for map coordinate X ("Map X"), one for map coordinate Y ("Map Y"), and one for Region ID. On your world map, or whichever other area that has multiple terrains, assign a region ID for each terrain type and begin painting your map with them accordingly. "1" could be for plains, "2" for forests, "3" for deserts, etc.





    If you're using terrain tags instead, just enter the database and assign each tile a numbered tag. You will still need to make a third variable for the terrain tags.

    On that same map, create a Parallel event with two Control Variables set to record the player's map X and Y coordinates. These will be found in Game Data > Character > Player > Map X/Y. Then add a Get Location Info command to retrieve the Region ID Info (or alternately terrain tags if using those) as designated by the Map X and Y variables. Have the info be stored into the Region ID variable.





    For a location that only ever has one terrain type: you can just make an Auto Event that sets the appropriate region ID or terrain tag variable without having to constantly check the player's current position. (Be sure to add an Erase Event after it's been set too.) The Parallel event is only recommended for world maps with multiple terrains.

    Now make a Common Event for the actual Geomancy effect and fill it with conditional branches that checks the region ID or terrain tag for each terrain skill. These do not need an else branch to work. For each conditional branch, add a Force Action and set it so that your Geomancy user will use the appropriate terrain skill. I.e. if the player is standing in plains and the region ID variable is set to "1", have the Force Action call the skill for Plains. Set it to Last Target.





    Have the Geomancy skill call this Common Event as its Effect. Remember to set Geomancy to a scope of "None" and have each terrain skill's scope be "All Enemies", as I find this best to avoid conflicts with Force Action.

    You can then make a battle event on top of a terrain type to test this out. If you followed this exactly, the Geomancy skill should produce a spell based on your current terrain!
    Spoiler: Screenshot of Geomancy skill
    Checking for Vehicle:

    The Parallel event setup will still set the regional ID / terrain tag variable even while you are riding a vehicle, so you don't have to add anything extra for it. However, if you want specific Geomancy skills while riding a vehicle, that can also be done as well. (This can be handy if you want a Geomancy skill for the sky/clouds while riding an airship, although you will need a plugin to make airship encounters possible.)

    To achieve this, return to the Geomancy Common Event and make a new conditional branch at the very top that checks for a vehicle WITH an Else branch. Put all the other terrain conditional branches into the Else branch. For the vehicle's If branch, put in whichever skill you feel is appropriate. Maybe for a ship you could channel a large tidal wave.





    Even during battle, the game will still work in checking whether the player is currently riding a vehicle or not. So you don't have to make a pre-battle process for that.
    Randomized Geomancy Skills:

    You can also make your Geomancy technique more varied by adding in multiple, randomized skills for each terrain type, similar to what Final Fantasy 5 did.

    Again return to your Geomancy Common Event. This time, for each terrain conditional branch, add a Control Variables command with a new variable: call it "Random Geomancy" or something. Have this variable randomly pick between a set of numbers; this should be the number of skills you want that terrain type to have. For this example, we'll set the variable to 1 ~ 3 to pick from three random skills.

    Next make three more conditional branches inside the terrain branch. Then for each of those branches, add a Force Action for each of the three skills the variable will randomly pick from.





    With the above setup, now every time Geomancy is used on plains, it will generate either Twister, Earthquake, or Sonic Boom! Add excitement by giving each of the randomized skills unique effects!



    That is it for the tutorial. Thoughts, feedback, and suggestions are very welcome. Have fun experimenting with the power of nature!


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

    本帖子中包含更多资源

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

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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-7-16 18:58 , Processed in 0.140975 second(s), 55 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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