PoLlama Forums  

Go Back   PoLlama Forums > WarCraft > Tutorials

Reply
 
LinkBack Thread Tools Rating: Thread Rating: 1 votes, 5.00 average.
Old 04-26-2007   #1
 
DarkBlade's Avatar
 
Join Date: Feb 2007
Location: Paradise City
Posts: 618
DarkBlade will become famous soon enough
Respawning + Hero Selection on Circle

                      Respawns and Hero Selection

Table of Contents
1. Intro
2. Full Respawn Trigger
3. Hero Respawn Trigger
4. Creep Respawn Trigger
5. Hero Selection
6. Ending Words

[size=10pt]1. Intro
I don't know if anyone on here has made a tutorial like this or anything, so i'm going to post it anyway for the new triggering people (this is a very simple trigger, which even I remember how to do now) so I hope this helps some people.

[size=10pt]2. Full Respawn Trigger
Ok, I start with the Full Respawn Trigger because both of the Hero and Creep ones are in it. So this helps me explain the whole thing before moving on to what you have to do on the other two.

First off we need the event. This one only needs one trigger. It would be in the Unit section (Unit - A unit dies). The condition, only needs one main trigger also, it's at the bottom, the title 'Or'. Once you open it, go to Player Comparison (about in the middle) and click the first condition, where you go to Owner of Unit, and put the Condition as Dying Unit, which should be easy to find (Event Response).

On the second condition, go to Preset and pick Neutral Hostile. This partly finishes the Respawn Trigger for the Creeps. After you finish that, go to the second condition, and on Boolean Comparison, click the first condition and find Unit - Unit Classification Check and put the first one as Dying Unit (also in Event Response like the Creeps Condition) and the second, as A Hero. Then just leave it Equal to True. This finishes part of the Hero Respawn Trigger.

Code:
Respawning
    Events
        Unit - A unit Dies
    Conditions
        ((Owner of (Dying unit)) Equal to Neutral Hostile) or (((Dying unit) is A Hero) Equal to True)
Now on to the Action. I don't really know if you could say it has one main trigger, because it has 3 others attached :/ But, to the trigger. This one should be easy to find. it's If, Then, Else, at the top of the list. Pick the one with 'Mutliple Functions' at the end. After you click it and press ok, you have some of it setup, except for the triggers inside of the 'Attachments'. So, for the 'If' part, it's exactly the same as the second condition IN the first condition.

Code:
Respawning
    Events
        Unit - A unit Dies
    Conditions
        ((Owner of (Dying unit)) Equal to Neutral Hostile) or (((Dying unit) is A Hero) Equal to True)
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Dying unit) is A Hero) Equal to True
If you need to remember how to do this, refer to the first condition. Now, for Then, do the same as If - Condition (just click New Action this time) and then find Wait, and put however long you want it to take for you're hero to respawn in the region that you will soon create. After Wait, make another New Action, and find Hero. To make it quicker, go to - All and find the Hero Selection. Then, for the first part find Event Response - Dying Unit, and click the second part. This is where you make you're region. For this, you should make the town you want to put where you're hero will spawn at.

To do this go to Region Pallete or press R. Then click Add Region, and make a box where you're hero will spawn at if he dies. After you make the region, go back to the second part and click the condition and find the variable (region you just made). When you choose it, you can choose whether or not to show the revival graphics. That part finished the Hero Respawn. For the Creep Respawn, find Wait and pick you're time like the Hero Respawn, and then make a New Action in Else and find Unit - Create Units Facing Angle. Leave the 1 and go to the next part. Get Unit-Type Of Unit and on the condition find Event Response - Dying Unit. Now get that done and go to the third part. Use function 'Owner Of Unit' and get the Dying Unit Event Response.

Go to the fourth part and find Unit - Postion Of Unit function and the Event Response. I don't remember if the last one is really important, but mine says 'Default building facing' which works for me, so I say leave it. Once you finish this, the whole trigger is done and it should look like this.

Code:
Respawning
    Events
        Unit - A unit Dies
    Conditions
        ((Owner of (Dying unit)) Equal to Neutral Hostile) or (((Dying unit) is A Hero) Equal to True)
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Dying unit) is A Hero) Equal to True
            Then - Actions
                Wait 15.00 seconds
                Hero - Instantly revive (Dying unit) at (Center of Town of Milaka ), Show revival graphics
            Else - Actions
                Wait 85.00 seconds
                Unit - Create 1 (Unit-type of (Dying unit)) for (Owner of (Dying unit)) at (Position of (Dying unit)) facing Default building facing degrees
3. [size=10pt]Hero Respawn Trigger
This part isn't really important, it's just to show you what part you need to use for the hero respawning.

Code:
Respawning
    Events
        Unit - A unit Dies
    Conditions
        ((Owner of (Dying unit)) Equal to Neutral Hostile) or (((Dying unit) is A Hero) Equal to True)
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Dying unit) is A Hero) Equal to True
            Then - Actions
                Wait 15.00 seconds
                Hero - Instantly revive (Dying unit) at (Center of Town of Milaka ), Show revival graphics
            Else - Actions
                Wait 85.00 seconds
                Unit - Create 1 (Unit-type of (Dying unit)) for (Owner of (Dying unit)) at (Position of (Dying unit)) facing Default building facing degrees
4. [size=10pt]Creep Respawn Trigger
Just like Hero Respawn Trigger, this isn't really important just a quick pic on what is used in it.

