- Joined
- Jun 17, 2010
- Messages
- 2,275
What is the custom script that issues an order targeting a unit.
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.
native IssueTargetOrder takes unit whichUnit, string order, widget targetWidget returns boolean
Custom script: call IssueTargetOrder(unit, "order", target)
Tri
Events

Unit - A unit is issued an order targeting an object

Unit - A unit is issued an order targeting a point

Unit - A unit is issued an order with no target
Conditions
Actions

Custom script: call BJDebugMsg(I2S(GetIssuedOrderId()))
Set Target = (Target unit of ability being cast)
Unit - Create 1 Dummy for (Triggering player) at Point1 facing Default building facing degrees
Custom script: call IssueTargetOrderById (GetLastCreatedUnit(), 852274, udg_Target)
Custom script: call IssueTargetOrderById(bj_lastCreatedUnit,"852101",GetKillingUnit())
Custom script: call IssueTargetOrderById(bj_lastCreatedUnit, 852101 ,GetKillingUnit())
Fury

Events


Unit - A unit Dies

Conditions


(Level of Fury for (Killing unit)) Greater than 0

Actions


Set Fury_Index = (Fury_Index + 1)


Set Fury_Point[Fury_Index] = (Position of (Killing unit))


Unit - Create 1 Fury Dummy for (Owner of (Killing unit)) at Fury_Point[Fury_Index] facing Default building facing degrees


Set Fury_Dummy[Fury_Index] = (Last created unit)


Unit - Hide (Last created unit)


Custom script: call IssueTargetOrderById((udg_Fury_Dummy[(udg_Fury_Index)]),852101,GetKillingUnit())


Custom script: call RemoveLocation(udg_Fury_Point[(udg_Fury_Index)])
Swift Assault

Events


Unit - A unit Starts the effect of an ability

Conditions

Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(Ability being cast) Equal to Swift Assault



Then - Actions




Set SA_Index = (SA_Index + 1)




Set SA_Point[SA_Index] = (Position of (Target unit of ability being cast))




Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing 100.00 damage of attack type Pierce and damage type Normal




Unit - Move (Triggering unit) instantly to SA_Point[SA_Index]




Set SA_Index = (SA_Index - 1)



Else - Actions


Custom script: call RemoveLocation(udg_SA_Point[(udg_SA_Index)])
Fury
Events

Unit - A unit dies
Conditions

(Level of Fury for (Killing unit)) Greater than 0
Actions

Set Fury_Killer = (Killing unit)

Set Fury_Point = (Position of Fury_Killer)

Unit - Create 1 Fury Dummy for (Owner of Fury_Killer) at Fury_Point facing Default building facing degrees

Set Fury_Dummy = (Last created unit)

Unit - Add a 2.00 seconds generic expiration timer to Furry_Dummy

Custom script: call IssueTargetOrder (udg_Fury_Dummy, "bloodlust", udg_Fury_Killer)

Custom script: call RemoveLocation (udg_Fury_Point)
