Ăn xong dong
Mr & Ms Pac-Man
A Leo Nguyễn 112 ơi E đã làm condition zốg như a bảo, event là sell item from shop, action chỉ là hero- creat item and give it to (triggering unit) nhưg lại không đc mog a zúp đở Thanks a nhìu :(
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.
A Leo Nguyễn 112 ơi E đã làm condition zốg như a bảo, event là sell item from shop, action chỉ là hero- creat item and give it to (triggering unit) nhưg lại không đc mog a zúp đở Thanks a nhìu :(
Phải là Item type of sold item = ... mới đúng 
Untitled Trigger 001
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to War Stomp
Actions
Set UnitGroup = (Units in (Playable map area))
For each (Integer A) from 1 to 10, do (Actions)
Loop - Actions
Unit Group - Add all units of (Units of type dummy) to UnitGroup
Unit - Create 1 dummy for (Owner of (Triggering unit)) at ((Position of (Casting unit)) offset by 400.00 towards ((Real((Integer A))) x 40.00) degrees) facing Default building facing degrees
Unit - Set level of Frost Nova for (First unit of group UnitGroup to (Level of War Stomp for (Triggering unit))
Unit Group - Order (Units in (Playable map area)) to Undead Lich - Frost Nova (First unit of group UnitGroup)
Wait 5.00 seconds
Unit Group - Remove all units of (Units of type dummy) from UnitGroup


Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to (==) SPELL
Actions
Set Temp_point = (Position of (Casting unit))
Set Temp_Group1 = (Units within 99999 of Temp_point matching ((((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Equal to (==) True) and (((Triggering unit) is alive) Equal to (==) True)))
Unit Group - Pick every unit in AAGroup1 and do (Actions)
Loop - Actions
Set Temp_Point2 = (Position of (Picked unit))
Unit - Create 1 Dummy for (Owner of (Casting unit)) at AALoc2 facing Default building facing (270.0) degrees
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Unit - Add Frost Nova to Last Created Unit
Unit - Set level of Frost Nova for (Last created unit) to (Level of SPELL for (Casting unit))
Unit - Order (Last created unit) to Undead Lich - Frost Nova (Picked unit)
Custom script: call DestroyGroup(udg_Temp_Group)
Custom script: call RemoveLocation (udg_Temp_Point2)
Custom script: call RemoveLocation (udg_Temp_Point1)
Backstab
Events
Unit - A unit Is attacked
Conditions
((Attacking unit) has buff Backstab ) Equal to (==) True
((Attacked unit) belongs to an enemy of (Owner of (Attacking unit))) Equal to (==) True
Actions
Set Backstab_Caster = (Attacking unit)
Set Backstab_Target = (Attacked unit)
Set Backstab_Point[1] = (Position of Backstab_Caster)
Set Backstab_Point[2] = (Position of Backstab_Target)
Set Backstab_Angle = (Angle from Backstab_Point[1] to Backstab_Point[2])
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Multiple ConditionsOr - Any (Conditions) are true
Conditions
Multiple ConditionsAnd - All (Conditions) are true
Conditions
(Facing of Backstab_Caster) Less than or equal to (<=) ((Facing of Backstab_Target) + 120.00)
(Facing of Backstab_Caster) Greater than or equal to (>=) ((Facing of Backstab_Target) - 120.00)
Multiple ConditionsAnd - All (Conditions) are true
Conditions
Backstab_Angle Less than or equal to (<=) ((Facing of Backstab_Target) + 120.00)
Backstab_Angle Greater than or equal to (>=) ((Facing of Backstab_Target) - 120.00)
Then - Actions
Unit - Cause Backstab_Caster to damage Backstab_Target, dealing ((Real((Agility of Backstab_Caster (Include bonuses)))) x (0.25 x (Real((Level of [U]Backstab[/U] for Backstab_Caster))))) damage of attack type Hero and damage type Normal
Special Effect - Create a special effect attached to the chest of Backstab_Target using Abilities\Spells\Other\Stampede\StampedeMissileDeath.mdl
Special Effect - Destroy (Last created special effect)
Else - Actions
Custom script: call RemoveLocation (udg_Backstab_Point[1])
Custom script: call RemoveLocation (udg_Backstab_Point[2])
Sao bạn ko làm thế này cho đơn giản hơn O.o:
@FlameDrake:
PHP:Backstab If - Conditions Multiple ConditionsOr - Any (Conditions) are true Conditions Multiple ConditionsAnd - All (Conditions) are true Conditions (Facing of Backstab_Caster) Less than or equal to (<=) ((Facing of Backstab_Target) + 120.00) (Facing of Backstab_Caster) Greater than or equal to (>=) ((Facing of Backstab_Target) - 120.00) Multiple ConditionsAnd - All (Conditions) are true Conditions Backstab_Angle Less than or equal to (<=) ((Facing of Backstab_Target) + 120.00) Backstab_Angle Greater than or equal to (>=) ((Facing of Backstab_Target) - 120.00) Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(AD_Attacker is A melee attacker) Equal to True
(Abs((((Angle from point1 to point2) mod 360.00) - ((Facing of AD_Defender) mod 360.00)))) Greater than 120.00
(Abs((((Angle from point1 to point2) mod 360.00) - ((Facing of AD_Defender) mod 360.00)))) Less than 240.00
Then - Actions
Special Effect - Create a special effect attached to the chest of AD_Defender using Abilities\Spells\Other\Stampede\StampedeMissileDeath.mdl
Special Effect - Destroy (Last created special effect)
Unit - Cause AD_Attacker to damage AD_Defender, dealing ((0.50 x (Real((Level of Backstab for AD_Attacker)))) x (Real((Agility of AD_Attacker (Include bonuses))))) damage of attack type Hero and damage type Normal
Else - Actions
Ai chỉ mình cách làm cái skill Backstab của Rikimaru trong DotA phát, không biết làm hàm If thế nào để cho ĐK là sau lưng thằng bị đánh thì mới gây dame![]()

Custom script: set udg_TempCheck = IsUnitBehind( udg_TempUnit , udg_TempUnit2 )
Custom script: set udg_TempCheck = IsUnitInFront( udg_TempUnit , udg_TempSource )
Custom script: set udg_TempCheck = IsUnitAtSideLeft( udg_TempUnit , udg_TempSource )
Custom script: set udg_TempCheck = IsUnitAtSideRight( udg_TempUnit , udg_TempSource )
//Source ở đây tương đương với unit B
Mình đang làm trigger về cộng điểm khi lên level nó cho 5 điểm rùi mình xài lệnh Vd:-Agi xx thì nó tăng xx điểm và trừ số point của mà mình đã + lun ai giúp dùm
Cần mọi người giúp dùm mình làm trigger này :(
Untitled Trigger 001
Events
Map initialization
Conditions
Actions
For each (Integer A) from 1 to 12, do (Actions)
Loop - Actions
Set PlayerArray[(Integer A)] = (Player((Integer A)))
For each (Integer B) from 1 to 100, do (Actions)
Loop - Actions
Trigger - Add to Level <gen> the event (Player - PlayerArray[(Integer A)] types a chat message containing (-Agi + (String((Integer B)))) as An exact match)
Untitled Trigger 002
Events
Unit - A unit Gains a level
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Set Integer[(Player number of (Owner of (Triggering unit)))] = (Integer[(Player number of (Owner of (Triggering unit)))] + 5)
Level
Events
Conditions
Actions
Set Group = (Units owned by (Triggering player) matching ((((Matching unit) is A Hero) Equal to True) and (((Matching unit) is alive) Equal to True)))
For each (Integer A) from 1 to 100, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Entered chat string) Equal to (-Agi + (String((Integer A))))
Integer[(Player number of (Triggering player))] Less than or equal to (Integer A)
Then - Actions
Hero - Modify Agility of (First unit of group Group): Add (Integer A)
Set Integer[(Player number of (Triggering player))] = (Integer[(Player number of (Triggering player))] - (Integer A))
Else - Actions
Custom script: call DestroyGroup (udg_Group)
Của bạn đây :)
Mã:Untitled Trigger 001 Events Map initialization Conditions Actions For each (Integer A) from 1 to 12, do (Actions) Loop - Actions Set PlayerArray[(Integer A)] = (Player((Integer A))) For each (Integer B) from 1 to 100, do (Actions) Loop - Actions Trigger - Add to Level <gen> the event (Player - PlayerArray[(Integer A)] types a chat message containing (-Agi + (String((Integer B)))) as An exact match)
Mã:Untitled Trigger 002 Events Unit - A unit Gains a level Conditions ((Triggering unit) is A Hero) Equal to True Actions Set Integer[(Player number of (Owner of (Triggering unit)))] = (Integer[(Player number of (Owner of (Triggering unit)))] + 5)
Mã:Level Events Conditions Actions Set Group = (Units owned by (Triggering player) matching ((((Matching unit) is A Hero) Equal to True) and (((Matching unit) is alive) Equal to True))) For each (Integer A) from 1 to 100, do (Actions) Loop - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Entered chat string) Equal to (-Agi + (String((Integer A)))) Integer[(Player number of (Triggering player))] Less than or equal to (Integer A) Then - Actions Hero - Modify Agility of (First unit of group Group): Add (Integer A) Set Integer[(Player number of (Triggering player))] = (Integer[(Player number of (Triggering player))] - (Integer A)) Else - Actions Custom script: call DestroyGroup (udg_Group)
GameVN có hẳn 1 tut về cái này do Mr.Tom làm sao không đọc
Xem chi tiết tại đâyMã:[B]Custom script:[/B] set udg_TempCheck = IsUnitBehind( udg_TempUnit , udg_TempUnit2 ) [B]Custom script:[/B] set udg_TempCheck = IsUnitInFront( udg_TempUnit , udg_TempSource ) [B]Custom script:[/B] set udg_TempCheck = IsUnitAtSideLeft( udg_TempUnit , udg_TempSource ) [B]Custom script:[/B] set udg_TempCheck = IsUnitAtSideRight( udg_TempUnit , udg_TempSource ) //Source ở đây tương đương với unit B

.Có cách nào để tạo được nhiều hơn 2 cliff type trong 1 map không? Và có thể tạo region không phải hình chữ nhật? (hoặc gộp nhiều region lại thành 1 region?)
Cho e hỏi spell Divine Shield khi add vào item tại sao e sài lại chỉ đc có 1 lần o.0 ? zúp e vs thanks nhìu