HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Simple Trigger Not Working?

10-02-2010, 12:39 PM#1
muse1988
Hey guys,

Having some trouble with a Turn Based map.

When a player is attacking with a unit, the other player has the opportunity to "Block" that unit with one of his units. (Think of Magic the Gathering)

I have a trigger later on that deals damage to both the Blocker, and the Attacker (BlockTarget).

Now for some reason it is not working, I have tried different things and it seems this trigger below is not properly storing the units. (Both the attacker/blocker are stored with the same ID as a pair)

Any ideas? I really don't know why it isn't working, could a possible memory leak or bug cause other triggers to bug?

Trigger:
Unit - A Unit Begins Casting An Ability
(Ability being cast) Equal to Block
Set BLOCKER(ID) = (Casting Unit)
Set BLOCKERTARGET(ID) = (Target Unit of Ability Being Cast)
Wait 0.01 Seconds
Set ID = (ID + 1)
10-02-2010, 06:46 PM#2
TKF
If the block ability is an passive ability the triggers won't help at all. Triggers only detect an ability which is being used actively.
10-03-2010, 01:08 AM#3
muse1988
Block is based on lightning shield.

The only thing I can think of is my map is bugged or there is a leak somewhere causing this trigger to forget what units have been stored