HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help with triggers for spell

02-22-2004, 11:54 PM#1
Eeporgorg
*Edit:Spell Fixed.... Never mind*



I created some triggers for a spell, but, even though the spell effect, caster, target, and dummy are made correctly, the trigger screws up. Any help?
It's dummy spell is banish, and it's suppose to mana burn, and howl of terror the unit that is targeted.

Trigger:
Mana Strike
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Strike of Mana
Actions
Set ManaCaster = (Casting unit)
Set Manatarget = (Target unit of ability being cast)
Unit - Create 1 Dragonhawk Rider for (Owner of ManaCaster) at (Target point of ability being cast) facing Default building facing degrees
Set ManaDummy = (Last created unit)
Hero - Learn skill for ManaDummy: Night Elf Demon Hunter - Mana Burn
Unit - Order ManaDummy to Night Elf Demon Hunter - Mana Burn Manatarget
Hero - Learn skill for ManaDummy: Neutral Pit Lord - Howl Of Terror
Unit - Order ManaDummy to Neutral Pit Lord - Howl Of Terror
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Strike of Mana for ManaCaster) Equal to 1
Then - Actions
Unit - Remove ManaDummy from the game
Set ManaDummy = No unit
Set ManaCaster = No unit
Set Manatarget = No unit
Skip remaining actions
Else - Actions
Unit - Order ManaDummy to Night Elf Demon Hunter - Mana Burn Manatarget
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Strike of Mana for ManaCaster) Equal to 2
Then - Actions
Unit - Remove ManaDummy from the game
Set ManaDummy = No unit
Set ManaCaster = No unit
Set Manatarget = No unit
Skip remaining actions
Else - Actions
Unit - Order ManaDummy to Night Elf Demon Hunter - Mana Burn Manatarget
Unit - Remove ManaDummy from the game
Set ManaDummy = No unit
Set ManaCaster = No unit
Set Manatarget = No unit
02-22-2004, 11:58 PM#2
Hunter0000
Quote:
Originally posted by EePoRgOrG
I created some triggers for a spell, but, even though the spell effect, caster, target, and dummy are made correctly, the trigger screws up. Any help?
It's dummy spell is banish, and it's suppose to mana burn, and howl of terror the unit that is targeted.

Trigger:
Mana Strike
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Strike of Mana
Actions
Set ManaCaster = (Casting unit)
Set Manatarget = (Target unit of ability being cast)
Unit - Create 1 Dragonhawk Rider for (Owner of ManaCaster) at (Target point of ability being cast) facing Default building facing degrees
Set ManaDummy = (Last created unit)
Hero - Learn skill for ManaDummy: Night Elf Demon Hunter - Mana Burn
Unit - Order ManaDummy to Night Elf Demon Hunter - Mana Burn Manatarget
Hero - Learn skill for ManaDummy: Neutral Pit Lord - Howl Of Terror
Unit - Order ManaDummy to Neutral Pit Lord - Howl Of Terror
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Strike of Mana for ManaCaster) Equal to 1
Then - Actions
Unit - Remove ManaDummy from the game
Set ManaDummy = No unit
Set ManaCaster = No unit
Set Manatarget = No unit
Skip remaining actions
Else - Actions
Unit - Order ManaDummy to Night Elf Demon Hunter - Mana Burn Manatarget
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Strike of Mana for ManaCaster) Equal to 2
Then - Actions
Unit - Remove ManaDummy from the game
Set ManaDummy = No unit
Set ManaCaster = No unit
Set Manatarget = No unit
Skip remaining actions
Else - Actions
Unit - Order ManaDummy to Night Elf Demon Hunter - Mana Burn Manatarget
Unit - Remove ManaDummy from the game
Set ManaDummy = No unit
Set ManaCaster = No unit
Set Manatarget = No unit


Units cant learn hero abilities!!!

Use Unit - Add ability(NOTE: You must make a unit ability to add!)
02-23-2004, 12:07 AM#3
Eeporgorg
I tried regular abilities. Still won't work:(
02-23-2004, 12:09 AM#4
Hunter0000
let me see ur new trigger, I'd bet anything you used the wrong action.
02-23-2004, 12:11 AM#5
linkmaster23
I agree...
02-23-2004, 12:34 AM#6
Eeporgorg
Well, I've got half of it too work. By simplifying it, and wiggling things around, I figured out it's only the second spell that works. here's the trigger now:

Mana Strike
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Strike of Mana
Actions
Set ManaCaster = (Casting unit)
Set Manatarget = (Target unit of ability being cast)
Unit - Create 1 Dragonhawk Rider for (Owner of ManaCaster) at (Position of Manatarget) facing Default building facing degrees
Set ManaDummy = (Last created unit)
Unit - Add Mana Burn to ManaDummy
Unit - Add Howl of Terror to ManaDummy
Unit - Order ManaDummy to Neutral Pit Lord - Howl Of Terror
Unit - Order ManaDummy to Night Elf Demon Hunter - Mana Burn Manatarget
Wait 0.01 game-time seconds
Unit - Remove ManaDummy from the game
02-23-2004, 12:44 AM#7
Hunter0000
put a wait in-between the two spells, that should fix it.
02-23-2004, 01:04 AM#8
Eeporgorg
God, this is annoying... now only Howl works. Thanks for trying to help this bugger, though :)
02-23-2004, 01:07 AM#9
Hunter0000
did u make the mana cost 0?
02-23-2004, 01:59 AM#10
Eeporgorg
Yes. Plus, the dummy's mana is 2000.