Meteor95
Mario & Luigi
- 27/4/07
- 861
- 2
Có dòng Unit-Remove ability màlàm thế nào để remove abillity khỏi ng` unit ? ví dụ như abi locus ý ạ
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Có dòng Unit-Remove ability màlàm thế nào để remove abillity khỏi ng` unit ? ví dụ như abi locus ý ạ
.Timer
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Set Integer = (Integer + 1)
Unit - Create 1 Unit for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
Unit - Create 1 Unit for Player 2 (Blue) at (Center of (Playable map area)) facing Default building facing degrees
Unit - Create 1 Unit for Player 3 (Teal) at (Center of (Playable map area)) facing Default building facing degrees
Unit - Create 1 Unit for Player 4 (Purple) at (Center of (Playable map area)) facing Default building facing degrees
Unit - Create 1 Unit for Player 5 (Yellow) at (Center of (Playable map area)) facing Default building facing degrees
Unit - Create 1 Unit for Player 6 (Orange) at (Center of (Playable map area)) facing Default building facing degrees
Unit - Create 1 Unit for Player 7 (Green) at (Center of (Playable map area)) facing Default building facing degrees
-------- Tạo Unit cho tất cả các player là ok --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Integer Equal to 60
Then - Actions
Set Integer = 0
Unit Group - Pick every unit in (Units of type Footman) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Player - Add 1 to (Picked player) Current lumber
Else - Actions
Với điều kiện là map đảm bảo kô xài đến Lumber và Food.
Thế này nhé:
Chuẩn bị 1 Unit có tên là abc gì đó. Add Ability Locust cho Unit đó, chỉnh model = none.mdl, và cái quan trọng đây: chỉnh Food Cost của Unit là 1.
_Tạo 1 trigger:
Mã:Timer Events Time - Every 1.00 seconds of game time Conditions Actions Set Integer = (Integer + 1) Unit - Create 1 Unit for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees Unit - Create 1 Unit for Player 2 (Blue) at (Center of (Playable map area)) facing Default building facing degrees Unit - Create 1 Unit for Player 3 (Teal) at (Center of (Playable map area)) facing Default building facing degrees Unit - Create 1 Unit for Player 4 (Purple) at (Center of (Playable map area)) facing Default building facing degrees Unit - Create 1 Unit for Player 5 (Yellow) at (Center of (Playable map area)) facing Default building facing degrees Unit - Create 1 Unit for Player 6 (Orange) at (Center of (Playable map area)) facing Default building facing degrees Unit - Create 1 Unit for Player 7 (Green) at (Center of (Playable map area)) facing Default building facing degrees -------- Tạo Unit cho tất cả các player là ok -------- If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Integer Equal to 60 Then - Actions Set Integer = 0 Unit Group - Pick every unit in (Units of type Footman) and do (Actions) Loop - Actions Unit - Remove (Picked unit) from the game Player Group - Pick every player in (All players) and do (Actions) Loop - Actions Player - Add 1 to (Picked player) Current lumber Else - Actions
Giải thích: Mỗi 1 giây tạo 1 Unit có Food = 1 tức là mỗi giây Food sẽ tăng 1 => Số Food chính là số giây. Sau đó sẽ Set Integer thêm 1. Ở đây số Integer tăng đồng thời với số Food => Integer luôn luôn = Food => khi Integer = 60 thì Food cũng bằng 60 <=> số giây hiện thời là 60.
Dòng If là kiểm tra Integer = 60 thì sẽ Set Integer = 0 và Remove toàn bộ Unit => Số Food = 0 và tăng thêm 1 gỗ <=> tăng thêm 1 phút.
SetTimer
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked player) Food used) Greater than or equal to 59
Then - Actions
Player - Add 1 to (Picked player) Current lumber
Player - Set (Picked player) Food used to 0
Else - Actions
Player - Add 1 to (Picked player) Food used
Sao WE của mình kô có dòng này nhỉ
?:Player - Set (Picked player) Food used to 0
hoặc cho B là skill ảo ( sau đó trong unit biến thành của A thì cho abi B và set lv )@GW : hình như là dòn set Player Pro... ( ngay dòng đầu ấy )
@shark : show / hide unit cũng làm mất locust
@kick : http://forum.gamevn.com/showpost.php?p=7520482&postcount=136 giống dday
http://forum.gamevn.com/showpost.php?p=11167043&postcount=151 giống dota
@Yan : sử dụng event unit spell effecthoặc cho B là skill ảo ( sau đó trong unit biến thành của A thì cho abi B và set lv )
Vào phần Advanced > Gameplay Interface > Icon - Food/ Icon - Lumber.
Naga King 2
Events
Unit - Mountain King 0165 <gen>'s life becomes Less than 3500.00
Conditions
Actions
Unit - Pause all units
Cinematic - Turn cinematic mode On for (All players)
Wait 1.00 seconds
Cinematic - Send transmission to (All players) from Teruza 0116 <gen> named Teruza - Lord of Dr...: Play No sound and display Naga King,you was l.... Modify duration: Add 0.00 seconds and Wait
Wait 3.00 seconds
Cinematic - Send transmission to (All players) from Mountain King 0165 <gen> named Naga King: Play No sound and display If you give me and .... Modify duration: Add 0.00 seconds and Wait
Wait 3.00 seconds
Cinematic - Turn cinematic mode Off for (All players)
Unit - Unpause all units
Player - Make Player 10 (Light Blue) treat Player 11 (Dark Green) as an Enemy
Player - Make Player 9 (Gray) treat Player 11 (Dark Green) as an Ally
Unit - Move Altar of the Depths 0141 <gen> instantly to (Center of Naga Changes Ally <gen>)
Trigger - Turn on Naga King 3 <gen>
@Yan : sử dụng event unit spell effecthoặc cho B là skill ảo ( sau đó trong unit biến thành của A thì cho abi B và set lv )
sao ma` lam`duc cho map ma` chon tuong ay can` xay nha` ra tuong ko bik cach nao` de moi vo cho no lam` dc giong map tong hop? co ai chi~ em ko:)
. Mặc dù còn có mấy Map tui down về ( Map combine Item) thì xài được còn MAp tui đang làm thì mất tích (nhưng vẫn có trong Folders Map và mở bằng WE được nhưng vào game lại không thấy
)
Hero Up
Events
Unit - A unit Gains a level
Conditions
(Unit-type of (Triggering unit)) Equal to Paladin
(Level of (Triggering unit)) Equal to 10
((Triggering unit) is an illusion) Equal to False
((Triggering unit) is A Hero) Equal to True
Actions
Set TempLoc = (Position of (Triggering unit))
Special Effect - Create a special effect attached to the overhead of (Triggering unit) using Abilities\Spells\Other\Levelup\LevelupCaster.mdl
Special Effect - Destroy (Last created special effect)
Unit - Make (Triggering unit) Invulnerable
Unit - Pause all units
Cinematic - Disable user control for (All players)
Camera - Pan camera for (Owner of (Triggering unit)) to (Position of (Triggering unit)) over 0.00 seconds
Camera - Rotate camera 360.00 degrees around TempLoc for (Owner of (Triggering unit)) over 7.00 seconds
Wait 9.00 seconds
Cinematic - Enable user control for (All players)
Camera - Reset camera for (Owner of (Triggering unit)) to standard game-view over 0.00 seconds
Unit - Create 1 Mountain King for (Owner of (Triggering unit)) at TempLoc facing Default building facing degrees
Set CreatedUnit = (Last created unit)
Special Effect - Create a special effect attached to the overhead of CreatedUnit using Abilities\Spells\Other\Levelup\LevelupCaster.mdl
Special Effect - Destroy (Last created special effect)
Unit - Unpause all units
Hero - Give (Item carried by (Triggering unit) in slot 1) to CreatedUnit
Hero - Give (Item carried by (Triggering unit) in slot 2) to CreatedUnit
Hero - Give (Item carried by (Triggering unit) in slot 3) to CreatedUnit
Hero - Give (Item carried by (Triggering unit) in slot 4) to CreatedUnit
Hero - Give (Item carried by (Triggering unit) in slot 5) to CreatedUnit
Hero - Give (Item carried by (Triggering unit) in slot 6) to CreatedUnit
Unit - Remove (Triggering unit) from the game
Custom script: call RemoveLocation (udg_TempLoc)