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

[转载发布] Eli_DevSwitches

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

    连续签到: 2 天

    [LV.7]常住居民III

    8038

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

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


    Introduction
    There are many conditions that, by default, the event tabs do not have commands to check. As an example, if the game is being played on an android device, iPhone, computer or check the current weather (rain, storm, or snow).
    Instead of having to resort to script calls ($gameScreen.weatherType() === 'rain'), this plugin facilitates this and other processes by automaticaly activating a switch of your choice based in a predefined condition in plugin parameters.

    Features
    • Automatically turns the specified switches on and off according to the
    conditions below:
        • Is in Test mode (Whether in battle, event, or normal).
        • If the game is running on a mobile device.
        • If the game is running from a Desktop.
        • If the game is running on an android.
        • If the game is running on an iPhone.
        • If the player is in any vehicle.
        • If the player is on an airship.
        • If the player is in a boat.
        • If the player is on a ship.
        • If there is any change in the weather.
        • If it is raining.
        • If it is snowing.
        • If it is raining heavily (storm).
        • If the player is on a tile that inflicts damage.¹
        • If the player is running.
        • If the player is in a bush.¹
        • If the player is on a ladder.¹
        • If the player is in motion.
        • If the message window is open.
        • If the choice window is open.
        • If the number entry window is open.
        • If the item selection window is open (from the map).
        • If the timer is active.²
        ¹ It is necessary to configure the tileset.
        ² When it reaches zero, the switch turns off.


    How to Use
    Plugin parameters:
        • Setup mode> Choose whether you want to assign values to switches using
    their Id or name.
        • Plugin version > There are two ways for the plugin to work:
    - "Update as needed" > The switches are turned on and off automatically only when something related to them happens. For example, when entering a vehicle the plugin will identify which vehicle it is and activate the switch for that vehicle. And when you leave it, the switch will turn off.
    - "Always update" > At each time interval (frames) specified in the "Update interval" parameter, the plugin will check all switches and turn on or off each one depending on the condition of each one.
    For example, regardless of whether the player enters or exits the vehicle, the plugin will be updating the corresponding switches for at each time interval.
    If you happen to experience any incompatibility with other plugins, try switching between versions.

    Screenshots
    Spoiler












    Terms of Use

    https://www.hakuenstudio.com/rpg-maker/terms-of-use

    Download
    Eli_DevSwitches.js

    Credit and Thanks
    @caethyril@Poryg  that help me so much when I start to make this plugin a long time ago!
    And SRDude Tutorials on Youtube.

    Update Log
    SpoilerVersion 1.6 - 08/22/2020
    - Code restructuring.
    Version 1.5 - 07/30/2020
    - Add compatibility with Eli_FindIdByName.js
    - Removed some unnecessary plugin parameters.
    Version 1.4 - 06/16/2020
    - Changed the plugin parameters.
    - Add new conditions to be attached to switches' values.
    Version 1.3 - 04/29/2020
    - Add compatibility with Eli_SuperTimer.js
    Version 1.2 - 11/27/2019
    - Fixed a bug that prevents the game from loading a save file.
    Version 1.1 - 11/01/2019
    - Fixed a bug that prevents the test switch to be turned on in battleTest.
    - Added a battle switch.
    - Improvement in the code.
    Version 1.0 - 10/31/2019
    - Plugin release!






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

    本帖子中包含更多资源

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

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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-8-1 10:45 , Processed in 0.126084 second(s), 53 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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