HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Dumb trigger question #290,545

02-02-2004, 07:17 PM#1
Faradome
How can I detect the level of a learned skill and use it in a trigger?

In particular, I want to get the level of a passive hero skill and use it to multiply damage done by an environmental hazard (the lava I mentioned yesterday =) ), not just to this one hero, but to everyone.

The idea is to have a skill that makes the lava hazards on the map more dangerous for all other players, while the demon hero with the skill has about twice the HP of everyone else and can more or less ignore it.

(Edit: existing lava trigger is:

Events: Every 0.5 Seconds
Conditions: --
Actions [12 different ones]: Pick Every Unit in Region [Lava 01, ..., Lava 0C] And Set Life of Picked Unit to Life Of Picked Unit - 25.00

)
02-02-2004, 07:23 PM#2
Hunter0000
Integer-level of learned skill

I belive that that is the correct thing.

Just record that and use it do dertermine the damage done by the lava
02-02-2004, 07:28 PM#3
Xinlitik
That trigger is going to lag like nothing else. I suggest you put invisible units in the lava with perm immolation and your desired radius..

Then, create multiple immolations to match the damage x whatever level your demon hero has. When he learns level 1, remove the original lava and replace it with one that does original dmg x your level 1 multiplier. Then level 2 remove level 1 etc.
02-02-2004, 07:37 PM#4
Faradome
"Integer-level of learned skill" -- of what unit?

There isn't such a thing as Specific Hero or Hero Of Certain Type; all there is is Attacking Hero, Revivable Hero and that stuff.

Almost there, but not entirely. :)

-- As for lag, this is a 64x64 hero arena map that is 75% lava and has about 100 doodads. The trigger may lag, but nothing else will. :gsmile:
02-02-2004, 07:51 PM#5
Hunter0000
sigh.....

E
Unit learns skill
C
Unit type of triggering unit = to demon
A
Set lava dmg(integer) to integer-level of learned skill of triggering unit x(however much damage you want per level)
02-02-2004, 07:53 PM#6
Shark
my suggestion is to give him a life draining aura...
but if u want to stick with lava, u have to define each hero as player1-12, on the start of the game....e.g.

A:player picks desired hero
A:set TriggeringPlayer#Variable to (desired/picked hero)

its easy, i see u know u'r way around triggers, so u won't have any prob doing this one...
02-02-2004, 07:55 PM#7
Faradome
Thank you :D I feel dumb... there are so many trigger options that I constantly lose my way around them. Thanks.8))