1
1stlancer
Guest
Okay, these 'dummy' units are killing me. I've got it all set up. I made a custom unit to be the dummy for this move. When I use the ability, it sets off a trigger that goes like this:
Event: Unit casts ability
Condition: Ability is equal to Osmosis
Action: Create first dummy, teach it starfire, and tell it to cast starfire. Create second dummy, teach it earthquake, and tell it to cast earthquake.
All good so far. My hero's channeling, my two dummies are channeling, and with the modifications I've made it makes for one well-blended AoE drain spell + daze. Here's where the problem comes in. I need to get rid of them.
Event: Unit stops casting ability, Unit finishes casting ability (need both in case the player interrupts the hero's channeling)
Condition: Ability is equal to Osmosis
Action: Remove all units in group (units of type(dummy)) from the game.
Seems like it should work, but when I interrupt the spell, the game crashes. That's right, it CRASHES. It said that it was referencing a memory cell of all 0's (0x00000000... or whatever) so it makes me think I might be telling it to look for something that's not there, like a null pointer or something. If anyone has ideas or has run into a similar problem, please do tell.
Event: Unit casts ability
Condition: Ability is equal to Osmosis
Action: Create first dummy, teach it starfire, and tell it to cast starfire. Create second dummy, teach it earthquake, and tell it to cast earthquake.
All good so far. My hero's channeling, my two dummies are channeling, and with the modifications I've made it makes for one well-blended AoE drain spell + daze. Here's where the problem comes in. I need to get rid of them.
Event: Unit stops casting ability, Unit finishes casting ability (need both in case the player interrupts the hero's channeling)
Condition: Ability is equal to Osmosis
Action: Remove all units in group (units of type(dummy)) from the game.
Seems like it should work, but when I interrupt the spell, the game crashes. That's right, it CRASHES. It said that it was referencing a memory cell of all 0's (0x00000000... or whatever) so it makes me think I might be telling it to look for something that's not there, like a null pointer or something. If anyone has ideas or has run into a similar problem, please do tell.