Code:
Respawning
    Events
        Unit - A unit Dies
    Conditions
        ((Owner of (Dying unit)) Equal to Neutral Hostile) or (((Dying unit) is A Hero) Equal to True)
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Dying unit) is A Hero) Equal to True
            Then - Actions
                Wait 15.00 seconds
                Hero - Instantly revive (Dying unit) at (Center of Town of Milaka ), Show revival graphics
            Else - Actions
                Wait 85.00 seconds
                Unit - Create 1 (Unit-type of (Dying unit)) for (Owner of (Dying unit)) at (Position of (Dying unit)) facing Default building facing degrees
I don't think either of these will help anyone but I put it there just in case.

5. [size=10pt]Hero Selection
This is just a short trigger on how to choose a hero and make them spawn in the area you want them to when a unit enters the Circle of Power.

First, with the Paladin as an example, make a new Event. Find Unit - A unit enters Paladin (Paladin = the Region). Then as the Condition find Unit-Type Comparison (or use the tab above to find it faster) and for the first part find Unit-Type Of Unit, click the condition and find Event Response - Entering Unit. Finish that and go to the second part. This is where you pick what will choose the hero when it steps (floats) onto the Circle or whatever you chose.

After that, make a new action and find Unit section. Once again, I left the 1 because i'm only using 1 hero... Click the next condition and choose the unit that will spawn in you're region. Then for the next one, find Owner Of Unit, Event Response - Entering Unit, and finish that. Next pick you're region they appear in when the unit enters the Circle and for the last condition, I never understood why you needed this, but make a unit near the region, find Unit - Position Of Unit, and for the condition click Select Unit, and select that unit. You're almost done with the Selection.

The last part is very easy. Find Unit - Explode and for the condition find Event Response - Entering Unit and you're done. This covers the Hero Selection of the tutorial. The Trigger should now look like this:

Code:
Paladin Selection
    Events
        Unit - A unit enters Paladin 
    Conditions
        (Unit-type of (Entering unit)) Equal to Selector
    Actions
        Unit - Create 1 Holy Avenger for (Owner of (Entering unit)) at (Center of Town of Milaka ) facing (Position of Militia 0031 )
        Unit - Explode (Entering unit)
__________________________________________________ _______________________________________
6. [size=10pt]Ending Words
This is my first tutorial so I hope it helps some triggering beginners... I also attached my practice RPG (reason it's 64x64) to the bottom incase you wanted to look at the triggers or try the map out. Kind of hard... made it for 6 players so each one could pick a hero and it could be a group game. If something confused you on here or anything, just post and i'll try to help you out.








Attached Files
File Type: w3x triggers_rpg_tutorial~3-n0va.w3x (107.2 KB, 30 views)

DarkBlade is offline   Reply With Quote
Old 06-13-2007   #2
 
MrApples's Avatar
 
Join Date: Sep 2006
Location: Your Mom
Posts: 2,241
MrApples has a spectacular aura about
Re: [Tutorial] Respawning + Hero Selection on Circle

**Admin Bump - More Comments and Votes**
MrApples is offline   Reply With Quote
Old 06-13-2007   #3
 
King Stubby's Avatar
 
Join Date: Mar 2007
Location: Underground
Posts: 5,862
King Stubby is just really niceKing Stubby is just really niceKing Stubby is just really nice
Re: [Tutorial] Respawning + Hero Selection on Circle

i think it is very helpful, especially because i'm gonna be working on a dwarves vs. goblins aos soon!


And now, directly from chip's signature...
King Stubby is offline   Reply With Quote
Old 07-08-2007   #4
 
MrApples's Avatar
 
Join Date: Sep 2006
Location: Your Mom
Posts: 2,241
MrApples has a spectacular aura about
Re: [Tutorial] Respawning + Hero Selection on Circle

Not Enough Votes.
MrApples is offline   Reply With Quote
Old 09-07-2007   #5
 
luigi_fan64's Avatar
 
Join Date: Mar 2007
Location: Mushroom Kingdom
Posts: 1,392
luigi_fan64 is a name known to allluigi_fan64 is a name known to allluigi_fan64 is a name known to allluigi_fan64 is a name known to allluigi_fan64 is a name known to allluigi_fan64 is a name known to all
Re: [Tutorial] Respawning + Hero Selection on Circle

cool tutorial i dont see i poll so ill rate it 4 stars

-------------------------
A wise man once said, When you know whats good for people more then they do, you have the right to impose your will on those people. As a mod of pollama, i have that right.

[Only registered and activated users can see links. ]

luigi_fan64 is offline   Reply With Quote
Reply

Tags
None

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may post replies
You may post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are Off
Pingbacks are Off
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Triggering
Triggering
Need Help with all random hero selection!
Dead_Spirt World Editor Help 0 03-21-2008 03:17 PM
Triggering
Triggering
Need Help with all random hero selection!
Dead_Spirt World Editor Help 0 03-21-2008 03:10 PM
Hero Ideas! luigi_fan64 Broken Alliances 8 01-28-2008 06:51 PM
Unit editor basic guide Halakbalakbalak Submit a Tutorial [World Editor] 1 10-19-2007 02:18 PM
Final Hero Killzor2 New Feature Requests 15 12-04-2006 05:16 PM


All times are GMT -5. The time now is 06:04 PM.

A friend of Wc3Happy
Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165