HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help with Possesing heros and unit defining!

02-14-2004, 08:12 PM#1
DCDW
Ok so I have a hero with the Possession ability and he can only posses other hero units... anyhow I have triggers set to upgrade the possessed hero. But I can't get my upgrade triggers to fire... Here's what I use. OK I set a Unit Variable (P.Hero)

Possession: (Works)

E: A unit changes owner
C: Owner of Ownership-changed unit equal to player 5(yellow)
A: Set P.Hero = Ownership-changed unit
A: Create Timer window with title "Possession Cool-down"
A: Start Timer
A: Add 10000 experience to P.Hero

Level 1 upgrade: (Doesn't Work)

E: Player 5(Yellow) types in chat message "Level 1" as an exact match
C: Hero level of P.Hero equal to 15
C: Owner of P.Hero equal to Player 5 (Yellow)
A: Create 1 Possession1 (Item) and give to hero P.Hero
A: Remove Possession [channeling] *Ability* from P.Hero
A: Pause Timer

Level 2 upgrade: (Doesn't Work)

E: Player 5 (Yellow) types in chat message "Level 2" as a exact match
C: Hero level of P.Hero equal to 17
C: P.Hero has item Possession1 equal to true
A: remove item carried by P.Hero of type Possession1
A: Create Possession2 and give to P.Hero
A: Pause Timer

Normal: (Probably works since there's no Condition requirements)

E: Player 5(Yellow) Types "revert" as an exact match
A: Create Timer window (Possession cool-down)
A: Start Timer

Timer Expires: (Not sure if this works either)

E: Timer expires
C: Owner of P.hero equal Player 5(Yellow)
A: Add Possession [Channeling] to P.Hero

OK I can get the "Possession" Trigger to work but the Level up triggers won't work at all. I think the problem is that there are other heroes that change owner through use of triggers which in turn changes the trigger targets for my Level up triggers... I thought using a P.hero variable and assigning it to the possessed unit in the "Possession" trigger would've fixed this but no luck.

So what do I need to add/change to get my triggers to target the right hero. If it's of any help, only 1 hero has the Possession ability (yellow player) and he only has 1 hero at any given time (cause the possessing hero dies). Of course the player is free to chose whatever hero he wants to possess so it's kinda hard to use specific hero possession triggers without adding a bunch of triggers that do the same thing just different hero.

Help is greatly appreciated
02-14-2004, 10:04 PM#2
DCDW
Just gonna bump this before it gets too far down the list. In the meantime I think i'll work on my TD map which really shouldn't be called a TD but just me playing around with the Editor seeing what I can do ;P.
02-15-2004, 03:07 AM#3
DCDW
ARRRRGH!!! I'm a IDIOT!

Units is --->Equal<--- to level 15

Should've been

Unit is --->Greater than or Equal to<--- to level 15...

I Spent the whole friggin day trying to figure out why the hell nothing was happening. Welp live and learn.