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.
1. tăng/giảm attack range như vậy là không thể, sử dụng 2 upgrade (1 tăng, 1 giảm) thì có khả năng nhưng cũng có giới hạn. Về move speed thì mỗi item cho một ability Item Move Speed Bonus có giá trị âm.
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to War Stomp
Actions
Set Mui[26] = (Mui[26] + 1)
Set Tanker[Mui[26]] = (Triggering unit)
Set Point[Mui[26]] = (Position of Tanker[Mui[26]])
Set UnitDie[Mui[26]] = (Units within 300.00 of Point[Mui[26]] matching ((((Matching unit) is dead) Equal to True) and (((Matching unit) is A structure) Equal to False)))
Set NumberDieunit[Mui[26]] = (Number of units in UnitDie[Mui[26]])
Custom script: call RemoveLocation(udg_Point[udg_Mui[26]])
Unit Group - Pick every unit in UnitDie[Mui[26]] and do (Actions)
Loop - Actions
Set Point[Mui[26]] = (Position of (Picked unit))
Special Effect - Create a special effect at Point[Mui[26]] using Objects\Spawnmodels\Orc\OrcLargeDeathExplode\OrcLargeDeathExplode.mdl
Special Effect - Destroy (Last created special effect)
Custom script: call RemoveLocation(udg_Point[udg_Mui[26]])
Unit - Remove (Picked unit) from the game
Set Point[Mui[26]] = (Position of Tanker[Mui[26]])
Set UnitLife[Mui[26]] = (Units within 300.00 of Point[Mui[26]] matching (((((Matching unit) belongs to an enemy of (Owner of Tanker[Mui[26]])) Equal to True) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) is Magic Immune) Equal to False))) and ((((Matching uni
Unit Group - Pick every unit in UnitLife[Mui[26]] and do (Actions)
Loop - Actions
Unit - Cause Tanker[Mui[26]] to damage (Picked unit), dealing ((10.00 x (Real((Level of War Stomp for Tanker[26])))) x (Real(NumberDieunit[Mui[26]]))) damage of attack type Spells and damage type Normal
Custom script: call RemoveLocation(udg_Point[udg_Mui[26]])
Custom script: call DestroyGroup(udg_UnitDie[udg_Mui[26]])
Custom script: call DestroyGroup(udg_UnitLife[udg_Mui[26]])
YAN[asian];15783037 nói:Mình tưởng Item Move Speed Bonus ko stack với nhau, vì cầm 2 cái giày thì đâu có chạy nhanh hơn được? Và giả sử khi cầm 1 item -ms, 1 item +ms thì nó có tính ms = cả 2 item ko hay chỉ tính 1 cái?
-------------
Cho hỏi nữa là trigger này có vấn đề gì ko mà ko thấy nó deal dam vào group UnitLife?
Mã:Events Unit - A unit Starts the effect of an ability Conditions (Ability being cast) Equal to War Stomp Actions Set Mui[26] = (Mui[26] + 1) Set Tanker[Mui[26]] = (Triggering unit) Set Point[Mui[26]] = (Position of Tanker[Mui[26]]) Set UnitDie[Mui[26]] = (Units within 300.00 of Point[Mui[26]] matching ((((Matching unit) is dead) Equal to True) and (((Matching unit) is A structure) Equal to False))) Set NumberDieunit[Mui[26]] = (Number of units in UnitDie[Mui[26]]) Custom script: call RemoveLocation(udg_Point[udg_Mui[26]]) Unit Group - Pick every unit in UnitDie[Mui[26]] and do (Actions) Loop - Actions Set Point[Mui[26]] = (Position of (Picked unit)) Special Effect - Create a special effect at Point[Mui[26]] using Objects\Spawnmodels\Orc\OrcLargeDeathExplode\OrcLargeDeathExplode.mdl Special Effect - Destroy (Last created special effect) Custom script: call RemoveLocation(udg_Point[udg_Mui[26]]) Unit - Remove (Picked unit) from the game Set Point[Mui[26]] = (Position of Tanker[Mui[26]]) Set UnitLife[Mui[26]] = (Units within 300.00 of Point[Mui[26]] matching (((((Matching unit) belongs to an enemy of (Owner of Tanker[Mui[26]])) Equal to True) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) is Magic Immune) Equal to False))) and ((((Matching uni Unit Group - Pick every unit in UnitLife[Mui[26]] and do (Actions) Loop - Actions Unit - Cause Tanker[Mui[26]] to damage (Picked unit), dealing ((10.00 x (Real((Level of War Stomp for Tanker[26])))) x (Real(NumberDieunit[Mui[26]]))) damage of attack type Spells and damage type Normal Custom script: call RemoveLocation(udg_Point[udg_Mui[26]]) Custom script: call DestroyGroup(udg_UnitDie[udg_Mui[26]]) Custom script: call DestroyGroup(udg_UnitLife[udg_Mui[26]])
Unit - Remove (Picked unit) from the game
Set Mui[26] = (Mui[26] + 1)
Set Tanker[Mui[26]] = (Triggering unit)
Set Point[Mui[26]] = (Position of Tanker[Mui[26]])
Set UnitDie[Mui[26]] = (Units within 300.00 of Point[Mui[26]] matching ((((Matching unit) is dead) Equal to True) and (((Matching unit) is A structure) Equal to False)))
Set NumberDieunit[Mui[26]] = (Number of units in UnitDie[Mui[26]])
Custom script: call RemoveLocation(udg_Point[udg_Mui[26]])
Set Point[Mui[26]] = (Position of Tanker[Mui[26]])
Set UnitLife[Mui[26]] = (Units within 300.00 of Point[Mui[26]] matching (((((Matching unit) belongs to an enemy of (Owner of Tanker[Mui[26]])) Equal to True) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) is Magic Immune) Equal to False))) and ((((Matching uni
Unit Group - Pick every unit in UnitLife[Mui[26]] and do (Actions)
Loop - Actions
Unit - Cause Tanker[Mui[26]] to damage (Picked unit), dealing ((10.00 x (Real((Level of War Stomp for Tanker[26])))) x (Real(NumberDieunit[Mui[26]]))) damage of attack type Spells and damage type Normal
Custom script: call RemoveLocation(udg_Point[udg_Mui[26]])
Unit Group - Pick every unit in UnitDie[Mui[26]] and do (Actions)
Loop - Actions
Set Point[Mui[26]] = (Position of (Picked unit))
Special Effect - Create a special effect at Point[Mui[26]] using Objects\Spawnmodels\Orc\OrcLargeDeathExplode\OrcLargeDeathExplode.mdl
Special Effect - Destroy (Last created special effect)
Custom script: call RemoveLocation(udg_Point[udg_Mui[26]])
Unit - Remove (Picked unit) from the game
Custom script: call DestroyGroup(udg_UnitDie[udg_Mui[26]])
Custom script: call DestroyGroup(udg_UnitLife[udg_Mui[26]])

Post thứ 3 vẫn chưa ai trả lờiCho hỏi cách làm 1 skill Jass đơn giản. Nếu convert từ GUI -> Jass thì ko có cái Local Var. Cho hỏi luôn Local Var và Gobal Var khác nhau thế nào ?? Cái nào để làm MUI ???
P/s: Nếu muốn làm Damage Spell = damage base của hero thì có phải dùng lệnh GetUserData() ko ???
ai rãnh làm giúp mình 1 trigger khi giết 1 con lính rớt item random trigger nhá không có lính ở sẵn trên bản đồ![]()
Post thứ 3 vẫn chưa ai trả lời
tương tự như này, bộ spam hã ?các bác cho e hỏi làm sao để đánh chết 1 con woai làm rơi ra cái đồng tiền vàng với tỉ lệ là 50%
E thử làm bằng cách kích vào từng con rồi chọn item drop nhưng sau khi quái hồi sinh thì đánh kô rơi ra cái j nữa
Ag e hồi sinh quái bằng replace unit còn cách nào để hồi sinh quái sau khi bị đập chết kô?


cái đó giống random hero vậy mà không nghĩ ra
random hero
Events
Player - Player 1 (Red) types a chat message containing -random as An exact match
Conditions
Actions
Set random = (Random integer number between 1 and 3)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
random Equal to 1
Then - Actions
Unit - Create 1 Paladin for Player 1 (Red) at (Center of Region 018 <gen>) facing Default building facing degrees
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
random Equal to 2
Then - Actions
Unit - Create 1 Archmage for Player 1 (Red) at (Center of Region 018 <gen>) facing Default building facing degrees
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
random Equal to 3
Then - Actions
Unit - Create 1 Bóa Lïn for Player 1 (Red) at (Center of Region 018 <gen>) facing Default building facing degrees
Else - Actions
Do nothing
Trigger - Turn off (This trigger)
cái này ai thêm giúp mình làm sao để khi người chơi khác chơi mới random mới ra

Random Model
Events
Player - Player 2 (Blue) types a chat message containing -ar as An exact match
Player - Player 8 (Pink) types a chat message containing -ar as An exact match
Conditions
Actions
Cinematic - Clear the screen of text messages for (All players)
Quest - Display to (All players) the Quest Failed message: ((Player_Colors[(Player number of (Triggering player))] + (Name of (Triggering player))) + |rhas selected |c007ebff1All Random|r)
Player Group - Pick every player in (All players matching (((Matching unit) belongs to an ally of Player 1 (Red)) Equal to True)) and do (Actions)
Loop - Actions
Camera - Pan camera for (Picked player) to (Center of Night Elf Sentinel <gen>) over 0.00 seconds
Player Group - Pick every player in (All players matching (((Matching unit) belongs to an ally of Player 7 (Green)) Equal to True)) and do (Actions)
Loop - Actions
Camera - Pan camera for (Picked player) to (Center of Undead Scourge <gen>) over 0.00 seconds
Trigger - Turn off Model Initialization Set <gen>
Trigger - Turn off HeroSelect Init <gen>
Trigger - Turn off Normal Model <gen>
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 2 (Blue) controller) Not equal to Computer
(Player 2 (Blue) slot status) Equal to Is playing
Then - Actions
Unit Group - Pick every unit in (Random 1 units from (Units in Night Elf <gen>)) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
Unit - Create 1 (Unit-type of (Picked unit)) for Player 2 (Blue) at (Center of Player 2 <gen>) facing 270.00 degrees
Selection - Select (Last created unit) for (Triggering player)
Game - Display to (All players matching ((Owner of (Last created unit)) Not equal to (Owner of (Last created unit)))) the text: (Player_Colors[(Player number of (Owner of (Last created unit)))] + (( + (Name of (Owner of (Last created unit)))) + ( |rhas random + ((Proper name of (Last created unit)) + 's.))))
Else - Actions
Wait 0.01 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 3 (Teal) controller) Not equal to Computer
(Player 3 (Teal) slot status) Equal to Is playing
Then - Actions
Unit Group - Pick every unit in (Random 1 units from (Units in Night Elf <gen>)) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
Unit - Create 1 (Unit-type of (Picked unit)) for Player 3 (Teal) at (Center of Player 3 <gen>) facing 270.00 degrees
Selection - Select (Last created unit) for (Triggering player)
Game - Display to (All players matching ((Owner of (Last created unit)) Not equal to (Owner of (Last created unit)))) the text: (Player_Colors[(Player number of (Owner of (Last created unit)))] + (( + (Name of (Owner of (Last created unit)))) + ( |rhas random + ((Proper name of (Last created unit)) + 's.))))
Else - Actions
Wait 0.02 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 4 (Purple) controller) Not equal to Computer
(Player 4 (Purple) slot status) Equal to Is playing
Then - Actions
Unit Group - Pick every unit in (Random 1 units from (Units in Night Elf <gen>)) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
Unit - Create 1 (Unit-type of (Picked unit)) for Player 4 (Purple) at (Center of Player 4 <gen>) facing 270.00 degrees
Selection - Select (Last created unit) for (Triggering player)
Game - Display to (All players matching ((Owner of (Last created unit)) Not equal to (Owner of (Last created unit)))) the text: (Player_Colors[(Player number of (Owner of (Last created unit)))] + (( + (Name of (Owner of (Last created unit)))) + ( |rhas random + ((Proper name of (Last created unit)) + 's.))))
Else - Actions
Wait 0.03 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 5 (Yellow) controller) Not equal to Computer
(Player 5 (Yellow) slot status) Equal to Is playing
Then - Actions
Unit Group - Pick every unit in (Random 1 units from (Units in Night Elf <gen>)) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
Unit - Create 1 (Unit-type of (Picked unit)) for Player 5 (Yellow) at (Center of Player 5 <gen>) facing 270.00 degrees
Selection - Select (Last created unit) for (Triggering player)
Game - Display to (All players matching ((Owner of (Last created unit)) Not equal to (Owner of (Last created unit)))) the text: (Player_Colors[(Player number of (Owner of (Last created unit)))] + (( + (Name of (Owner of (Last created unit)))) + ( |rhas random + ((Proper name of (Last created unit)) + 's.))))
Else - Actions
Wait 0.04 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 6 (Orange) controller) Not equal to Computer
(Player 6 (Orange) slot status) Equal to Is playing
Then - Actions
Unit Group - Pick every unit in (Random 1 units from (Units in Night Elf <gen>)) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
Unit - Create 1 (Unit-type of (Picked unit)) for Player 6 (Orange) at (Center of Player 6 <gen>) facing 270.00 degrees
Selection - Select (Last created unit) for (Triggering player)
Game - Display to (All players matching ((Owner of (Last created unit)) Not equal to (Owner of (Last created unit)))) the text: (Player_Colors[(Player number of (Owner of (Last created unit)))] + (( + (Name of (Owner of (Last created unit)))) + ( |rhas random + ((Proper name of (Last created unit)) + 's.))))
Else - Actions
Wait 0.05 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 8 (Pink) controller) Not equal to Computer
(Player 8 (Pink) slot status) Equal to Is playing
Then - Actions
Unit Group - Pick every unit in (Random 1 units from (Units in Undead <gen>)) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
Unit - Create 1 (Unit-type of (Picked unit)) for Player 8 (Pink) at (Center of Player 8 <gen>) facing 270.00 degrees
Selection - Select (Last created unit) for (Triggering player)
Game - Display to (All players matching ((Owner of (Last created unit)) Not equal to (Owner of (Last created unit)))) the text: (Player_Colors[(Player number of (Owner of (Last created unit)))] + (( + (Name of (Owner of (Last created unit)))) + ( |rhas random + ((Proper name of (Last created unit)) + 's.))))
Else - Actions
Wait 0.06 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 9 (Gray) controller) Not equal to Computer
(Player 9 (Gray) slot status) Equal to Is playing
Then - Actions
Unit Group - Pick every unit in (Random 1 units from (Units in Undead <gen>)) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
Unit - Create 1 (Unit-type of (Picked unit)) for Player 9 (Gray) at (Center of Player 9 <gen>) facing 270.00 degrees
Selection - Select (Last created unit) for (Triggering player)
Game - Display to (All players matching ((Owner of (Last created unit)) Not equal to (Owner of (Last created unit)))) the text: (Player_Colors[(Player number of (Owner of (Last created unit)))] + (( + (Name of (Owner of (Last created unit)))) + ( |rhas random + ((Proper name of (Last created unit)) + 's.))))
Else - Actions
Wait 0.07 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 10 (Light Blue) controller) Not equal to Computer
(Player 10 (Light Blue) slot status) Equal to Is playing
Then - Actions
Unit Group - Pick every unit in (Random 1 units from (Units in Undead <gen>)) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
Unit - Create 1 (Unit-type of (Picked unit)) for Player 10 (Light Blue) at (Center of Player 10 <gen>) facing 270.00 degrees
Selection - Select (Last created unit) for (Triggering player)
Game - Display to (All players matching ((Owner of (Last created unit)) Not equal to (Owner of (Last created unit)))) the text: (Player_Colors[(Player number of (Owner of (Last created unit)))] + (( + (Name of (Owner of (Last created unit)))) + ( |rhas random + ((Proper name of (Last created unit)) + 's.))))
Else - Actions
Wait 0.08 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 11 (Dark Green) controller) Not equal to Computer
(Player 11 (Dark Green) slot status) Equal to Is playing
Then - Actions
Unit Group - Pick every unit in (Random 1 units from (Units in Undead <gen>)) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
Unit - Create 1 (Unit-type of (Picked unit)) for Player 11 (Dark Green) at (Center of Player 11 <gen>) facing 270.00 degrees
Selection - Select (Last created unit) for (Triggering player)
Game - Display to (All players matching ((Owner of (Last created unit)) Not equal to (Owner of (Last created unit)))) the text: (Player_Colors[(Player number of (Owner of (Last created unit)))] + (( + (Name of (Owner of (Last created unit)))) + ( |rhas random + ((Proper name of (Last created unit)) + 's.))))
Else - Actions
Wait 0.09 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 12 (Brown) controller) Not equal to Computer
(Player 12 (Brown) slot status) Equal to Is playing
Then - Actions
Unit Group - Pick every unit in (Random 1 units from (Units in Undead <gen>)) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
Unit - Create 1 (Unit-type of (Picked unit)) for Player 12 (Brown) at (Center of Player 12 <gen>) facing 270.00 degrees
Selection - Select (Last created unit) for (Triggering player)
Game - Display to (All players matching ((Owner of (Last created unit)) Not equal to (Owner of (Last created unit)))) the text: (Player_Colors[(Player number of (Owner of (Last created unit)))] + (( + (Name of (Owner of (Last created unit)))) + ( |rhas random + ((Proper name of (Last created unit)) + 's.))))
Else - Actions
Trigger - Turn off (This trigger)

ai rãnh làm giúp mình 1 trigger khi giết 1 con lính rớt item random trigger nhá không có lính ở sẵn trên bản đồ![]()
[COLOR="Blue"]TheTest
Events
Unit - A unit Dies
Conditions
Actions
Set OOOOOOOOO[1] = Claws of Attack +12
Set OOOOOOOOO[2] = Cloak of Shadows
Item - Create OOOOOOOOO[(Random integer number between 1 and 2)] at (Position of (Dying unit))
[/COLOR]
[COLOR="Lime"]OOOOOOOOO
Item-Type
Array Size 1[/COLOR]
[COLOR="Blue"]TheTest
Events
Unit - A unit Dies
Conditions
Actions
Set OOOOOOOOO[1] = Claws of Attack +12
Set OOOOOOOOO[2] = Cloak of Shadows
Set OOOOOOOOO[3] = Claws of Attack +15
Item - Create OOOOOOOOO[(Random integer number between 1 and 3)] at (Position of (Dying unit))
[/COLOR]

