[Spell] Custom Spell Help - Dummy Stun

Status
Not open for further replies.
I'm trying to make a simple custom spell for an rpg I'm making.

I used a storm bolt as basis for this spell but used an arrow model

Here's what I wanted to do:

The arrow is shot, dealing x amount of damage to the target, stunning it for x seconds, AND nearby enemy units.

Only the main target is damaged, while both main and nearby are stunned.

I used a dummy unit with a dummy storm bolt, no CD, 99999 range, no mana cost.

I've been testing it and tweaking the trigger below, but can't seem to make the stunning nearby units work. I used "none.mdl" for the dummy unit, if that is relevant.
 

Attachments

  • staggering.PNG
    staggering.PNG
    129.2 KB · Views: 35

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,866
1) Make sure your Dummy unit has these settings: Speed Base = 0, Movement Type = None, Art - Cast Point/Backswing = 0.00, Attacks Enabled: None, Death Type; Can't raise, does not decay, Mana (initial/maximum): 99999, Abilities: Locust

2) In your trigger, replace all instances of Player 1 (Red) with Triggering Player.

3) Reduce the expiration timer to something short like 0.50 seconds, it's unnecessarily long.

4) You're leaking a Point when you use (Position of (Target unit of ability being cast)). Ideally, you'd Set a Point variable at this position, reference it in your action, and then remove it similar to how you removed (destroyed) your Unit Group.

5) Double check to make sure that the ability can be cast in the first place. Try giving it to your Hero to see if they can use it.

6) Your Stg_AoE Unit Group should also have some more Matching conditions to make sure that the targets are: Alive, not Structures, and not Invulnerable.
Otherwise, you'll add unwanted units to the Unit Group.
 
Status
Not open for further replies.
Top