Clan MapZ
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Basic Hero Reivive

4 posters

Go down

Basic Hero Reivive Empty Basic Hero Reivive

Post by SpyMaster 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)

Basic Hero Reivive Hero_r10

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.

Basic Hero Reivive Hero_r11

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.).

Basic Hero Reivive Hero_r12

Now you have Created Your Revive That should all together look like this

Basic Hero Reivive Hero_r13

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
SpyMaster
Peon
Peon

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

Back to top Go down

Basic Hero Reivive Empty Re: Basic Hero Reivive

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

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

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

https://clanmapz.aforumfree.com

Back to top Go down

Basic Hero Reivive Empty Re: Basic Hero Reivive

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

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

Back to top Go down

Basic Hero Reivive Empty Re: Basic Hero Reivive

Post by TriggerHappy187 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
TriggerHappy187
TriggerHappy187
Admin
Admin

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

https://clanmapz.aforumfree.com

Back to top Go down

Basic Hero Reivive Empty Re: Basic Hero Reivive

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

Thanks Trig.
Hawk
Hawk
Peon
Peon

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

Back to top Go down

Basic Hero Reivive Empty Re: Basic Hero Reivive

Post by Scythe 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
Scythe
Scythe
Shaman
Shaman

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

Back to top Go down

Basic Hero Reivive Empty 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