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

[Trigger] Problem with a spell-trigger, never executes

Status
Not open for further replies.
Here's a trigger I'm making for a spell called Spider Sense (on request):
  • SpiderSenseGUI
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Spider Sense
    • Actions
      • Set SECaster = (Triggering unit)
      • Set SECasterLoc = (Position of SECaster)
      • Set SECasterOwner = (Owner of SECaster)
      • Set SEEnemyPlayers = (All enemies of SECasterOwner)
      • Player Group - Pick every player in SEEnemyPlayers and do (Actions)
        • Loop - Actions
          • Unit Group - Pick every unit in (Units owned by (Picked player)) and do (Actions)
            • Loop - Actions
              • Unit Group - Add (Picked unit) to SEGroupEnemies
          • Unit Group - Pick every unit in (Units owned by (Picked player) matching (((Matching unit) is A Hero) Equal to True)) and do (Actions)
            • Loop - Actions
              • Unit Group - Add (Picked unit) to SEGroupHeroes
      • Unit Group - Pick every unit in SEGroupEnemies and do (Actions)
        • Loop - Actions
          • Unit - Grant shared vision of (Picked unit) to SECasterOwner
      • Unit Group - Pick every unit in SEGroupHeroes and do (Actions)
        • Loop - Actions
          • Unit - Create 1 Dummy Unit for SECasterOwner at SECasterLoc facing Default building facing degrees
          • Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
          • Unit - Add Spider Sense (Dummy Ability) to (Last created unit)
          • Unit - Order (Last created unit) to Human Sorceress - Slow (Picked unit)
      • Wait 8.00 seconds
      • Unit Group - Pick every unit in SEGroupEnemies and do (Actions)
        • Loop - Actions
          • Unit - Deny shared vision of (Picked unit) to SECasterOwner
      • Unit Group - Remove all units from SEGroupEnemies
      • Unit Group - Remove all units from SEGroupHeroes
      • Custom script: call RemoveLocation(udg_SECasterLoc)
And here's the variables:
Variable NameVariable TypeInitial Value
SECasterUnit- None -
SECasterLocPoint- None -
SECasterOwnerPlayer- None -
SEEnemyPlayersPlayer GroupEmpty Player Group (Default)
SEGroupEnemiesUnit GroupEmpty Unit Group (Default)
SEGroupHeroesUnit GroupEmpty Unit Group (Default)

I don't see why this shouldn't work :S Something to do with unit-groups within player-groups, maybe?
 

Attachments

  • Spell for Urgan 14-15.w3x
    41.4 KB · Views: 23
Last edited:
Level 7
Joined
Oct 14, 2008
Messages
340
Hmm, What part of it isn't executing? Is the vision working properly? because it may be just a problem with your dummy ability?
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
Nope, that's not the problem... Triggering unit includes Casting unit.
I already thought so...

Maybe you can add some game-commands to see what exactly is wrong?
(like a text-message which shows the name of the owner of the casting unit, the names of the enemy players, ...), then check what isn't correct
 
Level 7
Joined
Oct 14, 2008
Messages
340
Strange.. Maybe it has something to do with (All enemies of SECasterOwner) I've never used this and i'm not sure if it'd be buggy or what..

Byyy the way for future reference, for your spider sense spell, you could just set the targets field to None, that way you don't have to make a custom buff :p

Sorry I can't really figure out what's wrong here..
 
Status
Not open for further replies.
Top