Cần hướng dẫn về Terrain & Trigger!

  • Thread starter Thread starter DaCeRS
  • Ngày gửi Ngày gửi

DaCeRS

Youtube Master Race
Tham gia ngày
18/6/08
Bài viết
16
Reaction score
0
_Xin hỏi muốn làm 1 cái dốc để từ Same level lên Increas 1 ( Vd: cái dốc lên đồi trong DDay, Đi xuống khúc sông giữa trong dota) em tìm mãi trong phần Doddads rồi mà không thấy
_ Em lập 3 cái Trigger nhu sau:
+TriggerA: cho lính ra tự động ( Event: Every 10seconds of game time)
+TriggerB:tắt TriggerA để bật TriggerC
+TriggerC:Cho lính ra tự động (Event: Every 8 secondsof game time)
Nhưng khi em thử nghiệm thì nó cho cà trigger làm việc 1 lúc::( nghĩa là cả lính 1 và lính 2 đều ra trong khi lính 1 vẫn còn
Vậy hỏi làm sao để làm ra những cái trigger như trên ( Đừng chửi em )
 
ủa không ai trả lời em à???
Trong lúc chờ em hỏi thêm 1 câu nữa có ai để ý thì trả lời luôn thể dùm nha:
_Làm sao để tạo cái bảng hiển thị số kill, số dead của người chơi
_Làm sao để tạo cái bảng hiển thị Số unit vào legion ( Vd: Từ đầu là 6000 1 unit vào legion thì giảm 1 còn 5999 đến khi còn 0 thì thua)???
 
Xin hỏi muốn làm 1 cái dốc để từ Same level lên Increas 1 ( Vd: cái dốc lên đồi trong DDay, Đi xuống khúc sông giữa trong dota) em tìm mãi trong phần Doddads rồi mà không thấy
ở phần layer/terrain chọn ramp xong rồi kéo thả nó đi để làm cầu lên hay xuống
+TriggerA: cho lính ra tự động ( Event: Every 10seconds of game time)
+TriggerB:tắt TriggerA để bật TriggerC
+TriggerC:Cho lính ra tự động (Event: Every 8 secondsof game time)
bạn ko copy ra sao mình biết được đây, để copy thì vào trigger rồi copy as text
_Làm sao để tạo cái bảng hiển thị số kill, số dead của người chơi
dùng mutil board, đây là cái board trong map Blade Vs Demon của mình có gì bạn đọc xong sửa cho phù hợp nhé
Create Board
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Set Players_Count = 0
For each (Integer A) from 1 to 12, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player((Integer A))) slot status) Equal to Is playing
((Player((Integer A))) controller) Equal to User
Then - Actions
Set Players_Count = (Players_Count + 1)
Set PlayerPlaying[Players_Count] = (Player((Integer A)))
Else - Actions
Set Players_Count = (Number of players in (All players matching ((((Matching player) controller) Equal to User) and (((Matching player) slot status) Equal to Is playing))))
Multiboard - Create a multiboard with 4 columns and (Players_Count + 4) rows, titled Kill Score
Set Score_Board = (Last created multiboard)
Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to |cffffcc00[Team]|r
Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to |c00FF0000Blademast...
Multiboard - Set the text for (Last created multiboard) item in column 2, row 3 to |c0000FF00Demon Hun...
Multiboard - Set the text for (Last created multiboard) item in column 3, row 2 to (String(0))
Multiboard - Set the text for (Last created multiboard) item in column 3, row 3 to (String(0))
Multiboard - Set the text for (Last created multiboard) item in column 4, row 2 to (String(0))
Multiboard - Set the text for (Last created multiboard) item in column 4, row 3 to (String(0))
Multiboard - Set the text for (Last created multiboard) item in column 2, row 4 to |cffffcc00[Players]...
Multiboard - Set the text for (Last created multiboard) item in column 3, row 1 to |cffffcc00[Kills]|r
Multiboard - Set the text for (Last created multiboard) item in column 4, row 1 to |c00FF0303[Deaths]|...
Multiboard - Set the display style for (Last created multiboard) item in column 1, row 1 to Show text and Hide icons
Multiboard - Set the display style for (Last created multiboard) item in column 1, row 0 to Show text and Hide icons
Multiboard - Set the display style for (Last created multiboard) item in column 2, row 1 to Show text and Hide icons
Multiboard - Set the display style for (Last created multiboard) item in column 2, row 4 to Show text and Hide icons
Multiboard - Set the display style for (Last created multiboard) item in column 3, row 0 to Show text and Hide icons
Multiboard - Set the display style for (Last created multiboard) item in column 4, row 0 to Show text and Hide icons
Multiboard - Set the icon for (Last created multiboard) item in column 2, row 2 to ReplaceableTextures\CommandButtons\BTNChaosBlademaster.blp
Multiboard - Set the icon for (Last created multiboard) item in column 2, row 3 to ReplaceableTextures\CommandButtons\BTNEvilIllidan.blp
Multiboard - Set the width for (Last created multiboard) item in column 1, row 0 to 2.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 2, row 0 to 12.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 3, row 0 to 3.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 4, row 0 to 5.00% of the total screen width
Set List = 5
For each (Integer A) from 1 to Players_Count, do (Actions)
Loop - Actions
Set Multiboard_Spots[(Player number of PlayerPlaying[(Integer A)])] = List
Multiboard - Set the text for (Last created multiboard) item in column 2, row List to (Player_Colors[(Player number of PlayerPlaying[(Integer A)])] + ((Name of PlayerPlaying[(Integer A)]) + |r))
Multiboard - Set the text for (Last created multiboard) item in column 3, row List to 0
Multiboard - Set the text for (Last created multiboard) item in column 4, row List to 0
Multiboard - Set the display style for (Last created multiboard) item in column 2, row List to Show text and Hide icons
Set List = (List + 1)
Multiboard - Show (Last created multiboard)
UpdateBoard
Events
Conditions
Actions
For each (Integer A) from 1 to Players_Count, do (Actions)
Loop - Actions
Multiboard - Set the text for Score_Board item in column 3, row Multiboard_Spots[(Player number of PlayerPlaying[(Integer A)])] to (String(Kill_Count[(Player number of PlayerPlaying[(Integer A)])]))
Multiboard - Set the text for Score_Board item in column 4, row Multiboard_Spots[(Player number of PlayerPlaying[(Integer A)])] to (String(Death_Count[(Player number of PlayerPlaying[(Integer A)])]))
BM Kill
Events
Unit - A unit Dies
Conditions
((Dying unit) is A Hero) Equal to True
(Owner of (Dying unit)) Not equal to Neutral Hostile
((Triggering unit) belongs to an ally of Player 1 (Red)) Not equal to True
((Owner of (Killing unit)) is in Blademaster) Equal to True
(Owner of (Killing unit)) Not equal to Neutral Hostile
Actions
Set Kill_Count[(Player number of (Owner of (Killing unit)))] = (Kill_Count[(Player number of (Owner of (Killing unit)))] + 1)
Set Death_Count[(Player number of (Owner of (Triggering unit)))] = (Death_Count[(Player number of (Owner of (Triggering unit)))] + 1)
Trigger - Run UpdateBoard <gen> (ignoring conditions)
Set BladeKill = (BladeKill + 1)
Multiboard - Set the text for (Last created multiboard) item in column 3, row 2 to (String(BladeKill))
Set DemonDeath = (DemonDeath + 1)
Multiboard - Set the text for (Last created multiboard) item in column 4, row 3 to (String(DemonDeath))
Game - Display to (All players) the text: (Player_Colors[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r just kicked + (Player_Colors[(Player number of (Owner of (Dying unit)))] + ((Name of (Owner of (Dying unit))) + |r's ass!!)))))
DH Kill
Events
Unit - A unit Dies
Conditions
((Dying unit) is A Hero) Equal to True
(Owner of (Dying unit)) Not equal to Neutral Hostile
(Owner of (Killing unit)) Not equal to Neutral Hostile
((Triggering unit) belongs to an ally of Player 1 (Red)) Equal to True
((Owner of (Killing unit)) is in DemonHunter) Equal to True
Actions
Set Kill_Count[(Player number of (Owner of (Killing unit)))] = (Kill_Count[(Player number of (Owner of (Killing unit)))] + 1)
Set Death_Count[(Player number of (Owner of (Triggering unit)))] = (Death_Count[(Player number of (Owner of (Triggering unit)))] + 1)
Trigger - Run UpdateBoard <gen> (ignoring conditions)
Set DemonKill = (DemonKill + 1)
Multiboard - Set the text for (Last created multiboard) item in column 3, row 3 to (String(DemonKill))
Set BladeDeath = (BladeDeath + 1)
Multiboard - Set the text for (Last created multiboard) item in column 4, row 2 to (String(BladeDeath))
Game - Display to (All players) the text: (Player_Colors[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r just kicked + (Player_Colors[(Player number of (Owner of (Dying unit)))] + ((Name of (Owner of (Dying unit))) + |r's ass!!)))))
 
+TriggerA: cho lính ra tự động ( Event: Every 10seconds of game time)
+TriggerB:tắt TriggerA để bật TriggerC
+TriggerC:Cho lính ra tự động (Event: Every 8 secondsof game time)
Nhưng khi em thử nghiệm thì nó cho cà trigger làm việc 1 lúc nghĩa là cả lính 1 và lính 2 đều ra trong khi lính 1 vẫn còn
Lúc lập 1 trigger mới , trigger đó sẽ ở chế độ turn on . Muốn tắt nó thì nhìn phía trên cùng có mấy dấu gạch . bõ cái dấu bên phải đi . Trigger đó sẽ trở nên mờ hơn ( turn off ).
Sau đó lập trigger time ( trigger B ), hoặc xài lệnh wait ở trigger A rồi turn off this trigger, turn on trigger C.( với điều kiện trigger time A chỉ action 1 lần duy nhất )
 
dùng mutil board, đây là cái board trong map Blade Vs Demon của mình có gì bạn đọc xong sửa cho phù hợp nhé

Trích dẫn:
Create Board
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Set Players_Count = 0
For each (Integer A) from 1 to 12, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player((Integer A))) slot status) Equal to Is playing
((Player((Integer A))) controller) Equal to User
Then - Actions
Set Players_Count = (Players_Count + 1)
Set PlayerPlaying[Players_Count] = (Player((Integer A)))
Else - Actions
Set Players_Count = (Number of players in (All players matching ((((Matching player) controller) Equal to User) and (((Matching player) slot status) Equal to Is playing))))
Multiboard - Create a multiboard with 4 columns and (Players_Count + 4) rows, titled Kill Score
Set Score_Board = (Last created multiboard)
Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to |cffffcc00[Team]|r
Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to |c00FF0000Blademast...
Multiboard - Set the text for (Last created multiboard) item in column 2, row 3 to |c0000FF00Demon Hun...
Multiboard - Set the text for (Last created multiboard) item in column 3, row 2 to (String(0))
Multiboard - Set the text for (Last created multiboard) item in column 3, row 3 to (String(0))
Multiboard - Set the text for (Last created multiboard) item in column 4, row 2 to (String(0))
Multiboard - Set the text for (Last created multiboard) item in column 4, row 3 to (String(0))
Multiboard - Set the text for (Last created multiboard) item in column 2, row 4 to |cffffcc00[Players]...
Multiboard - Set the text for (Last created multiboard) item in column 3, row 1 to |cffffcc00[Kills]|r
Multiboard - Set the text for (Last created multiboard) item in column 4, row 1 to |c00FF0303[Deaths]|...
Multiboard - Set the display style for (Last created multiboard) item in column 1, row 1 to Show text and Hide icons
Multiboard - Set the display style for (Last created multiboard) item in column 1, row 0 to Show text and Hide icons
Multiboard - Set the display style for (Last created multiboard) item in column 2, row 1 to Show text and Hide icons
Multiboard - Set the display style for (Last created multiboard) item in column 2, row 4 to Show text and Hide icons
Multiboard - Set the display style for (Last created multiboard) item in column 3, row 0 to Show text and Hide icons
Multiboard - Set the display style for (Last created multiboard) item in column 4, row 0 to Show text and Hide icons
Multiboard - Set the icon for (Last created multiboard) item in column 2, row 2 to ReplaceableTextures\CommandButtons\BTNChaosBladema ster.blp
Multiboard - Set the icon for (Last created multiboard) item in column 2, row 3 to ReplaceableTextures\CommandButtons\BTNEvilIllidan. blp
Multiboard - Set the width for (Last created multiboard) item in column 1, row 0 to 2.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 2, row 0 to 12.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 3, row 0 to 3.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 4, row 0 to 5.00% of the total screen width
Set List = 5
For each (Integer A) from 1 to Players_Count, do (Actions)
Loop - Actions
Set Multiboard_Spots[(Player number of PlayerPlaying[(Integer A)])] = List
Multiboard - Set the text for (Last created multiboard) item in column 2, row List to (Player_Colors[(Player number of PlayerPlaying[(Integer A)])] + ((Name of PlayerPlaying[(Integer A)]) + |r))
Multiboard - Set the text for (Last created multiboard) item in column 3, row List to 0
Multiboard - Set the text for (Last created multiboard) item in column 4, row List to 0
Multiboard - Set the display style for (Last created multiboard) item in column 2, row List to Show text and Hide icons
Set List = (List + 1)
Multiboard - Show (Last created multiboard)

Trích dẫn:
UpdateBoard
Events
Conditions
Actions
For each (Integer A) from 1 to Players_Count, do (Actions)
Loop - Actions
Multiboard - Set the text for Score_Board item in column 3, row Multiboard_Spots[(Player number of PlayerPlaying[(Integer A)])] to (String(Kill_Count[(Player number of PlayerPlaying[(Integer A)])]))
Multiboard - Set the text for Score_Board item in column 4, row Multiboard_Spots[(Player number of PlayerPlaying[(Integer A)])] to (String(Death_Count[(Player number of PlayerPlaying[(Integer A)])]))

Trích dẫn:
BM Kill
Events
Unit - A unit Dies
Conditions
((Dying unit) is A Hero) Equal to True
(Owner of (Dying unit)) Not equal to Neutral Hostile
((Triggering unit) belongs to an ally of Player 1 (Red)) Not equal to True
((Owner of (Killing unit)) is in Blademaster) Equal to True
(Owner of (Killing unit)) Not equal to Neutral Hostile
Actions
Set Kill_Count[(Player number of (Owner of (Killing unit)))] = (Kill_Count[(Player number of (Owner of (Killing unit)))] + 1)
Set Death_Count[(Player number of (Owner of (Triggering unit)))] = (Death_Count[(Player number of (Owner of (Triggering unit)))] + 1)
Trigger - Run UpdateBoard <gen> (ignoring conditions)
Set BladeKill = (BladeKill + 1)
Multiboard - Set the text for (Last created multiboard) item in column 3, row 2 to (String(BladeKill))
Set DemonDeath = (DemonDeath + 1)
Multiboard - Set the text for (Last created multiboard) item in column 4, row 3 to (String(DemonDeath))
Game - Display to (All players) the text: (Player_Colors[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r just kicked + (Player_Colors[(Player number of (Owner of (Dying unit)))] + ((Name of (Owner of (Dying unit))) + |r's ass!!)))))

Trích dẫn:
DH Kill
Events
Unit - A unit Dies
Conditions
((Dying unit) is A Hero) Equal to True
(Owner of (Dying unit)) Not equal to Neutral Hostile
(Owner of (Killing unit)) Not equal to Neutral Hostile
((Triggering unit) belongs to an ally of Player 1 (Red)) Equal to True
((Owner of (Killing unit)) is in DemonHunter) Equal to True
Actions
Set Kill_Count[(Player number of (Owner of (Killing unit)))] = (Kill_Count[(Player number of (Owner of (Killing unit)))] + 1)
Set Death_Count[(Player number of (Owner of (Triggering unit)))] = (Death_Count[(Player number of (Owner of (Triggering unit)))] + 1)
Trigger - Run UpdateBoard <gen> (ignoring conditions)
Set DemonKill = (DemonKill + 1)
Multiboard - Set the text for (Last created multiboard) item in column 3, row 3 to (String(DemonKill))
Set BladeDeath = (BladeDeath + 1)
Multiboard - Set the text for (Last created multiboard) item in column 4, row 2 to (String(BladeDeath))
Game - Display to (All players) the text: (Player_Colors[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r just kicked + (Player_Colors[(Player number of (Owner of (Dying unit)))] + ((Name of (Owner of (Dying unit))) + |r's ass!!)))))
_ Trong những cái Trigger trên gồm những biến gì anh ghi ra hộ em để em tiện làm
 
Back
Top