![]() | |
| | #1 |
![]() Join Date: Feb 2007 Location: Paradise City
Posts: 618
![]() | 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) 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 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 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 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 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 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 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. |
| | |
| | #2 |
![]() Join Date: Sep 2006 Location: Your Mom
Posts: 2,241
![]() | Re: [Tutorial] Respawning + Hero Selection on Circle **Admin Bump - More Comments and Votes** |
| | |
| | #3 |
![]() Join Date: Mar 2007 Location: Underground
Posts: 5,862
![]() ![]() ![]() | 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... ![]() |
| | |
| | #4 |
![]() Join Date: Sep 2006 Location: Your Mom
Posts: 2,241
![]() | Re: [Tutorial] Respawning + Hero Selection on Circle Not Enough Votes. |
| | |
| | #5 |
![]() Join Date: Mar 2007 Location: Mushroom Kingdom
Posts: 1,392
![]() ![]() ![]() ![]() ![]() ![]() | Re: [Tutorial] Respawning + Hero Selection on Circle cool tutorial i dont see i poll so ill rate it 4 stars |
| | |
![]() |
| Tags |
| None |
| Thread Tools | |
| Rate This Thread | |
| |
Similar Threads | ||||||
| Thread | Thread Starter | Forum | Replies | Last Post | ||
| Dead_Spirt | World Editor Help | 0 | 03-21-2008 03:17 PM | ||
| 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 | ||