Rain of Chaos Failing on Dummy Caster

Xebarsis

New Member
Reaction score
7
I'm trying to make it so that if a player kills a lever (I made the lever a unit instead of a destructible), that rain of chaos will be casted on the position of the unit for the player who killed the lever. Some reason the dummy caster refuses to cast the spell.

Code:
Unit - Create 1 Dummy Caster for (Owner of (Killing unit)) at (Position of (Dying unit)) facing Default building facing degrees
    Unit - Add Rain of Mini-Infernal Chaos (Trap) to (Last created unit)
    Unit - Add a 15.00 second Generic expiration timer to (Last created unit)
    Unit - Order (Last created unit) to Special Archimonde - Rain Of Chaos (Position of (Dying unit))

I've made sure my dummy caster is invulnerable, has no attack, is a building, has 10,000 mana, and that the Rain of Mini-Infernal Chaos (Trap) costs 0 mana and has a max cast range. I've also tried to give the dummy caster to neutral extra to see if it would still cast the spell, but some reason it still doesn't work.
 

WarToast

Active Member
Reaction score
3
Did you try to make your dummy visible so that you're sure the dummy is alright?
 

Tyman2007

Ya Rly >.
Reaction score
74
is the spell really based off of rain of chaos? if it isn't then no.

Also you can try setting the position of dying unit to a variable and see where that goes.

Looks fine to me.

Maybe you should just give that unit the ability instead of adding it with a trigger.
 

Xebarsis

New Member
Reaction score
7
I don't get why this isn't working.. I made the dummy caster a model to see if it appears, and it does. I changed the spell to the original rain of chaos (archimonde), the unit still refuses to cast the spell. I also tried making it cast it on a variable position:

Code:
    Set ThePoint = (Position of (Dying unit))
    Unit - Create 1 Dummy Caster for (Owner of (Killing unit)) at ThePoint facing Default building facing degrees
    Unit - Add Rain of Chaos (Archimonde) to (Last created unit)
    Unit - Add a 15.00 second Generic expiration timer to (Last created unit)
    Unit - Order (Last created unit) to Special Archimonde - Rain Of Chaos ThePoint

Even when it's the exact spell that is being casted the dummy unit just stands there. I've used this same dummy caster to do other spells like blizzard and flamestrike even when it doesn't originally know the ability and this still isn't working.
 

LightChaosma

New Member
Reaction score
60
I don't get why this isn't working.. I made the dummy caster a model to see if it appears, and it does. I changed the spell to the original rain of chaos (archimonde), the unit still refuses to cast the spell. I also tried making it cast it on a variable position

when your dummy is visible, check if it gets the spell, and if it does, try acting it manually, if it does get the skill, and the skill works, the order somehow doesnt get through...
 

Xebarsis

New Member
Reaction score
7
Very interesting, if I remove locust from the dummy caster then when it spawns it doesn't have the rain of chaos spell even though my trigger adds it to the last created unit. I also tried to make rain of chaos as a regular spell for the dummy caster, but even then I can't get the dummy caster to use the spell with the code:

Code:
 Unit - Order (Last created unit) to Special Archimonde - Rain Of Chaos (Position of (Dying unit))

Hum... any ideas? I know the position it's casting isn't wrong because the dummy caster successfully appears at the position of the dying unit.
 

Tyman2007

Ya Rly >.
Reaction score
74
Units with locust can cast spells...

The only thing i can think of is that you aren't using the right base spell.

Try using the pitlord's rain of fire i guess..
 

Xebarsis

New Member
Reaction score
7
Units with locust can cast spells...

The only thing i can think of is that you aren't using the right base spell.

Try using the pitlord's rain of fire i guess..

What I'm trying to say is that the part of the trigger that says "Unit - Add Rain of Chaos (Archimonde) to (Last created unit)" isn't even giving the dummy caster the spell, which is preventing it from working. If that line of code doesn't work, then "Unit - Order (Last created unit) to Special Archimonde - Rain Of Chaos (Position of (Dying unit))" doesn't work either even if I give the dummy caster Rain of Chaos in the object editor.

I did try the rain of fire just in case, but it didn't work.
 

LightChaosma

New Member
Reaction score
60
Is the spell a hero ability? you can't add a hero ability to a normal unit.
if rain of fire doesnt work, wich is a unit skill, the problem isnt there... you made the dummy a structure you said? maybe the problem is located there ... try making it a unit, or use a footman just to save you some work, and if it works change the dummy later
 

Xebarsis

New Member
Reaction score
7
Is the spell a hero ability? you can't add a hero ability to a normal unit.

Yeah, it's a hero ability. I just changed it into a normal ability, now what happens is the dummy caster gets the spell but doesn't cast it. I can manually target the dummy caster and cast rain of chaos anywhere, but I can't get him to cast the spell this trigger:

Code:
Unit - Order (Last created unit) to Special Archimonde - Rain Of Chaos (Position of (Dying unit))
 

LightChaosma

New Member
Reaction score
60
1: are you using archimondes or balnazars rain of chaos.
2: maybe he cant cast it on himself... probably can though...
 

Xebarsis

New Member
Reaction score
7
if rain of fire doesnt work, wich is a unit skill, the problem isnt there... you made the dummy a structure you said? maybe the problem is located there ... try making it a unit, or use a footman just to save you some work, and if it works change the dummy later

Tried making the dummy caster a footman, but the same exact thing happens. I'm also using archimonde's rain of chaos, and I tried changing the spell to be casted from the position of the dying unit to the killing unit so that it's on a different spot, but it yields the same results.
 

watermelon

New Member
Reaction score
2
Did you try putting the ability on one of your own unit and trying to cast it by yourself instead of using triggers? If you're not able to cast it, then something might be wrong with the ability itself.
And if you already tried that, then I'm sorry. :\
 

Xebarsis

New Member
Reaction score
7
Did you try putting the ability on one of your own unit and trying to cast it by yourself instead of using triggers? If you're not able to cast it, then something might be wrong with the ability itself.
And if you already tried that, then I'm sorry. :\

I could actually select the dummy unit to cast the rain of chaos that it received, but I can't get the dummy unit to cast it via trigger.
 
M

mentauron

Guest
I have the exact same problem, I'm trying to order the casting of a unit version of Thunderbolt. It works well when I make the dummy hostile and cast the spell on my own unit. The problem arises when create him for the human player and order him to Thunderbolt neutral or computer hostile units... He just stands there doing nothing...

The most frustrating part is that it works when he's hostile and Thunderbolts me.
 

Xebarsis

New Member
Reaction score
7
I think you need to use a custom script to properly order a unit to cast Rain of Chaos - if you can find darkRae's contest submission in this thread, you should find out what it is (because I don't know what the function is called)

I found the custom script:

Code:
Custom script:   call IssuePointOrderLocBJ( GetLastCreatedUnit(), "rainofchaos", udg_RL )

However, if I place it into my game I receive an error message and the trigger becomes disabled. Does anyone know how to adjust this custom script to work, and also to apply the rain of chaos on the position of the dying unit?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top