Hey Guys.
Im about to make a unit which can burrow/unburrow.
- I've made both units (like the Crypt Fiend).
And as far as i know, it is 2 units you need (Spider Sami (Unit1)/Spider Sami Undercover(Unit2))
My idea of the unit(s):
Unit1
Spell: Undercover (ON) (Burrow)
A normal unit who can walk arround at the ground (fixed)
Should add spell "Undercover Move" when casting spell. (Problem1)
Unit2
Spell1: Undercover (OFF) (Unburrow)
Spell2: Undercover move
When Unit2 is Undercover, it get's hp regen (fixed), and movementspeed when using Spell1 (+15%) (Problem2).
When Spell2 is casted, Unit2 should get add'd a MS (300), and be able to move arround, under the ground. (as the "Burrowed unit icon"). After 3 sec. Unit2 should move up (automatic cast Spell1), and stun units at the ground for 2 sec. (Problem3).
Problem1 (Spell Add)
The spell gets add'd to the unit, while digging to the ground.
- And when the becomes "Spider Sami Undercover" the spell is'nt there.
- I've add'd the spell to "Spider Sami Undercover" in the unit abilities, but dosnt show.
Problem2 (The MS boost).
There is a cast time at the "Burrow/Unburrow" as i can see.
- And the unit changes, so the buff is being add'd to "Spider Sami Undercover", and not "Spider Sami".
Problem3 (The Undercover Move)
I guess its the same problem, whit the trigger adding to the wrong unit.
I really cant solve these problems.
Hope you understand my problem.
Thanks
- Chris
Im about to make a unit which can burrow/unburrow.
- I've made both units (like the Crypt Fiend).
And as far as i know, it is 2 units you need (Spider Sami (Unit1)/Spider Sami Undercover(Unit2))
My idea of the unit(s):
Unit1
Spell: Undercover (ON) (Burrow)
A normal unit who can walk arround at the ground (fixed)
Should add spell "Undercover Move" when casting spell. (Problem1)
Unit2
Spell1: Undercover (OFF) (Unburrow)
Spell2: Undercover move
When Unit2 is Undercover, it get's hp regen (fixed), and movementspeed when using Spell1 (+15%) (Problem2).
When Spell2 is casted, Unit2 should get add'd a MS (300), and be able to move arround, under the ground. (as the "Burrowed unit icon"). After 3 sec. Unit2 should move up (automatic cast Spell1), and stun units at the ground for 2 sec. (Problem3).
Problem1 (Spell Add)
Trigger:
- Spider Sami
- Events
- Unit - A unit Begins casting an ability
- Conditions
- (Unit-type of (Casting unit)) Equal to Spider Sami
- (Ability being cast) Equal to Undercover (Spider Sami)
- Actions
- Unit - Add Undercover Move (Spider Sami) to (Casting unit)
- Unit - Set (Casting unit) movement speed to (Real(SpiderSamiInt))
- Events
The spell gets add'd to the unit, while digging to the ground.
- And when the becomes "Spider Sami Undercover" the spell is'nt there.
- I've add'd the spell to "Spider Sami Undercover" in the unit abilities, but dosnt show.
Problem2 (The MS boost).
Trigger:
- Spider Sami 2
- Events
- Unit - A unit Begins casting an ability
- Conditions
- (Unit-type of (Casting unit)) Equal to Spider Sami Undercover
- (Ability being cast) Equal to Undercover (Spider Sami)
- Actions
- Unit - Remove Undercover Move (Spider Sami) from (Casting unit)
- Unit Group - Pick every unit in (Units in (Playable map area) owned by (Owner of (Casting unit))) and do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Unit-type of (Picked unit)) Equal to Spider Sami
- Then - Actions
- Unit - Add Speedy Spider (Spider Sami) to (Picked unit)
- Wait 4.00 seconds
- Unit - Remove Speedy Spider (Spider Sami) from (Picked unit)
- Unit - Remove Speedy Spider (Buff) buff from (Picked unit)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- Events
There is a cast time at the "Burrow/Unburrow" as i can see.
- And the unit changes, so the buff is being add'd to "Spider Sami Undercover", and not "Spider Sami".
Problem3 (The Undercover Move)
Trigger:
- Spider Sami 3
- Events
- Unit - A unit Begins casting an ability
- Conditions
- (Ability being cast) Equal to Undercover Move (Spider Sami)
- Actions
- Unit - Set (Casting unit) movement speed to 300.00
- Wait 3.00 seconds
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Casting unit) is alive) Equal to True
- Then - Actions
- Set SpiderSamiPoint = (Position of (Casting unit))
- Special Effect - Create a special effect at (Center of (Playable map area)) using Abilities\Spells\Undead\Impale\ImpaleMissTarget.mdl
- Special Effect - Destroy (Last created special effect)
- Unit - Replace (Casting unit) with a Spider Sami using The old unit's relative life and mana
- Else - Actions
- If - Conditions
- Custom script: call RemoveLocation(udg_SpiderSamiPoint)
- Events
I guess its the same problem, whit the trigger adding to the wrong unit.
I really cant solve these problems.
Hope you understand my problem.
Thanks
- Chris