Scauldingpon
New Member
- Reaction score
- 1
I made a really really low grade target system that will cast spells only on that target so you dont have to keep clicking everywhere. anyways.
What happens is that the dummyunit that is made becomes the new target everytime. so atm you can to repeat the first step every time i thought about making an ability call target or some bs like that to make it so that it wont change but i want to keep it as is. any insight?
Testing spell trigger
SO i figured why its setting the dummyunit to the target, because its being issued an order... any thoughts on how i can keep it kind the same but with out that bug?
What happens is that the dummyunit that is made becomes the new target everytime. so atm you can to repeat the first step every time i thought about making an ability call target or some bs like that to make it so that it wont change but i want to keep it as is. any insight?
Trigger:
- Set target
- Events
- Unit - A unit Is issued an order targeting an object
- Conditions
- ((Target unit of issued order) belongs to an enemy of (Triggering player)) Equal to (==) True
- Actions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Then - Actions
- Set Enemy = (Target unit of issued order)
- Set Targetenemy = (Name of Enemy)
- Game - Display to (All players) the text: (Your Enemy is + Targetenemy)
- Else - Actions
- Do nothing
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
Testing spell trigger
Trigger:
- Testrangespell
- Events
- Unit - A unit Begins casting an ability
- Conditions
- (Ability being cast) Equal to (==) Howl of Terror
- Actions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Is Enemy near (Casting unit) and withing a range of 1000.00) Equal to (==) True
- Then - Actions
- Unit - Create 1 Dummyunit for (Owner of (Casting unit)) at (Position of (Casting unit)) facing (Facing of (Casting unit)) degrees
- Unit - Add Storm Bolt to (Last created unit)
- Unit - Order (Last created unit) to Human Mountain King - Storm Bolt Enemy
- Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
- Else - Actions
- Game - Display to (All players) the text: Your target is out ...
- Do nothing
- If - Conditions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
SO i figured why its setting the dummyunit to the target, because its being issued an order... any thoughts on how i can keep it kind the same but with out that bug?