|
楼主 |
发表于 2018-11-23 15:42:15
|
显示全部楼层
armorUcheck=function()
DeleteTriggerGroup("armor")
create_trigger_t('armor1','^(> )*你把 "action" 设定为 "checkUarmor" 成功完成。','','armorUdone')
create_trigger_t('armor2','^(> )*这是由\\D*(棉花|亚麻|大麻|苎麻|蚕丝|木棉花|玉蚕丝|冰蚕丝|天蚕丝|龙茧蚕丝)制成,重\\D*的(\\D*)。$','','armorUtmp')
create_trigger_t('armor3','^(> )*看起来(需要修理|已经使用过一段时间|马上就要坏)了。','','armorUneed')
create_trigger_t('armor4','^(> )*看起来没有什么损坏。','','armorUwell')
SetTriggerOption("armor1","group","armor")
SetTriggerOption("armor2","group","armor")
SetTriggerOption("armor3","group","armor")
SetTriggerOption("armor4","group","armor")
armorUcannt = armorUcannt or {}
tmp.uarmor = nil
for p in pairs(weaponUsave) do
if Bag[p] and Bag[p].kind and armorKind[Bag[p].kind] and not armorUcannt[p] then
exe('l '..Bag[p].fullid)
end
end
exe('alias action checkUarmor')
end
就是这一段,运行结果是只看了一个armor,剩下的boot和glove他不look,所以也就无法自动修理。 |
|