|
发表于 2017-6-2 15:11:08
|
显示全部楼层
我又加了个容错
你在试试看吧,lujing文件更新了,
或者你直接把下面这个贴进去也行
function toThd()
DeleteTriggerGroup("toThd")
create_trigger_t('toThd1',"^(> )*你远远望去,岛上郁郁葱葱,一团绿、一团红、一团黄、一团紫,端的是繁花似锦。",'','toThdOver')
create_trigger_t('toThd2',"^(> )*你要对谁做这个动作?",'','toThdOver')
SetTriggerOption("toThd1","group","toThd")
SetTriggerOption("toThd2","group","toThd")
EnableTriggerGroup("toThd",true)
exe('l rock;jump boat')
end
function toThdOver()
locate()
wait.make(function()
wait.time(1)
return toThdCheck()
end)
end
function toThdCheck()
EnableTriggerGroup("toThd",false)
if locl.room=="岸边" then
walk_wait()
else
toThd()
end
end |
|