HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Complicated trigger

02-06-2005, 03:24 AM#1
luckyownz92
Ok so heres what I got

Code:
 Transform

Events 
      Unit - A unit owned by Player 1 (Red)  begins casting an ability
Conditions 
         (Ability Being Cast) Equal to Transform
         (Unit-Type of (Casting Unit)) Equal to Paladin
         (Hero Level of (Casting Unit)) Greater than or equal to 0
Actions
       Unit - Replace (Casting Unit) with a Demon Hunter using The old units relative life and mana
       Hero - Set (Triggering Unit) Hero-level to (Hero-level of Casting Unit)), Hide level-up graphics
       Trigger - Turn on Transform Timer

Code:
Transform Timer

Events
      Countdown Timer - Start Transform_Timer as a One-shot timer that will expire in 120 seconds
      Countdown Timer - Create a timer window for Transform_Timer with title Time Left:
      Set Transform_TimerWindow = (Last created time window)
      Countdown Timer - Show (Last created timer window) for (Picked Player)
      Trigger - Turn on Transform Timer Out

Code:
Transform Timer Out
This the part i need help with
as you can see on the last code I need help on it. After the timer runs out I need the timer to vanish and the replaced unit to be replaced with the unit that first was replaced. Can anyone help with this ? This is something I need badly
02-06-2005, 08:15 AM#2
PatruX
There's two things you got a problem with (excluding the third trigger):

Code:
Hero - Set (Triggering Unit) Hero-level to (Hero-level of Casting Unit)), Hide level-up graphics
If the hero has 6 and a half level and then use this ability, he'll transform in to a Demon Hunter, and he'll lose his half earned level and start at the beginning of level 6 again.

Code:
Countdown Timer - Show (Last created timer window) for [b](Picked Player)[/b]
No player has been picked..
02-06-2005, 08:28 AM#3
Whitehorn
Why are you triggering this? You can just use the metamorphosis ability.

Also, this condition is pointless.
Quote:
(Hero Level of (Casting Unit)) Greater than or equal to 0

Also, as PatruX noted, using hero level loses any experience gained up to the next level. Just give it the experience, rather than the level.

I'll go further if you elaborate on the need to trigger this.
02-06-2005, 03:51 PM#4
luckyownz92
Quote:
Originally Posted by PatruX
Countdown Timer - Show (Last created timer window) for (Picked Player)
[/code]
No player has been picked..
Well Picked Player works anyway for me
*WhiteHorn ehhh I dont know why I dont wanna use the Metamorphisis
02-07-2005, 06:17 PM#5
ThyFlame
Either move the hero to a sectioned off part of the screen after giving it to a neutral player, or hold it in a variable.

After the timer expires, destroy the timer, the demon hunter, and move back the hero.

The metamorphasis ability would indeed be a better option.
02-07-2005, 08:57 PM#6
Guest
Don't search for complications... the error is so easy
You write "turn on countdown timer" while you should write "run countdown timer". Thats so dumb and easy lol but dont worry it happens to everyone ^_^