|
发表于 2008-4-30 22:31:36
|
显示全部楼层
Re:[公告测试]感谢Lars GreedWind WC3C的Zoxc 论坛已支持触发JASS高亮显
[trigger]
继续挖 001
事件
时间 - Elapsed game time is 0.00 seconds
环境
动作
For each (Integer A) from 1 to 12, do (Actions)
Loop - 动作
对话 - Change the title of dlg[(Integer A)] to 请选择游戏难...
对话 - Create a dialog button for dlg[(Integer A)] labelled 普通模式
Set dif1[(Integer A)] = (Last created dialog Button)
对话 - Create a dialog button for dlg[(Integer A)] labelled 极限模式
Set dif2[(Integer A)] = (Last created dialog Button)
对话 - 显示 dlg[(Integer A)] for (Player((Integer A)))
Wait 5.00 seconds
For each (Integer A) from 1 to 12, do (Actions)
Loop - 动作
对话 - 隐藏 dlg[(Integer A)] for (Player((Integer A)))
触发器 - Run result <情报> (ignoring conditions)
[/trigger]
[trigger]
未命名触发器 002
事件
对话 - A dialog button is clicked for dlg[1]
对话 - A dialog button is clicked for dlg[2]
对话 - A dialog button is clicked for dlg[3]
对话 - A dialog button is clicked for dlg[4]
对话 - A dialog button is clicked for dlg[5]
对话 - A dialog button is clicked for dlg[6]
对话 - A dialog button is clicked for dlg[7]
对话 - A dialog button is clicked for dlg[8]
对话 - A dialog button is clicked for dlg[9]
对话 - A dialog button is clicked for dlg[10]
对话 - A dialog button is clicked for dlg[11]
对话 - A dialog button is clicked for dlg[12]
环境
动作
对话 - 隐藏 dlg[(Player number of (Triggering player))] for (Triggering player)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - 环境
(Clicked dialog button) 等于 dif1[(Player number of (Triggering player))]
Then - 动作
Set mode = (mode + 1)
Else - 动作
Set mode = (mode - 1)
result
事件
环境
动作
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - 环境
mode 小于 0
Then - 动作
-------- 极限模式的代码 --------
Else - 动作
-------- 普通模式的代码 --------
[/trigger] |
|