| 10-01-2004, 04:11 AM | #1 |
I'm creating a map where you can select a hero by moving a wisp into a circle of power in front of the hero you want to choose, like hero line wars. I have fitted 27 heroes and their corosponding circle in a rectangel with 1 gap between each other. The problem is that the wisps sometimes move over a circle to get to the hero the play selected, selecting the wrong hero. My trigger is this events Unit - enters hero 1 <gen> conditions actions Unit - Create 1 Blood Mage for (Owner of (Triggering unit)) at ((Owner of (Triggering unit)) start loaction) facing Default building degrees hero 1 <gen> is the Region infront of the Blood Mage Now this works but I was wondering if anyone could tell me how that I could make so that the trigger won't work untill the triggering unti (wisp) has stopped moving or another soultion to my problem plz help me plz plz plz plz plz plz plz plz plz plz plz plz plz plz plz plz plz plz o_O |
| 10-01-2004, 04:35 AM | #2 |
A good solution for your problem: use a better selection sistem: http://www.wc3sear.ch/index.php?p=Sp...8bb11e022ae6ac |
| 10-01-2004, 04:55 AM | #3 |
thanks, and you have my rep. ![]() |
| 10-01-2004, 05:04 AM | #4 |
Now I'm going to need help editing it to suit my maps needs : ( -look out for my next post coming soon... (after I figure out more about the trigger) NOTE - why do want rep. I allready new about that spell, I just wanted an easy simple solution |
| 10-01-2004, 06:06 AM | #5 |
Instead of using regions you could use unit is in range of the circle of power. Also you might want to add a condition to what type of unit is selecting the hero. |
| 10-01-2004, 11:50 AM | #6 |
Guest | You could use path blockers... Salutions® |
| 10-01-2004, 04:27 PM | #7 | |
Quote:
Well as the other ones were saying (In their own way) is that using "Unit gets within range" and then checking which hero they're close to (And give them that hero) would be better because it saves you a lot of regions and work. THE SOLUTION to your problem would probably be to add a wait in the trigger. I'm thinking something like this; Code:
[b]Event[/b]: A unit enters X region [b]Condition[/b]: Boolean (Entering Unit) equal to Unit-Type Wisp [b]Actions[/b]: Wait 5 seconds If/Then/Else If - (Entering Unit) is in region X Then do - Unit - Create 1 Blood Mage for (Owner of (Triggering unit)) at ((Owner of (Triggering unit)) start loaction) facing Default building degrees Remove (Entering Unit) from the game Else do - Nothing Regards Dead-Inside Edit: I believe the "If unit is in region X" is a boolean comparsion. I'm not 100 on it though. |
| 10-01-2004, 04:33 PM | #8 | |
Quote:
thats the best one! :P but u might wanna change the 'wait' to 2 seconds, or the wisp would have to stay in the circle for a while |
| 10-01-2004, 04:36 PM | #9 |
2 would be too low, it could easily be "OH no, I took the wrong hero" I'd rather wait an extra three seconds. It's nothing noticable. Oh, btw, for once I'll beg for some rep because I really did solve the problem (After 5 other replies). |
| 10-01-2004, 07:22 PM | #10 | |
Quote:
Yes only you solved the problem. |
| 10-01-2004, 09:59 PM | #11 | |
Quote:
|
| 10-02-2004, 12:52 AM | #12 |
pathing blockers would work how... they just prevent you from getting to thr cop and Rafael Br with the hero selection system would work fine |
| 10-02-2004, 06:58 AM | #13 |
thx 4 all of your help |
| 10-02-2004, 09:17 AM | #14 | |
Quote:
Even so, my post has gotten *0* rep-points. I'm still steadily at a 11 point total. People are cheap. @grd If you need any more help, just feel free to ask. (I already solved your new thread). |
| 10-02-2004, 11:53 AM | #15 |
lol :D thanks |
