Basic Hero Reivive
4 posters
Clan MapZ :: World Editor :: Tutorials
Page 1 of 1
Basic Hero Reivive
BASIC HERO REVIVE
This Tutorial is to show you (RPG or Other Games) Makers how to make hero revive using triggers.
There is lots of ways to let your hero revive. This is a really simple and easy way to do it.
First You will need to put players that are in game down.Events.
(I am Going to use Red,Blue,Teal)
You Always should Use "A unit owned by Player # (Color)" Dies instead of "A unit dies" because sometimes your enemies Hero will die and it will revive in the region you revive.
Then comes the Condition. You Should use condition because if you want to send a message to players it will send it if hero dies instead of any unit owned by player or summon.
Now at last comes the Revive of the hero.The Action.
I put a Game Message to let the players know a hero has died... You also can write something like "you will have to wait 15 sec. till your hero revives".
You always should put a wait time for Hero Revival (Ex. Wait 15 sec.).
Now you have Created Your Revive That should all together look like this
Don't forget you may use more then 3 players.
This Should have taken You 3 Min.
To Show you how to do it i made a map...
http://rapidshare.com/files/106275728/Tutorial.w3x.html
SpyMaster, Azeroth
Last edited by SpyMaster on Thu Apr 10, 2008 2:40 pm; edited 3 times in total
SpyMaster- Peon
- Number of posts : 31
Clan : Clan Mapz
Registration date : 2008-04-09
Re: Basic Hero Reivive
Simple but alot of Trigger handicaped ppl on clan so gj they probly will find it usefull
Re: Basic Hero Reivive
Say you have an AoS, and you want them to Respawn diffrent times with diffrent designated Level say he is level one= 8 sec respawn level 20 = 42 sec respawn...This would be done?...
Hawk- Peon
- Number of posts : 11
Clan : Clan MapZ
Registration date : 2008-04-09
Re: Basic Hero Reivive
- Code:
Untitled Trigger 001
Events
Unit - A unit Dies
Conditions
((Dying unit) is A Hero) Equal to True
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Hero level of (Dying unit)) Equal to 1
Then - Actions
Wait 8.00 seconds
Hero - Instantly revive (Dying unit) at (Center of (Playable map area)), Hide revival graphics
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Hero level of (Dying unit)) Equal to 20
Then - Actions
Wait 8.00 seconds
Hero - Instantly revive (Dying unit) at (Center of (Playable map area)), Hide revival graphics
Else - Actions
Re: Basic Hero Reivive
Thanks Trig.
Hawk- Peon
- Number of posts : 11
Clan : Clan MapZ
Registration date : 2008-04-09
Re: Basic Hero Reivive
This trigger takes care of all levels. However, I haven't tested it and I'm not sure if it works for multiple heroes. Although modified to make the variable an array, it could. The formula currently in there is 1 second for each number from Level to 3*(Level+2), which makes level 1 take 8 seconds and level 20 take 47 seconds.
- Code:
Hero Revival
Events
Unit - A unit Dies
Conditions
((Dying unit) is A Hero) Equal to True
Actions
Set Hlvl = (Hero level of (Dying unit))
For each (Integer Hlvl) from Hlvl to ((3 + 0) x (Hlvl + 2)), do (Actions)
Loop - Actions
Wait 1.00 game-time seconds
Set Hlvl = (Hlvl + 1)
Hero - Instantly revive (Dying unit) at (Center of (Playable map area)), Hide revival graphics
Scythe- Shaman
- Number of posts : 16
Registration date : 2008-04-09
Clan MapZ :: World Editor :: Tutorials
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum