• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] Non-chanelling stampade issue

Status
Not open for further replies.
Level 13
Joined
Jan 2, 2016
Messages
978
I'm trying to make a stampede ability, which is being maintained by a dummy.
Here is my trigger:
JASS:
function HawkAttack takes nothing returns boolean
    local unit u
    local unit d
    if GetSpellAbilityId() == 'A07Q' then
        set u = GetTriggerUnit()
        set d = CreateUnit(GetOwningPlayer(u), 'h00C', GetUnitX(u), GetUnitY(u), 0)
// 'h00C' = dummy unit
        call UnitApplyTimedLife(d, 'BTLF', 6.5)
        call UnitAddAbility(d, 'A058')
// 'A058' = the stampede ability (it's working fine, when cast directly by the hero)
        call SetUnitAbilityLevel(d, 'A058', GetUnitAbilityLevel(u, 'A07Q'))
        call IssuePointOrder(d, "stampede", GetSpellTargetX(), GetSpellTargetY())
        call SaveUnitHandle(udg_Unit_Table, GetHandleId(u), 'hadc', d)
// Using this for side stuff, don't mind it
        set u = null
        set d = null
    endif
    return false
endfunction

So, when I had the skill on my hero - it was working fine, then I decided to make a dummy sustain it, and it stopped working. I removed the mana cost of the ability, gave it 99999 range, but still nothing.
I tried to make the dummy cast the original stampede ('ANst'), but still nothing...
Anyone can help me? xP
 
Level 20
Joined
Aug 13, 2013
Messages
1,696
I do have this problem before on cluster rockets channeling ability. Sadly I couldnt remember it a long ago.

Make sure that the dummy unit is not interrupted by any triggers. Make sure to debug the dummy first by changing the model to any visible unit model and removing the locust ability, also remove the expiration time then check the command card of that unit if the ability executes properly. Try also to create a hero instead of the dummy unit to cast the ability, if it works then the problem is your dummy unit. You must reset it's related cast time to default, movement type to foot, turning rate to 3.
I think there is really an issue from some abilities that are ordered by the dummy ( Ive read it from somewhere in the helper net site )

Edit: Also try to add a poll wait time before ordering the dummy unit to cast the ability.
 
Level 13
Joined
Jan 2, 2016
Messages
978
My dummy's turn rate is usually 0. I changed it to 3, but still the same result. Its propulsion window is set to 180, so turn rate shouldn't really matter.. at least it haven't mattered for other spells...

I tried to change the dummy unit to a footman, still didn't work.
Then I changed the dummy unit to Rexxar, and again didn't work.
I tried to issue the order after a 0.00 timer (which is usually enough to make things work), but again it didn't work.

The only thing I can think of is that "Issue POINT Order" isn't the right function, and I should probobly use Target order?? or perhaps Point order at loc?
If these don't work, then I have no idea what may be causing the problem x_x
I'll end up writing a code to simulate stampede :D (which can be a good thing, as the default one isn't working 100% as I want it to).
I'll wait a little longer, perhaps someone knows how to fix this issue xP
 
Level 13
Joined
Jan 2, 2016
Messages
978
As far as I know, setting the turn rate to 0 breaks dummy casters.
I haven't had any problems with my dummy casters so far, and I've kept it 0 for a long time..
When the propulsion window is set to 180 - the dummy doesn't need to turn anywhere; it can cast spells behind its back :p

Anyways... this stampede didn't work even when I set the turn rate to 3
 
As a rule use appriopriate orderId to instant/unit target/point target spells for custom channel abilities. "divineshield" for instant channel spells, "ward" for example: for point target, and so on. This will give you confidence that such a problem won't happend again (with diffrent spell). I bet that what brokes previous dummy order (stampede) is another channle-based ability in your map where you have used order id "stampede" for spell which is not point-target.
thanks for rep;]
 
Status
Not open for further replies.
Top