-
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
-
Loop - Actions
-
Custom script: if GetPlayerAlliance(GetOwningPlayer(GetEnumUnit()),GetTriggerUnit(),ALLIANCE_SHARED_CONTROL) then
-
Set tempPoint[3] = (Position of (Picked unit))
-
Unit - Order (Picked unit) to drop (Item carried by (Picked unit) in slot 1) at tempPoint[3]
-
Custom script: call RemoveLocation(udg_tempPoint[3])
-
Custom script: endif
-
-
Now, upon saving/enabling the trigger, I get these errors:
Line 1704: Invalid argument type (unit)
Line 1708: Expected a code statement (unit)
1704: if GetPlayerAlliance(GetOwningPlayer(GetEnumUnit()),GetTriggerUnit(),ALLIANCE_SHARED_CONTROL) then
1708: endif
Basically, I want a line of JASS that would be equal to this line of GUI:
-
((Picked unit) belongs to an ally with full control of (Triggering player)) Equal to True
-
((Picked unit) belongs to an ally of (Triggering player)) Equal to True