- Joined
- Feb 9, 2007
- Messages
- 56
Hi all,
I've got a problem with a spell. Actually the spell works perfect. But what doesn't work well is that the trigger gets also fired when the hero uses a certain other spell. Both spells were originally made of warstomp.
First I thought it's because I made them out of the same warstomp, so that they have the same id. But then I used a different warstomps. But it still didn't work. PS: I think I have to mention that the Fiery Explosion Ability is in a spellbook. Maybe that's the problem...
What I also don't understand is:
When I make two triggers like the one up there. But with different conditions:
then I get:
and
So A001 and A00B. They are different, but why then is the damn trigger running at both spells....
Your help would be very appreciated!
Thanks in advance,
BOESERTEDDY
I've got a problem with a spell. Actually the spell works perfect. But what doesn't work well is that the trigger gets also fired when the hero uses a certain other spell. Both spells were originally made of warstomp.
First I thought it's because I made them out of the same warstomp, so that they have the same id. But then I used a different warstomps. But it still didn't work. PS: I think I have to mention that the Fiery Explosion Ability is in a spellbook. Maybe that's the problem...
-
FieryExplosion Kopieren
-
Ereignisse
- Einheit - A unit Startet den Effekt einer Fähigkeit
-
Bedingungen
- (Ability being cast) Gleich Fiery Explosion
-
Aktionen
- Set tempPoint[0] = (Position of (Triggering unit))
- Spezialeffekt - Create a special effect at tempPoint[0] using Objects\Spawnmodels\Other\NeutralBuildingExplosion\NeutralBuildingExplosion.mdl
- Spezialeffekt - Destroy (Last created special effect)
- Set gruppe = (Units within 225.00 of tempPoint[0] matching (((Owner of (Matching unit)) is an ally of (Owner of (Triggering unit))) Gleich False))
- Einheitengruppe - Pick every unit in gruppe and do (Einheit - Cause (Triggering unit) to damage (Picked unit), dealing (40.00 x (1.00 + (Spelldamage[(Player number of (Owner of (Triggering unit)))] - ((Real((Custom value of (Picked unit)))) / 100.00)))) damage of attack type Zaubersprüche and damage type Feu
- Custom script: call DestroyGroup(udg_gruppe)
- Custom script: call RemoveLocation(udg_tempPoint[0])
- Animation - Change (Triggering unit) flying height to 400.00 at 1500.00
- Wait 0.01 seconds
- Einheit - Make (Triggering unit) Unverwundbar
- Wait 0.19 seconds
- Animation - Change (Triggering unit) flying height to 0.00 at 800.00
- Wait 1.05 seconds
- Einheit - Make (Triggering unit) Verwundbar
-
Ereignisse
-
Bedingungen
- (Name of (Ability being cast)) Gleich (Name of Fiery Explosion )
What I also don't understand is:
When I make two triggers like the one up there. But with different conditions:
-
Bedingungen
- (Ability being cast) Gleich Fiery Explosion
-
Bedingungen
- (Ability being cast) Gleich Concentrations
then I get:
JASS:
function Trig_FieryExplosion_Kopieren_Kopieren_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A001' ) ) then
return false
endif
return true
endfunction
and
JASS:
function Trig_FieryExplosion_Kopieren_Kopieren_Kopieren_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00B' ) ) then
return false
endif
return true
endfunction
So A001 and A00B. They are different, but why then is the damn trigger running at both spells....
Your help would be very appreciated!
Thanks in advance,
BOESERTEDDY