ayumilove
Youtube account suspended! youtube.com/ayumilove8
- Reaction score
- 110
below is a description of the morphing problem im working on.
1. archmage1 activates metamorphosis ability
2. the archmage1 pause for 0.50 seconds, then become archmage2
3. once the timer runs out, archmage2 pause 0.5sec before changing back.
the problem is i cant get the black ball animation playing for start and end.
when i click metamorphosis, it wont show the black ball conversion
after the time runs out, it wont show the black ball conversion
Apart from that, i dont want the hero to pause then change, i want
to have a smooth change, meaning that once i click, it instantly do
metamorphosis animation and become another unit. This applies the same
when changing back.
i would need some trigger help from the pros!
below is my the code but its not working as i want it to be :banghead:
1. archmage1 activates metamorphosis ability
2. the archmage1 pause for 0.50 seconds, then become archmage2
3. once the timer runs out, archmage2 pause 0.5sec before changing back.
the problem is i cant get the black ball animation playing for start and end.
when i click metamorphosis, it wont show the black ball conversion
after the time runs out, it wont show the black ball conversion
Apart from that, i dont want the hero to pause then change, i want
to have a smooth change, meaning that once i click, it instantly do
metamorphosis animation and become another unit. This applies the same
when changing back.
i would need some trigger help from the pros!
below is my the code but its not working as i want it to be :banghead:
Code:
heroMorph spell
Event
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to heromorph
Actions
Set heroMorph_caster = (Triggering unit)
Set heroMorph_caster_point = (Position of (Triggering unit) )
Unit - Create 1 Dummy for Owner of heroMorph_caster) at heroMorph_caster_point facing 0.00 degrees
Unit - hide heroMorph_caster
Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Nightelf Demon Hunter - Metamorphosis
Unit - Hide (Last created unit)
Wait 0.2 seconds
Unit - Unhide heroMorph_caster
Selection - Select heroMorph_caster for Player 1 (red)
Wait 9.00 seconds
Unit - Replace (Last created unit) with a Demon Hunter using the new unit's default life and mana
Unit - hide heroMorph_caster
Unit - unhide (Last created unit)
Unit - Order (Last created unit) to Nightelf Demon Hunter - Metamorphosis
Unit - Unhide heroMorph_caster
Set heroMorph_caster = no unit
Custom Script - call RemoveLocation (udg_heroMorph_caster_point)