Project1

标题: 計時器 怎麼做時間到了會觸發事件? [打印本页]

作者: 小叮鈴    时间: 2015-12-30 14:01
标题: 計時器 怎麼做時間到了會觸發事件?
做一個 逃離火災的事件 只是如果把計時器判斷丟在地圖上 設定自動運行 (判斷時間小於1秒) 人物就會卡住整個不動
作者: 夏末渐离    时间: 2015-12-30 14:10
事件第一页:
设为自动运行
开始定时器
独立开关A=on
事件第二页:
设为并行
独立开关A打钩
操作变量:#0001计时器的值=定时器
条件分歧:0001 计时器的值<1
设置玩家移动路线:玩家(等待) 等待999帧
分歧结束
作者: tseyik    时间: 2015-12-30 15:52
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





欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1