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

[转载发布] Solarflare's Miscellaneous Plugins [SFG]

[复制链接]
累计送礼:
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

    灌水之王

    发表于 前天 16:38 | 显示全部楼层 |阅读模式
    Miscellaneous Plugins


    I've ported some of my smaller plugins to MZ, and decided to make this post to give them a bit more visibility for people seeking MZ plugins. The plugins can be downloaded either from the attachments on my MV plugins thread or from on my website. There is a direct link to each one in this thread, but if the link breaks, those are the places to check.

    This thread will only be for small and simple plugins - if I release something big or complex I'll create another thread. Some of my plugins depend on having SFG_Utils installed above them, so if a plugin doesn't work, try installing SFG_Utils before posting a bug report.

    Spoiler: SFG_Utils
    This is just a collection of utility functions that I use in several of my plugins. If you have any trouble getting one of my plugins to work, install this and make sure it's placed above any of my plugins.

    Download Link
    Spoiler: SFG_AutoBattle
    This adds an option in the Options menu to set auto-battle for all actors. Turn it on and the game will do all your fights for you.

    Download Link
    Spoiler: SFG_EquipParams
    This allows you to restrict equipment based on an actor's stats.

    Download Link
    Itch Link
    Spoiler: SFG_EventTriggers
    This allows triggering an event while in an airship and also adds a way for events to have a "line of sight" that will trigger them when you step on a tile in the same row or column.

    Download Link
    Spoiler: SFG_ExpandedTP
    This basically allows you to do with TP anything that's already possible with MP and HP, plus some extra things specific to TP like customizing what it's set to at the beginning and end of battle.

    Download Link
    Itch Link
    Spoiler: SFG_ExtraMaps
    This is a mod of Zeriab_ExtraMaps, which allows you to exceed the map limit by sorting your maps into multiple folders. It works pretty much the same way; the only real difference is that when you switch map folders, it loads the MapInfos.json from the new folder, which is required for compatibility with some of my plugins such as SFG_Localization and SFG_MapHierarchy.

    Download Link
    Spoiler: SFG_ImprovedPathfinding
    Improves the pathfinding used when navigating the map with the mouse. The improved algorithm recognizes bridges, same-map teleporters, and a few other exotic things, and allows avoiding things like damage floor if at all possible.

    Main Thread
    Spoiler: SFG_MapHierarchy
    Makes maps inherit optional properties (currently BGM, BGS, and battle backs) from their parent map in the editor map hierarchy. Note: This could cause some lag when transferring between maps, especially if you have deep nesting and/or are deploying to the web. I didn't experience any lag in my testing, but your mileage may vary.

    Download Link
    Spoiler: SFG_ParamAdd
    Adds an additive trait for parameters, instead of the standard multiplicative trait.

    Download Link
    Itch Link
    Spoiler: SFG_SortKeys
    Allows you to control how items, weapons, armours, and skills are ordered in various windows. Useful if the lists in your database are not in any logical order.

    Download Link
    Spoiler: SFG_SwitchCommand
    This adds a new command for eventing that lets you check the value of a variable and run code depending on what the value is. Programmers may know this as a "switch statement". Here's a contrived example of its use:

                    Code:       
    1. ◆Control Variables:#0019 += 1
    2. ◆Plugin Command:SFG_SwitchCommand, Switch on variable
    3. :              :Variable = 19
    4. ◆Show Choices:1, 2, 3, #4~8, 9, 10 (Window, Right, #1, #2)
    5. :When 1
    6.   ◆Text:None, None, Window, Bottom
    7.   :    :First time!
    8.   ◆
    9. :When 2
    10.   ◆Text:None, None, Window, Bottom
    11.   :    :Second time!
    12.   ◆
    13. :When 3
    14.   ◆Text:None, None, Window, Bottom
    15.   :    :Third time!
    16.   ◆
    17. :When #4~8
    18.   ◆Text:None, None, Window, Bottom
    19.   :    :Maybe you should stop this...
    20.   ◆
    21. :When 9
    22.   ◆Text:None, None, Window, Bottom
    23.   :    :Calm down, that's already nine times!
    24.   ◆
    25. :When 10
    26.   ◆Text:None, None, Window, Bottom
    27.   :    :And now it's your tenth time!
    28.   ◆
    29. :End
    30. ◆Show Choices:#(value % 5 == 1), 20, >30 (Window, Right, #1, -)
    31. :When #(value % 5 == 1)
    32.   ◆Plugin Command:SFG_SwitchCommand, Switch on variable
    33.   :              :Variable = 19
    34.   ◆Show Choices:>100, >45 (Window, Right, #1, #2)
    35.   :When >100
    36.     ◆Text:None, None, Window, Bottom
    37.     :    :Are you serious!? You've exceeded one hundred!!!
    38.     ◆
    39.   :When >45
    40.     ◆Text:None, None, Window, Bottom
    41.     :    :No really, stop it!
    42.     ◆
    43.   :End
    44.   ◆
    45. :When 20
    46.   ◆Text:None, None, Window, Bottom
    47.   :    :Twentieth time already!? Are you mad!?
    48.   ◆
    49. :When >30
    50.   ◆Text:None, None, Window, Bottom
    51.   :    :More than thirty times! Just... just stop!
    52.   ◆
    53. :When Cancel
    54.   ◆Text:None, None, Window, Bottom
    55.   :    :This is starting to get crazy...
    56.   ◆
    57. :End
    复制代码


    And another example using strings:

                    Code:       
    1. ◆Name Input Processing:Reid, 8 characters
    2. ◆Plugin Command:SFG_SwitchCommand, Switch on script
    3. :              :Script = $gameActors.actor(1).name()
    4. ◆Show Choices:"Reid", #"x"~"zzzzzzz", ~"[aeiou]{3,}" (Window, Right, #1, -)
    5. :When "Reid"
    6.   ◆Text:None, None, Window, Bottom
    7.   :    :The default, good choice!
    8.   ◆
    9. :When #"x"~"zzzzzzz"
    10.   ◆Text:None, None, Window, Bottom
    11.   :    :That's quite a rare name...
    12.   ◆
    13. :When ~"[aeiou]{3,}"
    14.   ◆Text:None, None, Window, Bottom
    15.   :    :So many vowels!
    16.   ◆
    17. :When Cancel
    18.   ◆Text:None, None, Window, Bottom
    19.   :    :Not a bad choice!
    20.   ◆
    21. :End
    复制代码


    Download Link
    Spoiler: SFG_Wait
    Adds wait commands for various event commands that have an optional wait. The most useful of this is "waitForMovementRoute", which will wait for a given character's movement route to complete. This lets you set the movement route going, do other stuff while it executes, but later wait for it to complete. If you're having movement routes cut short due to fast-forward, this can fix it.

    Download Link
    Terms of Use


    • You don't need to credit me in the game credits or anything. However, don't remove me from the "author" field in the plugin file. If you do wish to credit me, you can do so as "Solar Flare" or "Solarflare Software".
    • You can use these plugins in commercial or non-commercial games, free of charge.
    • Feel free to modify these plugins however you need for your game. Exception: Do not modify SFG_Utils for any reason. If you need something added to or altered in SFG_Utils, just create a new plugin.
    • If a plugin that I created is not listed in this thread, or if the listing in this thread links to another thread that specifies different terms, these terms of use do not apply to it.



    本贴来自国际rpgmaker官方论坛作者:Solar_Flare处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/solarflares-miscellaneous-plugins-sfg.178222/
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-7-26 04:51 , Processed in 0.134067 second(s), 55 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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