Moderator
M
Moderator
12th Dec 2015
IcemanBo: Too long as NeedsFix. Rejected.
11:22, 27th Oct 2012
Magtheridon96:
- The spell is not totally MUI as you're using a static variable for the distance. (Same distance variable is shared by all spell instances)
- The distance should be configurable.
- You're leaking Pounce_TargetLoc in the Loop trigger.
-
Are you trying to do the actions for one unit, or for all?
If you want to do them for all units, remove the custom script in which you set a unit to "FirstOfGroup(...)".
If you want to do the actions for a random unit from the group, remove the "Pick every unit in ..." line, and just do the actions of the group enumeration while using Pounce_TempUnit as your "random unit in the group".
IcemanBo: Too long as NeedsFix. Rejected.
11:22, 27th Oct 2012
Magtheridon96:
- The spell is not totally MUI as you're using a static variable for the distance. (Same distance variable is shared by all spell instances)
- The distance should be configurable.
- You're leaking Pounce_TargetLoc in the Loop trigger.
-
-
Set Pounce_Group = (Units within Pounce_AoE_Pick of Pounce_CasterLoc)
-
Custom script: set udg_Pounce_TempUnit = FirstOfGroup(udg_Pounce_Group)
-
Unit Group - Pick every unit in Pounce_Group and do (Actions)
-
Set Pounce_Target[Pounce_TempInt] = (Picked unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
And - All (Conditions) are true
-
(Owner of Pounce_Target[Pounce_TempInt]) Not equal to Pounce_Owner[Pounce_TempInt]
-
(Pounce_Target[Pounce_TempInt] is alive) Equal to true
-
-
-
Then - Actions
-
Set Pounce_TargetLoc = (Position of Pounce_Target[Pounce_TempInt])
-
Unit - Cause Pounce_Caster[Pounce_TempInt] to damage Pounce_Target[Pounce_TempInt] dealing Pounce_Damage[Pounce_Level[Pounce_TempInt]] damage of attack type Spells and damage type Normal
-
-------- ---------------------------------- --------
-
-------- When the caster encounters an enemy --------
-
-------- the loop will stop. --------
-
-------- ---------------------------------- --------
-
Set Pounce_Distance = 0.00
-
-
Else - Actions
-
-
Are you trying to do the actions for one unit, or for all?
If you want to do them for all units, remove the custom script in which you set a unit to "FirstOfGroup(...)".
If you want to do the actions for a random unit from the group, remove the "Pick every unit in ..." line, and just do the actions of the group enumeration while using Pounce_TempUnit as your "random unit in the group".