Basic Hero Reivive

Go down

Basic Hero Reivive

Post by SpyMaster on Wed Apr 09, 2008 9:01 pm

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...
rapidshare.com Tutorial.w3x.html


SpyMaster, Azeroth


Last edited by SpyMaster on Thu Apr 10, 2008 2:40 pm; edited 3 times in total
avatar
SpyMaster
Peon
Peon

Number of posts : 31
Clan : Clan Mapz
Registration date : 2008-04-09

View user profile

Back to top Go down

Re: Basic Hero Reivive

Post by TriggerHappy187 on Wed Apr 09, 2008 9:02 pm

Simple but alot of Trigger handicaped ppl on clan so gj they probly will find it usefull
avatar
TriggerHappy187
Admin
Admin

Number of posts : 85
Age : 24
Clan : Mapz
Registration date : 2008-04-09

View user profile http://clanmapz.aforumfree.com

Back to top Go down

Re: Basic Hero Reivive

Post by Hawk on Thu Apr 10, 2008 10:06 pm

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?...
avatar
Hawk
Peon
Peon

Number of posts : 11
Clan : Clan MapZ
Registration date : 2008-04-09

View user profile

Back to top Go down

Re: Basic Hero Reivive

Post by TriggerHappy187 on Thu Apr 10, 2008 10:27 pm

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
avatar
TriggerHappy187
Admin
Admin

Number of posts : 85
Age : 24
Clan : Mapz
Registration date : 2008-04-09

View user profile http://clanmapz.aforumfree.com

Back to top Go down

Re: Basic Hero Reivive

Post by Hawk on Thu Apr 10, 2008 10:43 pm

Thanks Trig.
avatar
Hawk
Peon
Peon

Number of posts : 11
Clan : Clan MapZ
Registration date : 2008-04-09

View user profile

Back to top Go down

Re: Basic Hero Reivive

Post by Scythe on Fri Apr 11, 2008 9:40 am

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
avatar
Scythe
Shaman
Shaman

Number of posts : 16
Registration date : 2008-04-09

View user profile

Back to top Go down

Re: Basic Hero Reivive

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum