Fluffball
Well-Known Member
- Reaction score
- 35
Unit Command Spell
Ok, this is a system for a spell, that, when cast will order all units in a (500 + (Level of Upgrade x 100)) radius to attack move the point of the spell being cast. This is useful for a map that has many small units, that will be tiring to order around twelve by twelve. For this System, you will need:
-A Unit Commander unit.
-A Unit Command Ability (Base ability = Shockwave, with 99999 range, 0 damage, you know what i mean. No model, but you can change the caster art to whatever you want.
-A Unit Command Upgrade, which doesn't do anything, so set all the object editor fields to 0, except for the cost, upgrade time, etc, with as many levels as you want, but the more you have, the more the spell will select, and the more lag.
-2 TempPoint Point variables
-1 TempGroup Variable (If you tick automatically create new variables while pasting trigger data you won't need these.
This is 1 very simple trigger, Please PM me with any bugs (Shouldn't be any, as I have tested this a lot). Feedback, Thank-Yous and +rep are greatly appreciated.
View attachment Fluffball's Unit Commander System.zip
Ok, this is a system for a spell, that, when cast will order all units in a (500 + (Level of Upgrade x 100)) radius to attack move the point of the spell being cast. This is useful for a map that has many small units, that will be tiring to order around twelve by twelve. For this System, you will need:
-A Unit Commander unit.
-A Unit Command Ability (Base ability = Shockwave, with 99999 range, 0 damage, you know what i mean. No model, but you can change the caster art to whatever you want.
-A Unit Command Upgrade, which doesn't do anything, so set all the object editor fields to 0, except for the cost, upgrade time, etc, with as many levels as you want, but the more you have, the more the spell will select, and the more lag.
-2 TempPoint Point variables
-1 TempGroup Variable (If you tick automatically create new variables while pasting trigger data you won't need these.
Code:
Command Units
Events
Unit - A unit Finishes casting an ability
Conditions
(Ability being cast) Equal to Command Units
Actions
Set Temp_Point2 = (Target point of ability being cast)
Set Temp_Point = (Position of (Casting unit))
Set Temp_Group = (Units within (500.00 + ((Real((Current research level of Command Units for (Owner of (Casting unit))))) x 100.00)) of (Position of (Casting unit)))
Unit Group - Remove (Casting unit) from Temp_Group
Unit Group - Pick every unit in Temp_Group and do (Actions)
Loop - Actions
Unit - Order (Picked unit) to Attack-Move To Temp_Point2
Custom script: call RemoveLocation (udg_Temp_Point)
Custom script: call RemoveLocation (udg_Temp_Point2)
Custom script: call DestroyGroup (udg_Temp_Group)
This is 1 very simple trigger, Please PM me with any bugs (Shouldn't be any, as I have tested this a lot). Feedback, Thank-Yous and +rep are greatly appreciated.
View attachment Fluffball's Unit Commander System.zip