| 10-08-2002, 10:23 PM | #1 |
Guest | Remember in Diablo 2. You could Hire a unit from town who'd follow you around killing ppl near you. Can somebody make a trigger for War3 that does that. Or a script. I really need it for my rpg map. Thanks. |
| 10-17-2002, 06:28 AM | #2 |
Guest | I'm curious why no one answered this.. Just order him to attack to the unit.., it won't make him attack the unit, it will make him follow the unit, attacking things around him.. If you want him to attack the unit thats a whole different story isn't it? Order him to attack move to Medivh 0001 (Example) :guns: |
| 10-17-2002, 06:52 AM | #3 |
Guest | I tried. It doesn't work Cause i'm putting the hireling as an allied team. It should, but it doesnt. Anywayz, Thx. |
| 10-17-2002, 11:53 PM | #4 |
you'll have to basically create a Fake AI for it. Which will involve you creating 1 region1 that is fallowing the hero to which the hirling is enslaved too. ou will then make it that if the unit is not in the pretty big region then he will attack move to te center of this region. His aquistion range should be just about as big as the region so that if your attacked he will rush to your help. Also you may want to make another larger region around it that if he leaves that region irregardless of what his doing you just warp him to the hero. (This is used best for Town Portals so you don't actually have to code that he should fallow into your TP portal or if the hero dies and gets revived at some further location). |
| 10-19-2002, 12:29 AM | #5 |
Guest | Uh...could you show me an example? |
| 10-20-2002, 09:12 PM | #6 |
Its not that hard I explained what you had to do. |
| 10-21-2002, 06:18 AM | #7 |
Guest | Really, come on... Here's a 2 second start for you. You have to experiment until you get what you want. Just mess with stuff then you will learn better. |
| 10-22-2002, 07:10 AM | #8 |
Basically you do what Weaaddar said, creating region and every .01 seconds centering it on your Hero, but rather than ONLY have it run when the Merc leaves the region, have it also run every 2 seconds. Also, make it target a random spot in region instead of just the center. I did this before in my old cancelled RPG, and it worked great. Nearly identical to D2. -The Great and Immortal Lord Imperialist Insaniteus- --------------------------"I'll put this to good use" |
| 11-20-2002, 12:00 AM | #9 |
I think this would be quite easy... you save your main hero into a variable and do this if player 1 controls at least 1 soldier give all soldiers ctrl'd by p1 to p2 order all soldiers ctrl'd by p2 to atk-mov to <hero> |
| 11-20-2002, 01:45 AM | #10 |
EEps I didn't even notice but this thread simply must be moved. |
| 11-20-2002, 02:07 AM | #11 | |
Guest | Quote:
It's not that hard of triggering. You should just practice instead of having everyone do for ya! Sorry I just had to get that off my chest. :D |
| 11-20-2002, 05:15 AM | #12 |
Guest | Hey how do you make the custom avatar under ur name ???? |
| 11-20-2002, 09:15 AM | #13 |
how much can u get off your chest i press over 300lb |
| 11-20-2002, 08:34 PM | #14 |
ummm. Go into user CP (upper right corner of ur screen) click on edit options, under custom avatar, select yes, then either upload ur avatar or put in the url. Ez... sort of. |
| 11-21-2002, 07:19 PM | #15 |
Just use Event: Periodic Event - Every 5 seconds of game time (or whatever) Action: Order 'hireling' to attack-move on location (position of unit[maybe offset by, so he stays a little behind you]) |
