HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Need Help With Triggers!!!

07-05-2007, 05:16 PM#1
xlime
I've just started mapping for wc3, and I can't figure out how to do one thing.

I want to make a players Hero to loose 150hp (or a % of his hp might work better don't know really, stay with the -150hp) when a unit (non-hero) enters a region. I've successfully did this with the -150hp when i had a pre determined Hero, but in my map you are going to choose your hero yourself so i can't use that trigger. So is there a way of choosing reds hero like unit - (playerred(hero) damagas (playerred(hero) for 150 chaos dmg.... not that that one will work but so you might get a picture of what i'm looking for... Will be glad for any help with this thank you
07-05-2007, 05:32 PM#2
Histenchist
Here is something you can use...
Trigger:
Set Hero
Collapse Events
Your - Event here (should be when you choose the hero)
Conditions
Collapse Actions
Set PlayerHero[1] = (Your Hero)
Trigger:
Damage Hero
Collapse Events
Unit - A unit enters (Your Region)
Conditions
Collapse Actions
Unit - Cause (Any unit) to damage PlayerHero[(Player number of (Owner of (Entering unit)))], dealing 150.00 damage of attack type Chaos and damage type Normal
07-05-2007, 05:34 PM#3
xlime
Thanks :D will test it immidiatly

—

Thank you, that worked fine after i edited some lines, nothing big.


Thanks ALOT mate ! :D
07-05-2007, 07:54 PM#4
Histenchist
Dont double post, there is a edit button.
And when we talk about buttons there's always a rep button under my name