HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

poison expires after 5 attacks

08-15-2006, 12:16 AM#1
refl3ction
heres something ive been working on but cant get to work... and well the basis of the ability is:

when activated the spell adds a poisonous attack to the unit, the poison expires (removed form the caster) after the unit attacks 5 times

the triggers:
this triggers adds the 'slow poison' ability to the caster
Trigger:
Add Poison
Collapse Events
Unit - A unit Begins casting an ability
Collapse Conditions
(Ability being cast) Equal to Add Poison (Sunken Archer)
Collapse Actions
Set Add_Poison_Attacks = 0
Unit - Add Added Poison to (Casting unit)
Set Add_Poison_Caster = (Casting unit)

this trigger counts the number of times the unit has attacked
Trigger:
Add Poison Attack
Collapse Events
Unit - A unit Is attacked
Collapse Conditions
(Add_Poison_Caster has buff Added Poison ) Equal to True
Collapse Actions
Set Add_Poison_Attacks = (Add_Poison_Attacks + 1)
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Add_Poison_Attacks Equal to 5
Collapse Then - Actions
Trigger - Run Add Poison Remove <gen> (ignoring conditions)
Else - Actions

and this trigger removes the 'slow poison' when the 5 attacks has been reached
Trigger:
Add Poison Remove
Events
Conditions
Collapse Actions
Unit - Remove Added Poison from Add_Poison_Caster
Unit - Remove Added Poison buff from Add_Poison_Caster
Set Add_Poison_Attacks = 0

the spell is based of the spell 'howl of terror' and has been changed to give nothing and only target the caster
any help will be greatly appreciated,
thanks
08-15-2006, 12:19 AM#2
The)TideHunter(
What are you asking?
08-15-2006, 12:23 AM#3
refl3ction
well it doesnt work and im wondering whats wrong with it, and well if this trigger is way off/wont worrk in this way: how would i go about changing it to get it too work
08-15-2006, 12:26 AM#4
The)TideHunter(
It should actually work.
Make sure the Added Poison buff is on the unit.
The buffs will probally be the main problem, make sure they are.

I really dont have a clue other than that, i dont know what base ability the Added Poison is, i dont know much.
All i do know is those triggers will work fine.
08-15-2006, 12:30 AM#5
refl3ction
well
1) the buff is transferred onto the caster from the howl of teror ability
2) the buff is based of the slow poison (info) buff

the problem is that when casted the slow poison ability popups where i want it but then a few seconds later it dissappears along with the buff giving me no poisonous attack
08-15-2006, 10:20 AM#6
The)TideHunter(
That will be because of the Howl of Terror duration.
Change Duration - Unit to whatever
and Duration - Hero.
08-15-2006, 10:38 AM#7
King Klear
Wait.. in the 2nd trigger, there is even "Unit is attacked" - that will add to the expiration variable even if a unit on the other side of the map attacks another one, completely unrelated to the unit which has the poison...
08-15-2006, 06:18 PM#8
refl3ction
but it also has the condition if the Add_Poison_Caster has the buff or not

but recently i changed the howl of terror to a non autocast self target frost shield, but the same effect when casted it activates for 1 second then removes it imediatley....
im thinkin this is getting to hectic and about to remove it

EDIT: i see wut ure saying king, what should i add, (Attacking unit) equal to Add_Poison_Caster ?
08-15-2006, 06:50 PM#9
The)TideHunter(
Actually yes, hes right.
Changed the _Caster thingy to Attacked Unit.
Using howl of terror wont give the caster the buff, but the enemies, so the attacked unit will have the buff, not the caster.
08-15-2006, 06:52 PM#10
refl3ction
thats why i switched the spell to the non-autocast frost shield that targets self