I followed a tutorial to create spells with multicast using Ruke's MUI system, but when I tried to modify one of them so that it affected friendly units, it doesn't work properly. Here are the triggers:
-
Multicast BL
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Bloodlust (Ogre)
-
(Level of Multicast (Icon) for (Triggering unit)) Greater than 0
-
-
Actions
-
Set VariableSet ChanceRandom = (Random integer number between 1 and 100)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
ChanceRandom Greater than or equal to 35
-
-
Then - Actions
-
Set VariableSet set_integer[1] = 1
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Multicast (Icon) for (Triggering unit)) Greater than 0
-
ChanceRandom Greater than or equal to 80
-
-
Then - Actions
-
Set VariableSet set_integer[1] = 2
-
-
Else - Actions
-
-
-
Else - Actions
-
Set VariableSet set_integer[1] = 0
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
set_integer[1] Greater than 0
-
-
Then - Actions
-
Set VariableSet set_point[1] = (Position of (Triggering unit))
-
Set VariableSet set_group[1] = (Units within 700.00 of set_point[1] matching ((((Matching unit) belongs to an ally of (Owner of (Triggering unit)).) Equal to True) and (((Matching unit) is alive) Equal to True)).)
-
Set VariableSet set_unit[1] = (Triggering unit)
-
Unit - Create 1 DUMMY_CASTER_ID for (Owner of set_unit[1]) at set_point[1] facing Default building facing degrees
-
Unit - Add Bloodlust (Ogre) (DUMMY) to (Last created unit)
-
Floating Text - Create floating text that reads (X + (String((set_integer[1] + 1)))) above (Triggering unit) with Z offset 0.00, using font size 10.00, color (100.00%, 35.00%, 35.00%), and 0.00% transparency
-
Floating Text - Set the velocity of (Last created floating text) to 10.00 towards 90.00 degrees
-
Floating Text - Change (Last created floating text): Disable permanence
-
Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
-
Set VariableSet set_unit[2] = (Last created unit)
-
Set VariableSet used_integers = 1
-
Set VariableSet used_groups = 1
-
Set VariableSet used_points = 1
-
Set VariableSet used_units = 3
-
Set VariableSet trigger = Multicast BL Loop <gen>
-
Set VariableSet timeout = 0.80
-
-
Else - Actions
-
-
-
-
Multicast BL Loop
-
Events
-
Conditions
-
Actions
-
Set VariableSet get_point[1] = (Position of get_unit[1])
-
Unit - Order get_unit[2] to Orc Shaman - Bloodlust (Random unit from get_group[1])
-
Unit - Reset ability cooldowns for get_unit[2].
-
Set VariableSet get_integer[1] = (get_integer[1] - 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
get_integer[1] Equal to 0
-
-
Then - Actions
-
Unit - Remove get_unit[2] from the game
-
Set VariableSet automaticClean = True
-
Set VariableSet finish = True
-
-
Else - Actions
-
-
-