设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 4754|回复: 2
打印 上一主题 下一主题

[交流讨论] 計時器 怎麼做時間到了會觸發事件?

[复制链接]

Lv2.观梦者

梦石
0
星屑
497
在线时间
266 小时
注册时间
2015-12-8
帖子
873
跳转到指定楼层
1
发表于 2015-12-30 14:01:27 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有帐号?注册会员

x
做一個 逃離火災的事件 只是如果把計時器判斷丟在地圖上 設定自動運行 (判斷時間小於1秒) 人物就會卡住整個不動

Lv1.梦旅人

梦石
0
星屑
60
在线时间
306 小时
注册时间
2014-8-5
帖子
416
2
发表于 2015-12-30 14:10:28 | 只看该作者
事件第一页:
设为自动运行
开始定时器
独立开关A=on
事件第二页:
设为并行
独立开关A打钩
操作变量:#0001计时器的值=定时器
条件分歧:0001 计时器的值<1
设置玩家移动路线:玩家(等待) 等待999帧
分歧结束
  点我进入    
       ↓      
回复 支持 反对

使用道具 举报

Lv5.捕梦者

梦石
0
星屑
22077
在线时间
8578 小时
注册时间
2011-12-31
帖子
3362
3
发表于 2015-12-30 15:52:10 | 只看该作者
Multi Timers

Plugin commands are:
AddTimer key seconds command
DeleteTimer key
HasTimer key switchId
TimeLeft key variableId

key is any text/number string without spaces, that uniquely identifies the timer, and can be used later to cancel/delete it, see if it is running, and how much time is left. Using the same key in subsequent AddTimer plugin commands replaces the existing timer with the newest one.
seconds is the number of seconds for the timer to count down.
command is the command to run after countdown completes. This can be any command to run, but would normally be turning a switch on or off, setting a self switch, or changing a variable.
switchId is the switch id to be turned on if there is a timer with the specified key.
variableId is the variable id to be set to the number of seconds remaining on the timer. If there is no timer with the specified key, the variable will be set to 0.

Keywords that can be used anywhere in the plugin command are:
<thismap> - current map's id
<thisevent> - current event's id
\setSS - set a self switch - format is \setss([map, event, 'A'], true)
\ss - the value of a self switch - format is \ss([map, event, 'A'])
\setS - set a switch - format is \sets(switchId, true)
\s - the value of a switch - format is \s(switchId)
\setV - set a variable - format is \setv(variableId, value)
\v - the value of a variable - format is \v(variableId)

See plugin documentation for examples



Multi Timers
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-5-25 13:49

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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