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

[转载发布] Orange Time System

[复制链接]
累计送礼:
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 天前 | 显示全部楼层 |阅读模式

    Orange Time System
            Hudell





    Introduction
            This plugin provides a Time System framework for your game. You need other plugins to make use of this time system core in order to effectively use it.


    Params

    useRealTime:
            If you set this to true, the plugin will load the computer time instead of calculating it's own. All of the *Length params will be ignored.
            Default is false


    secondLength:
            How many real-life milliseconds should an ingame second be?
            Default is 1000

    secondLengthVariable:
            You can use a variable ID here to use the value of that variable instead of the fixed value of secondLength.
            Default is 0
            Every time you change this variable, you have to call the following plugin command:


    restart time system




    minuteLength:
            How many ingame seconds should a minute be?
            Default is 6

    hourLength:
            How many ingame minutes should an hour be?
            Default is 6

    dayLength:
            How many ingame hours should a day be?
            Default is 24

    weekLength:
            How many ingame days should a week be?
            Default is 7

    monthLength:
            How many ingame days should a month be?
            Default is 31

    yearLength:
            How many ingame months should a year be?
            Default is 4

    dayPeriod1Hour:
            At what hour does the "morning" day period starts?
            Default is 6

    dayPeriod2Hour:
            At what hour does the "day" day period starts?
            Default is 9

    dayPeriod3Hour:
            At what hour does the "evening" day period starts?
            Default is 18

    dayPeriod4Hour:
            At what hour does the "night" day period starts?
            Default is 20
             
    pauseClockDuringConversations:
            If true, the clock will be paused while text is being displayed with the Show Text command.

    insideSwitch:
            If you set the number of a switch here, the screen tint effect of the OrangeDayAndNight will be disabled when the switch is ON (other add-ons will use the same information to determine if the player is inside a closed space or not)

    tilesetList:
            You can set a list of comma separated tilesets that will always be treated as "inside", regardless of the switch value.
            Example value: 1, 2, 3


    mainSwitchId:
            Set this to the number of a switch to be able to pause / unpause the time system with that switch.

            If you don't use a switch, you can pause/unpause with the following script calls:


    OrangeTimeSystem.paused = true;OrangeTimeSystem.paused = false;


            This plugin uses Orange Event Manager to enable event listeners on the passage of time. This is a list of available events:


    changeSecondchangeMinutechangeHourchangeDayPeriodchangeDaychangeMonthchangeYear


            You can also attach a method or a common event to a specific time. The following example will trigger the common event 10 every day at 10:00:00 AM:


    var commonEventId = 10;OrangeTimeSystem.onTime(commonEventId, 10, , );


            The following example will trigger common event 15 on day 20 of month 2:


    var commonEventId = 15;OrangeTimeSystem.onDate(commonEventId, 20, 2, );


            You can also attach a common event to a day of the week:


    OrangeTimeSystem.onWeekDay(commonEventId, 5);


            Now with plugin commands. Some example of commands:


    run common event 10 every hour
    run common event 1 every minute
    run common event 2 every second
    run common event 3 every day
    run common event 4 every month
    run common event 5 every year


            New Feature: Run common events after some time.
            Those instructions will be saved on the save file, so the common event will be executed even if the player stops plaing and comes back another day.


    run common event 6 in 5 minutes
    run common event 7 in 2 hours
    run common event 8 in 10 seconds
    run common event 9 in 20 days


            New Feature: Enable / DIsable / Toggle Switches and self switches. Some examples:


    toggle self switch A in 10 seconds
    toggle self switch B every second
    enable switch 40 on hour 10 minute 20
    disable self switch D in 1 hour




    Plugin
    Get it from here

    Dependencies
            None



    Add-Ons
    Variables
    Events
    Day and Night

    License
            - Free for any game


            - No credits required


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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-8-1 04:49 , Processed in 0.075588 second(s), 56 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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