| 08-16-2004, 12:34 PM | #1 |
Hi, does anyone know if its possible? this is how im gonna do it: i have a skill called "Rage", it makes the units attack faster +++ but it also makes the player lose controll of the hero, so i made a trigger like following: ::::EVENTS:::: Unit - A unit Begins casting an ability ::::CONDITIONS:::: (Ability being cast) Equal to Rage ::::ACTIONS:::: If ((Owner of (Triggering unit)) Equal to Player 1 (Red)) then do (Unit - Change ownership of PlayerHero[1] to Player 2 (blue) and Retain color) else do (Do nothing) Wait 20 seconds (thats the duration of rage) If ((Owner of (Triggering unit)) Equal to Player 1 (Red)) then do (Unit - Change ownership of PlayerHero[1] to Player 1 (Red) and Retain color) else do (Do nothing) ok.. thats the working part.. the heros are revived in a tavern. If the "enraged" player1 hero dies while he is owned by player2(blue) how can i make him come up in the tavern for player1(red) after the 20 seconds have passed? |
| 08-16-2004, 02:28 PM | #2 |
why not have another trigger that detects if the hero dies? so that if the casting unit dies, revive intstantly, change ownership back... then kill. |
| 08-16-2004, 05:07 PM | #3 | |
Quote:
nice, didnt think of that :D thx :D |
| 08-17-2004, 11:29 AM | #4 |
that ok... you might need a variable to store the targeted hero... that will make it easier for reviving them. |
| 08-17-2004, 02:51 PM | #5 | |
The problem is: Quote:
|
