| 01-06-2003, 05:33 PM | #1 |
Guest | I want 2 make a Hero Seletion system, like the following: - All players start as a wisp then choose their hero and if the enter the region of that hero i want them to teleport to a other location on the map and be that hero, after that the hero theyve chosen shouldnt be selectable anymore. Is there anybody who can help me with this or give me some examples? |
| 01-06-2003, 08:55 PM | #2 |
I'm too lazy atm to write this one out, but here's an idea. Do you happen to have either the princess prophecy or kaggz shadows of evil maps? I think they both do the exact thing that you want to do there...well princess prophecy is slightly different. Anyway, both these maps are awesome and you should have them anyway. Once you get them, just open them up and see how they did that trigger, and you should be set. fr0ggE |
| 01-06-2003, 09:02 PM | #3 |
Guest | Event: unit enters (region where you select hero) Actions: Set (variable) Unit - Create 1 (unit(selected hero)) at (region where hero appears) facing defualt building degrees Unit - remove (triggering-unit) That OUGHT to work btw, most of the blue things are not actual functions or anything, just...other things that aren't actual functions or anything |
| 01-07-2003, 01:21 AM | #4 |
RACCoonSOLID wrote this: "Event: unit enters (region where you select hero) Actions: Set (variable) Unit - Create 1 (unit(selected hero)) at (region where hero appears) facing defualt building degrees Unit - remove (triggering-unit)" you should add this: Trigger- Turn off (this trigger) this avoids other ppl from choosing that hero |
| 01-07-2003, 09:10 AM | #5 |
Yea u have to add that or else it wont work at all... U dont even need that variable. Also do a 'remove all units in (place where the selcted hero is). |
| 01-07-2003, 10:04 AM | #6 |
Guest | Okay i now have this: Event: Unit enters region Bla_1 <gen> Conditions: Unit type is equal to player //note starting model of player Actions: Unit - create 1 for (owner of bla_model 0019 <gen>) at (center of bla_2 <gen>) facing default position Trigger - Turn Off Camera move 2 location bla_2 Unit - remove triggering unit from game // org model goes away So what happens is i enter region bla_1 ( where i select bla_model) and then the camera goes to location bla_2 and my original model is gone but the trigger doesnt create the hero (bla_model) that i wanted :\ There must be something wrong with Unit-create action, but i can't find out what......any ideas? |
| 01-07-2003, 12:13 PM | #7 |
Guest | Just a question... Every hero-choice i saw, the hero you control is created at the strat point. I made one, but i move the unit in front of the choice area at the strating point and change the owner of the unit from neutral passive to the triggering player. Why this method could not be good ? Why creating a new unit ? (I speak only when a hero could be chosen only 1 time). |
| 01-07-2003, 12:32 PM | #8 |
LOL... Okay guys here's what you do: this is the MOST efficient method of creating a hero via entering of a region: Events: Unit enters (region) Conditions: Unit-Type Comparison - (entering unit) equal to Wisp Player Comparison (this condition is optional) - (owner of (entering unit)) equal to (player X) Actions: Unit - Explode (Entering unit) Unit - Create 1 (unit-type) for (owner of (entering unit) at (center of (region)) facing default building facing degrees Camera - Pan camera for (owner of (entering unit)) to (center of (region)) over X.XX seconds In the second action where the unit is created, under the part where i typed 'unit-type', you would enter the actual unit type of the hero your trying to create. Lets say in the game next to the region you enter to select the hero, you see a Paladin (usually in any hero arena there is a Circle of Power and the hero next to the circle of power telling the person that if you enter the circle of power next to the displayed hero then that is the hero that shall be created). Then in this action it would say: Unit - Create 1 Paladin for... etc I hope i've helped :) |
| 01-09-2003, 10:16 AM | #9 |
Guest | Yes thanks alot for all your help, i've got it working now. :) |
