HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Buggy Trigger

08-30-2006, 08:34 AM#1
Karawasa
I have this trigger that bugs out in a few different situations but other then that works fine. Here is the code:

Trigger:
Tower Query
Collapse Events
Unit - A unit Begins casting an ability
Collapse Conditions
(Ability being cast) Equal to Tower Query
Collapse Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: ======= AVAILABLE T...
-------- Tech --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Tech (|cff660077Dar...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Magic --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Magic (|cff660077Da...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Moon --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Moon (|cff660077Dar...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Death --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Death (|cff660077Da...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Poison --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Poison (|cff660077D...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Lava --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Lava (|cffdB9513Ear...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Money --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Money (|cffdB9513Ea...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Roots --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Roots (|cffdB9513Ea...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Clay --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Clay (|cffdB9513Ear...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Electricity --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Electricity (|cffff...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Sun --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Sun (|cffff0000Fire...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Steam --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Steam (|cffff0000Fi...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Life --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Life (|cffffffaaLig...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Ice --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Ice (|cffffffaaLigh...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Spring --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Well (|cff00ff00Nat...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Flamethrower --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Flamethrower (|cff6...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Laser --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Laser (|cff660077Da...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Crypt --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Crypt (|cff660077Da...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Sludge --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Sludge (|cff660077D...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Enchantment --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Enchantment (|cff66...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Summoning --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Summoning (|cff6600...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Acid --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Acid (|cff660077Dar...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Undead --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Undead (|cff660077D...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Tidal --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Tidal (|cff660077Da...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Drowning --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Drowning (|cff66007...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Metal --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Metal (|cffdB9513Ea...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Dinosaur --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Dinosaur (|cffdB951...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Infernal --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Infernal (|cffdB951...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Gemstone --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Gemstone (|cffdB951...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Glacier --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Glacier (|cffdB9513...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Flesh Golem --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Flesh Golem (|cffdB...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Nova --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Nova (|cffff0000Fir...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Storm --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Storm (|cffff0000Fi...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Rainbow --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Rainbow (|cffff0000...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Hail --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Hail (|cffffffaaLig...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing

Now, this trigger bugs out when:

1. This following trigger is fired (This is confirmed)

Trigger:
Nova Effect
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to Explode
Collapse Actions
Set Temp_Point = (Position of (Triggering unit))
Special Effect - Create a special effect at Temp_Point using Objects\Spawnmodels\NightElf\NEDeathSmall\NEDeathSmall.mdl
Special Effect - Destroy (Last created special effect)
Custom script: call RemoveLocation(udg_Temp_Point)

2. This trigger is fired (confirmed)

Trigger:
Element Query
Collapse Events
Unit - A unit Begins casting an ability
Collapse Conditions
(Ability being cast) Equal to Element Query
Collapse Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 10.00 seconds the text: ======= ELEMENT LEV...
Game - Display to (Player group((Owner of (Casting unit)))) for 10.00 seconds the text: (|cff660077Darkness : Level + ((String((Current research level of Darkness for (Owner of (Casting unit))))) + |r))
Game - Display to (Player group((Owner of (Casting unit)))) for 10.00 seconds the text: (|cffdB9513Earth : Level + ((String((Current research level of Earth for (Owner of (Casting unit))))) + |r))
Game - Display to (Player group((Owner of (Casting unit)))) for 10.00 seconds the text: (|cffff0000Fire : Level + ((String((Current research level of Fire for (Owner of (Casting unit))))) + |r))
Game - Display to (Player group((Owner of (Casting unit)))) for 10.00 seconds the text: (|cffffffaaLight : Level + ((String((Current research level of Light for (Owner of (Casting unit))))) + |r))
Game - Display to (Player group((Owner of (Casting unit)))) for 10.00 seconds the text: (|cdd00dd00Nature : Level + ((String((Current research level of Nature for (Owner of (Casting unit))))) + |r))
Game - Display to (Player group((Owner of (Casting unit)))) for 10.00 seconds the text: (|cff5555ffWater : Level + ((String((Current research level of Water for (Owner of (Casting unit))))) + |r))
Game - Display to (Player group((Owner of (Casting unit)))) for 10.00 seconds the text: (|cffffff00Current Interest Rate: + ((String(Interest_Rate[((Player number of (Triggering player)) - 1)], 1, 2)) + %|r))
Set temp_int = ((Owner of (Casting unit)) Current gold)
Set Temp_Group = (Units owned by (Owner of (Casting unit)) matching (((Matching unit) is A structure) Equal to True))
Collapse Unit Group - Pick every unit in Temp_Group and do (Actions)
Collapse Loop - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Collapse Or - Any (Conditions) are true
Collapse Conditions
(Level of Sell Tower (Basic) for (Picked unit)) Not equal to 0
Collapse And - All (Conditions) are true
Collapse Conditions
Random_Element[((Player number of (Owner of (Casting unit))) - 1)] Equal to True
(Level of Sell Tower (Elemental) for (Picked unit)) Not equal to 0
Collapse Then - Actions
Set temp_int = (temp_int + (Integer((Max life of (Picked unit)))))
Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Level of Sell Tower (Elemental) for (Picked unit)) Not equal to 0
Random_Element[((Player number of (Owner of (Casting unit))) - 1)] Equal to False
Collapse Then - Actions
Set temp_int = (temp_int + (Integer(((Max life of (Picked unit)) x 0.75))))
Else - Actions
Custom script: call DestroyGroup (udg_Temp_Group)
Game - Display to (Player group((Owner of (Casting unit)))) for 10.00 seconds the text: (|cffffff00Current Net Worth: + ((String(temp_int)) + gold.|r))

3. Lots of action going on, onscreen.

I have tried using variables and setting them to local to fix this problem. Instead, the trigger didn't work at all.

Help me please!
08-30-2006, 08:39 AM#2
zeroXD
You cant use "(Casting Unit)", because it will be lost after a wait (i think), but if you use triggering unit (might not work if you have many triggers with this running) it should work. Personaly, i reccomend a unit variable...
08-30-2006, 09:06 AM#3
Karawasa
Quote:
Originally Posted by zeroXD
You cant use "(Casting Unit)", because it will be lost after a wait (i think), but if you use triggering unit (might not work if you have many triggers with this running) it should work. Personaly, i reccomend a unit variable...

I tried a player variable that failed. You think a unit variable won't?

Can I get a confirmation of whether triggering unit will work? Its going to be ALOT of work to change every single thing...
08-30-2006, 09:10 AM#4
MeanMachine
What exactly is the bug ? It doesn't display some messages ? Or they aren't displayed properly? Or they overlay each other ?
08-30-2006, 09:35 AM#5
SentryIII
The unit reference from Casting Unit is no longer valid after a Wait action. You should store the player in a local variable. I heard somewhere that you can create a local variable and treat it as a global in GUI, but I've never done it before so you'll have to do some searching. I can assure you that using a local player variable to store the Owner of Casting Unit will work.
08-30-2006, 09:47 AM#6
Karawasa
Quote:
Originally Posted by SentryIII
The unit reference from Casting Unit is no longer valid after a Wait action. You should store the player in a local variable. I heard somewhere that you can create a local variable and treat it as a global in GUI, but I've never done it before so you'll have to do some searching. I can assure you that using a local player variable to store the Owner of Casting Unit will work.

I promise you it doesn't, because I did just that. I set owner of casting unit to a variable (Temp_Player) and used that local trick to make it MUI. What happened is nothing, exactly that. Nothing displayed except the very first text. Makes me wonder if there is something to do with the conditions....
08-30-2006, 10:07 AM#7
The)TideHunter(
Quote:
Originally Posted by Karawasa
I promise you it doesn't, because I did just that. I set owner of casting unit to a variable (Temp_Player) and used that local trick to make it MUI. What happened is nothing, exactly that. Nothing displayed except the very first text. Makes me wonder if there is something to do with the conditions....

It does, Casting Unit is lost after a wait, either store casting unit to a global unit or set owner of casting unit to a global.
08-30-2006, 10:15 AM#8
SentryIII
Mind posting the version of the trigger with local variable? You might have done something wrong. I know for sure that using a local player variable would work in this situation.
08-31-2006, 07:45 AM#9
Karawasa
I only did the first two since there is no point in doing them all. Confirmed that the ones I did the variable to, DO NOT work at all. Actually, the first one does "Availble towers". I strongly believe the conditions are fucking up somehow.

Trigger:
Tower Query
Collapse Events
Unit - A unit Begins casting an ability
Collapse Conditions
(Ability being cast) Equal to Tower Query
Collapse Actions
Custom script: local player udg_Temp_Player
Set Temp_Player = (Owner of (Triggering unit))
Game - Display to (Player group(Temp_Player)) for 2.00 seconds the text: ======= AVAILABLE T...
-------- Tech --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for Temp_Player) Greater than or equal to 1
(Current research level of Earth for Temp_Player) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group(Temp_Player)) for 2.00 seconds the text: Tech (|cff660077Dar...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Magic --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for Temp_Player) Greater than or equal to 1
(Current research level of Fire for Temp_Player) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group(Temp_Player)) for 2.00 seconds the text: Magic (|cff660077Da...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Moon --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Moon (|cff660077Dar...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Death --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Death (|cff660077Da...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Poison --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Poison (|cff660077D...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Lava --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Lava (|cffdB9513Ear...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Money --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Money (|cffdB9513Ea...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Roots --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Roots (|cffdB9513Ea...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Clay --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Clay (|cffdB9513Ear...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Electricity --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Electricity (|cffff...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Sun --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Sun (|cffff0000Fire...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Steam --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Steam (|cffff0000Fi...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Life --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Life (|cffffffaaLig...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Ice --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Ice (|cffffffaaLigh...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Spring --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Well (|cff00ff00Nat...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Flamethrower --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Flamethrower (|cff6...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Laser --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Laser (|cff660077Da...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Crypt --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Crypt (|cff660077Da...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Sludge --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Sludge (|cff660077D...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Enchantment --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Enchantment (|cff66...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Summoning --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Summoning (|cff6600...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Acid --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Acid (|cff660077Dar...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Undead --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Undead (|cff660077D...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Tidal --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Tidal (|cff660077Da...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Drowning --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Drowning (|cff66007...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Metal --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Metal (|cffdB9513Ea...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Dinosaur --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Dinosaur (|cffdB951...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Infernal --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Infernal (|cffdB951...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Gemstone --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Gemstone (|cffdB951...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Glacier --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Glacier (|cffdB9513...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Flesh Golem --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Flesh Golem (|cffdB...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Nova --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Nova (|cffff0000Fir...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Storm --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Storm (|cffff0000Fi...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Rainbow --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Rainbow (|cffff0000...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Hail --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Hail (|cffffffaaLig...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
09-01-2006, 01:57 AM#10
PandaMine
Isnt Casting Unit is the same as trigger unit, its just that casting unit function uses GetTriggerUnit(), where as GetTriggerUnit() is a native (so takes less memory)
09-01-2006, 09:36 PM#11
Karawasa
Can someone look over my code and tell me why it doesn't work at all? And then, what to do to fix it? The trigger is very long so I want to be sure the answer is correct before I change everything.
09-01-2006, 09:53 PM#12
SentryIII
Quote:
Originally Posted by PandaMine
Isnt Casting Unit is the same as trigger unit, its just that casting unit function uses GetTriggerUnit(), where as GetTriggerUnit() is a native (so takes less memory)

Casting Unit (aka GetSpellAbilityUnit()) is a native function. You need to replace:

Trigger:
Set Temp_Player = (Owner of (Triggering unit))

with

Trigger:
Set Temp_Player = (Owner of (Casting unit))

Make it a habit to use specific functions for specific events (e.g. Casting unit for casting events) instead of using the generic functions. It'll save you a lot of headaches in the long run.
09-01-2006, 10:19 PM#13
Karawasa
Trigger:
Tower Query
Collapse Events
Unit - A unit Begins casting an ability
Collapse Conditions
(Ability being cast) Equal to Tower Query
Collapse Actions
Custom script: local player udg_Temp_Player
Set Temp_Player = (Owner of (Casting unit))
Game - Display to (Player group(Temp_Player)) for 2.00 seconds the text: ======= AVAILABLE T...
-------- Tech --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for Temp_Player) Greater than or equal to 1
(Current research level of Earth for Temp_Player) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group(Temp_Player)) for 2.00 seconds the text: Tech (|cff660077Dar...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Magic --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for Temp_Player) Greater than or equal to 1
(Current research level of Fire for Temp_Player) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group(Temp_Player)) for 2.00 seconds the text: Magic (|cff660077Da...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Moon --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Moon (|cff660077Dar...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Death --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Death (|cff660077Da...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Poison --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Poison (|cff660077D...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Lava --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Lava (|cffdB9513Ear...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Money --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Money (|cffdB9513Ea...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Roots --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Roots (|cffdB9513Ea...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Clay --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Clay (|cffdB9513Ear...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Electricity --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Electricity (|cffff...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Sun --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Sun (|cffff0000Fire...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Steam --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Steam (|cffff0000Fi...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Life --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Life (|cffffffaaLig...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Ice --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Ice (|cffffffaaLigh...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Spring --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Well (|cff00ff00Nat...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Flamethrower --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Flamethrower (|cff6...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Laser --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Laser (|cff660077Da...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Crypt --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Crypt (|cff660077Da...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Sludge --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Sludge (|cff660077D...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Enchantment --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Enchantment (|cff66...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Summoning --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Summoning (|cff6600...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Acid --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Acid (|cff660077Dar...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Undead --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Undead (|cff660077D...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Tidal --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Tidal (|cff660077Da...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Drowning --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Darkness for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Drowning (|cff66007...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Metal --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Metal (|cffdB9513Ea...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Dinosaur --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Dinosaur (|cffdB951...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Infernal --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Infernal (|cffdB951...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Gemstone --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Gemstone (|cffdB951...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Glacier --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Glacier (|cffdB9513...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Flesh Golem --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Earth for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Flesh Golem (|cffdB...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Nova --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Nova (|cffff0000Fir...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Storm --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Storm (|cffff0000Fi...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Rainbow --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Fire for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Rainbow (|cffff0000...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing
-------- Hail --------
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Current research level of Light for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Nature for (Owner of (Casting unit))) Greater than or equal to 1
(Current research level of Water for (Owner of (Casting unit))) Greater than or equal to 1
Collapse Then - Actions
Game - Display to (Player group((Owner of (Casting unit)))) for 2.00 seconds the text: Hail (|cffffffaaLig...
Wait 0.33 seconds
Collapse Else - Actions
Do nothing

Still doesn't work.
09-01-2006, 10:34 PM#14
martix
1. How about "Unit starts the effect of an ability"?
2. Scrap the do-nothings
3. Scrap the waits OR use timers. (Why do you need them anyway?)
Well thats all the advice I can offer...
09-02-2006, 12:29 AM#15
blu_da_noob
Quote:
Originally Posted by SentryIII
Make it a habit to use specific functions for specific events (e.g. Casting unit for casting events) instead of using the generic functions. It'll save you a lot of headaches in the long run.

Triggering Unit does work for Spell Effect trigger responses, and it's faster than Casting Unit too.