HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Alot of Trigger Problems

08-27-2005, 01:22 AM#1
xXx-Tricky-xXx
Ive been working on a hero lately with alot of problems one that i havent been able to fix is where he battle charges the chosen enemy unit and it stuns him for a # seconds. Best way i could find to do this was....

Quote:
Battle Charge
Events
Unit - A unit Starts the effect of an ability
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Battle Charge
(Level of Battle Charge for (Triggering unit)) Equal to 1
Then - Actions
Unit - Order (Triggering unit) to Attack (Target unit of ability being cast)
Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) + 10.00)
Else - Actions
Do nothing

(((((((((((Second part)))))))))))

Quote:
Battle Charge Dummy
Events
Unit - A unit Starts the effect of an ability
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Battle Charge
(Level of Battle Charge for (Triggering unit)) Equal to 1
Then - Actions
Unit - Create 1 Footman for (Owner of (Casting unit)) at (Position of (Casting unit)) facing (Position of (Target unit of ability being cast))
Unit - Set Level of Battle Charge (Dummy) for (Last created unit) to 1
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Target unit of ability being cast)
Else - Actions
Do nothing

My spell as u can see my hero has a stormbolt spell that does absouletely nothing and the dummy spell has the stun effect. Thing is hero will charge fine collect the 5 mana but no stun.

think anyone could solve this or an easier way to do it.

Sorry for the quotes but i dont see a code tag atm
08-27-2005, 02:11 AM#2
xXx-Tricky-xXx
ok well i made the dummy unit visible again and it doesnt seem to want to cast a spell it just attacks but it has the spell available to use.
08-28-2005, 09:19 PM#3
duckduck
is the mana of the spell 0? cauase unless you gave the footie mana he won't be able to cast the spell