HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Some Qs

04-25-2008, 02:31 AM#1
Raydude
I have a trigger that adds 10 more stat points to the hero after it reincarnates (that spell), but the trigger isn't reading it right, any suggestions?

Also, i tried using immolation and makes him invulernable and have a divine shield buff on him, but the trigger that makes him invulnerable isn't picking up the immolation either like the first question, dont know what event corresponds to these spells.
04-25-2008, 02:34 AM#2
TheSecretArts
show us trigger
04-25-2008, 04:04 PM#3
Raydude
Sorry
The immolation + invulerable, I figured out most of it, except for checking
DivineMight:
Collapse Events
Unit - Arthas (wielding Frostmourne) 0001 <gen> Begins casting an ability
Collapse Conditions
(Ability being cast) Equal to Divine Might
Collapse Actions
Unit - Make (Triggering unit) Invulnerable
Trigger - Turn on Divine Might Check <gen>
Trigger - Turn off (This trigger)

DivineMightCheck:
Collapse Events
Time - Every 1.00 seconds of game time
Conditions
Collapse Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Mana of Arthas (wielding Frostmourne) 0001 <gen>) Less than or equal to 5.00
Collapse Then - Actions
Unit - Make Arthas (wielding Frostmourne) 0001 <gen> Vulnerable
Trigger - Turn on Divine Might <gen>
Trigger - Turn off (This trigger)
Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
((Triggering unit) has buff Immolation (Caster)) Equal to False
Collapse Then - Actions
Unit - Make (Triggering unit) Vulnerable
Trigger - Turn on Divine Might <gen>
Trigger - Turn off (This trigger)
Else - Actions

I attempted to check if the user deactivated immolation use by checking for the buff...but it didn't go so well, even canceled out the 1st If-Then-Else which worked fine by itself. I'm kinda sure there's a easier way but I'm kinda bad at triggers.

2nd Wind:
Collapse Events
Unit - Dwarve 0037 <gen> Finishes casting an ability
Collapse Conditions
(Ability being cast) Equal to 2nd Wind
Collapse Actions
Hero - Modify Strength of Dwarve 0037 <gen>: Add 5
Hero - Modify Agility of Dwarve 0037 <gen>: Add 5
Hero - Modify Intelligence of Dwarve 0037 <gen>: Subtract 5
I had this for the revive one, didn't work at all.
04-27-2008, 10:08 PM#4
Pyrogasm
Well, for the immolation thing, the reason the unit isn't turning invulnerable is simply because those actions don't work. Instead, you should just add/remove the "Invulnerable (Neutral)" ability to/from the unit.

In fact, there's an easy way to make that spell be MUI and work off of buffs, simply like this:
Trigger:
Collapse Events
Unit - A unit starts the effect of an ability
Collapse Conditions
(Ability being cast) equal to Divine Might
Collapse Actions
Unit - Add (Invulnerable (Neutral)) to (Triggering Unit)
Unit Group - Add (Triggering Unit) to Divine_Might_Group
Trigger:
Collapse Events
Time - Every 0.20 seconds of game-time
Collapse Conditions
(Number of units in (Divine_Might_Group)) greater than 0
Collapse Actions
Collapse Unit Group - Pick every unit in (Divine_Might_Group) and do (Actions)
Collapse Loop - Actions
Collapse If (All conditions are true) then do (Then actions) else do (Else actions)
Collapse If - Conditions
((Picked Unit) has buff <Your Immolation Buff>) equal to false
Collapse Then - Actions
Unit - Remove (Invulnerable (Neutral)) from (Picked Unit)
Unit Group - Remove (Picked Unit) from (Divine_Might_Group)
Else - Actions

As for why your revival trigger doesn't work, it's because Reincarnation doesn't trigger a spell cast/effect event. So... I don't really know a workaround. I think maybe Vexorian found a way to detect reincarnation events, but I don't know it off the top of my head.

I'd try some searching.
04-28-2008, 06:24 AM#5
Gorman
I think Vex's way was to detect if the unit was dying (0.405 health or less) then detect if they had the buff.