• 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.

Problem with Dummy casting Blizzard

Status
Not open for further replies.
Level 5
Joined
Oct 20, 2019
Messages
60
Hello, so i have this unit with a Channel based ability and when he is attacked he is ordered to use it, and when its triggered it creates 5 dummys, each with a blizzard based ability and is ordered to cast this blizzard at a random location
the blizzard is set to have 8 waves with 1 second between each wave and the dummy's duration is set to 10 seconds before it's removed

and all this is working just fine when the owner of that unit is a human player BUT when the owner of that unit is a computer, the blizzard ability that the dummy has been given only gets to cast for 3 waves instead of 8 wich seems soooo wierd to me

the dummy is invulnerable and has the locust ability so it should not be able to be interrupted in any way right?
anyone knows anything about this issue or what the cause could be?

Grateful for any help!
 
Level 5
Joined
Oct 20, 2019
Messages
60
This is how my Dummy Unit looks
 

Attachments

  • picture1.png
    picture1.png
    138.7 KB · Views: 20
  • picture2.png
    picture2.png
    147.9 KB · Views: 27
  • picture3.png
    picture3.png
    135.1 KB · Views: 19

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,866
Set your Dummy's movement type to None, Death Type to Can't raise does not decay, Can Flee = False, Is Building = False.

The main stats that matter for a Dummy:
Cast Point/Cast Backswing = 0.
Attacks Enabled = None.
Death Type = Can't raise, does not decay.
Movement Type = None.
Speed Base = 0.

That and of course give it the Locust ability and hide the model.

It's much easier if you copy the Locust unit and create a Dummy from that.
 
Level 5
Joined
Oct 20, 2019
Messages
60
Really appreciate the quick replys!

I made the changes to my own already existing dummy unit and i created a new one based of the locust unit and made the necessary changes on him aswell
Unfortunately it did not solve the problem, however, the blizzard is behaving abit differently now and some of those 5 dummy units are actually doing all 8 waves but some still dont, really wierd

Edit: and it still all works just fine when the casting unit is controlled by me
 
Level 5
Joined
Oct 20, 2019
Messages
60
Here is the Channel based ability, Blizzard based ability, Order attacked unit trigger and order dummy trigger

Also, i only found one trigger that is a little bit of a suspect but i really don't think its the cause of it but who knows
 

Attachments

  • Channel Ability.png
    Channel Ability.png
    172.2 KB · Views: 28
  • Blizzard Ability.png
    Blizzard Ability.png
    173.8 KB · Views: 30
  • Order Unit.png
    Order Unit.png
    136.6 KB · Views: 25
  • Order Dummy.png
    Order Dummy.png
    180.1 KB · Views: 28
  • Attack_Trigger.png
    Attack_Trigger.png
    129.6 KB · Views: 24

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,866
I'm pretty sure units with the Locust ability will ignore Pick Every Unit functions by default, could be wrong though.

That being said, I'm not too sure why this is happening but I feel like I've seen this happen before. Have you searched for other similar threads?

Also, might I recommend a For Loop for that Dummy Blizzard spell, could clean it up quite nicely. Just need an Array of Points instead.

Edit:
Try creating a trigger that catches when a Dummy issues any order and display the issued order in a text message.
Maybe you can figure out what it's being told to do instead of channeling blizzard. Not sure if Computers trigger these Events though...
 
Last edited:
Level 5
Joined
Oct 20, 2019
Messages
60
I have searched a little bit on threads with people having issues with dummys casting spells but no one had a problem with a dummy not working when its only controlled by a AI and then work perfectly fine when the controller is a human

I'll try and do some more troubleshooting, hopefully i can find something

Thank you for your time though =)

Edit: I did some troubleshooting and i found that the dummy unit is getting interupted by an issue no target order, the order is often interupting the dummy when the blizzard have reached its third wave but sometimes it can interupt much later and in some rare cases even not at all, so wierd...

However, i have no clue at all what order is being given or what triggers or settings that may cause this, is there any way to improve this troubleshooting and get a more specific answer?
 
Last edited:

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,286
However, i have no clue at all what order is being given or what triggers or settings that may cause this, is there any way to improve this troubleshooting and get a more specific answer?
Print the order string for the triggering order. If that returns an empty string then print the order ID integer since that will represent an actual order. Even if you do not know what order it is, searching the internet for that order integer might reveal what it is.
 
Level 5
Joined
Oct 20, 2019
Messages
60
Ok, so since i'm a noob at these things i got help from a friend with some more accurately troubleshooting and with that i found the issued no target orders ID, wich is 851974

I didnt find it here JASS/script.j at master · nestharus/JASS

So i googled some more and it turns out its some unknown order from when units are created for AI controlled slots, in some way it interupts channeling based abilitys on the dummys but i found an answer in this thread from early 2018 that actually had the exact same problem that i had


This is from another user in that thread saying this:

I bet that it is the 851974 immediate order. However, nobody has really reported what it does. Only AI is capable of executing it, and generally, for stopping a unit from channeling an ability. If you try to make a unit execute it, it won't do anything, and the function IssueImmediateOrderById returns false.

With that being said the answer to stop this is to add this after the dummy unit is created

AI - Ignore (Last created unit)'s guard position
 
Status
Not open for further replies.
Top