Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
You can make a trigger that activates every 1.00 second for example and moves a hidden dummy unit to the position of the caster and cast some custom AoE spell with the phoenix fire projectile to a random unit withing N range.
That doesn't exactly help. But thanks anyway.
I would actually like to see some code. And plus I don't think Phoenix Fire is 'casted' if it was this would be a lot easier.
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of YOUR_PHOENIX_FIRE_ABILITY for (Picked unit)) Greater than 0
Then - Actions
Set loc = (Position of (Picked unit))
Set owned = (Units within YOUR_MAX_RANGE of loc)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(owned is empty) Equal to False
Then - Actions
Unit - Unpause dummy_caster
Unit - Move dummy_caster instantly to loc
Unit - Order dummy_caster to Attack Once (Random unit from owned)
Unit - Pause dummy_caster
Else - Actions
Custom script: call DestroyGroup(udg_owned)
Custom script: call RemoveLocation(udg_loc)
Else - Actions
And somewhere in the initialization trigger create the invisible dummy unit and store it inside dummy_caster and pause it. I hope you get my point. Anyways, this code sucks, since it's GUI and it's uber unoptimized and slow. You should really learn JASS.
That or create a custom spell that will create a dummy which will attack a random unit from a unit group near your hero, the attacking unit will have the same Missile as Phoenix Fire, and do the same for all units near your hero. That way you will get Position of Attacked Unit and it will look similiar to phoenix fire. Or you could do a trigger which will detect if a unit has a buff of type Phoenix Fire and do actions, here:
Events
Time - Every 0.50 seconds of game time
Conditions
Actions
Set HeroPoint = (Unit (Position of Your Hero))
Set HeroGroup = (Units in (Region centered at (HeroPoint)) with size (600.00, 600.00)))
Unit Group - Pick every unit in (HeroGroup) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) has buff Phoenix Fire ) Equal to True
Then - Actions
Unit - Remove Phoenix Fire buff from (Picked unit)
That or create a custom spell that will create a dummy which will attack a random unit from a unit group near your hero, the attacking unit will have the same Missile as Phoenix Fire, and do the same for all units near your hero. That way you will get Position of Attacked Unit and it will look similiar to phoenix fire. Or you could do a trigger which will detect if a unit has a buff of type Phoenix Fire and do actions, here:
Events
Time - Every 0.50 seconds of game time
Conditions
Actions
Set HeroPoint = (Unit (Position of Your Hero))
Unit Group - Pick every unit in (Units in (Region centered at (HeroPoint)) with size (600.00, 600.00))) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) has buff Phoenix Fire ) Equal to True
Then - Actions
Unit - Remove Phoenix Fire buff from (Picked unit)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.