呃...LS米理解某淫滴意思...
某淫滴意思和LS怎么选英雄没有任何关系
具体做法就是给每个玩家一个变量保存他是否选过英雄
一开始设定该变量为假
当一个英雄进行了选英雄操作后
如果该变量为假,则给那个玩家英雄,并把相应变量设为真
否则不做任何事
修改后的trigger如下(添加一个Boolean类型的全局变量数组isSelected)
[trigger]
doubleselect1
Events
Player - Player 1 (Red) Selects a unit
Conditions
((Triggering unit) is in (Units in 地区 000 <gen>)) Equal to True
Actions
If (isSelected[(Player number of (Triggering player))] Equal to True) then do (Skip remaining actions) else do (Do nothing)
Set X[(Player number of (Triggering player))] = (Triggering unit)
Set centerstart = (Center of 地区 001 <gen>)
Game - Display to (All players) for 5.00 seconds the text: (选择 + ((Proper name of (Triggering unit)) + 吗?))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
pp[(Player number of (Triggering player))] Equal to True
Then - Actions
Unit - Move X[(Player number of (Triggering player))] instantly to centerstart
Hero - Set X[(Player number of (Triggering player))] Hero-level to 5, Hide level-up graphics
Unit - Change ownership of X[(Player number of (Triggering player))] to Player 1 (Red) and Change color
Camera - Pan camera for Player 1 (Red) to centerstart over 0.00 seconds
Set isSelected[(Player number of (Triggering player))] = True
Else - Actions
Set pp[(Player number of (Triggering player))] = True
Wait 0.10 seconds
Set pp[(Player number of (Triggering player))] = False
[/trigger]
另外,LS的trigger仍然有些小问题,选择一个英雄后快速选另一个英雄也会导致选英雄事件的发生