G
Giho
Guest
Im making a map and I want a time variable (a timer that counts down) to show up in the multiboard instead of using a time window.Now i only have so it show how long time it gona take until the hero revive.
I have this now:
revive hero
Events
Unit - A unit Dies
Conditions
((Triggering unit) is A Hero) Equal to True
((Dying unit) has an item of type Ankh of Reincarnation) Equal to False
Actions
If ((Owner of (Killing unit)) Not equal to Neutral Hostile) then do (Game - Display to (All players) the text: ((player_colors[(Player number of (Owner of (Killing unit)))] + (Name of (Owner of (Killing unit)))) + ( Killed + ((player_colors[(Player number of (Owner of (Triggering unit)))] + (Name of (Owner of (Triggering uni else do (Game - Display to (All players) the text: ((player_colors[(Player number of (Owner of (Triggering unit)))] + (Name of (Owner of (Triggering unit)))) + |r Dies To Creeps))
Set hero_wait = ((Hero level of (Dying unit)) x 5)
Multiboard - Set the text for (Last created multiboard) item in column 2, row multiboard_spots[(Player number of (Owner of (Dying unit)))] to (String(hero_wait))
Wait (Real(hero_wait)) seconds
If ((Owner of (Dying unit)) Equal to Player 1 (Red)) then do (Hero - Instantly revive (Dying unit) at (Center of human hero revive <gen>), Show revival graphics) else do (Hero - Instantly revive (Dying unit) at (Center of undead hero revive <gen>), Show revival graphics)
Multiboard - Set the text for (Last created multiboard) item in column 2, row ((Player number of (Owner of (Dying unit))) + 1) to OnL
And i would like to make the hero_wait variable to count down for the owner of the dying unit in the multiboard. Or that a time variable or somthing shows in the multiboard and count down.
I would be very happy if someone could help me with this problem.
I have this now:
revive hero
Events
Unit - A unit Dies
Conditions
((Triggering unit) is A Hero) Equal to True
((Dying unit) has an item of type Ankh of Reincarnation) Equal to False
Actions
If ((Owner of (Killing unit)) Not equal to Neutral Hostile) then do (Game - Display to (All players) the text: ((player_colors[(Player number of (Owner of (Killing unit)))] + (Name of (Owner of (Killing unit)))) + ( Killed + ((player_colors[(Player number of (Owner of (Triggering unit)))] + (Name of (Owner of (Triggering uni else do (Game - Display to (All players) the text: ((player_colors[(Player number of (Owner of (Triggering unit)))] + (Name of (Owner of (Triggering unit)))) + |r Dies To Creeps))
Set hero_wait = ((Hero level of (Dying unit)) x 5)
Multiboard - Set the text for (Last created multiboard) item in column 2, row multiboard_spots[(Player number of (Owner of (Dying unit)))] to (String(hero_wait))
Wait (Real(hero_wait)) seconds
If ((Owner of (Dying unit)) Equal to Player 1 (Red)) then do (Hero - Instantly revive (Dying unit) at (Center of human hero revive <gen>), Show revival graphics) else do (Hero - Instantly revive (Dying unit) at (Center of undead hero revive <gen>), Show revival graphics)
Multiboard - Set the text for (Last created multiboard) item in column 2, row ((Player number of (Owner of (Dying unit))) + 1) to OnL
And i would like to make the hero_wait variable to count down for the owner of the dying unit in the multiboard. Or that a time variable or somthing shows in the multiboard and count down.
I would be very happy if someone could help me with this problem.


