| 09-02-2002, 05:35 AM | #1 |
Guest | Can anyone please tell me how to do this? In one of the human missions, there are footman and rifleman moving around together and shooting, making it look like they are training. There is also one were the peasants are bringing in gold piles and not taking it to a town hall, yet it dissapears from thier backs. How do i do this with triggers? Thanks. |
| 09-02-2002, 05:51 AM | #2 |
I can't tell you how Blizzard implemented training units, but here's what I'm doing in my map to simulate a "miss": Actually, it sorta depends on what you want to do. If you're having a lot of stationary units attack one or more stationary targets, easy as pie. Create a custom unit called "target." I use the wisp model, but anything should be ok. Give him loads of hitpoints, and divine armor. Using a trigger (you'll need to assign this unit a variable), alter this unit's colors to 100% transparency, and also, make it's size 1% on all dimensions. This makes him essecially invisible. Pause the unit. As long as he's a color that your "trainees" regard as an enemy, they'll happily fire at him till doomsday from a position in range. Right behind this unit, you can put the target doodad, and it'll look like your riflemen or whatnot are firing at the target, rather than the invisible unit. Footmen can do this too, just from much closer range, of course. If the wisp somehow dies, simply use a trigger to create another one. Wisps die without any blood or sounds I believe, so they're ideal for this. Btw, I believe peasants have different animation frames for when they are and aren't carrying gold. You might be able to use triggers to switch between the two. Otherwise, you can always remove a gold carrying peasant and replace him with another, since they're created without gold. Let me know if this is what you're looking for. |
| 09-02-2002, 06:52 AM | #3 |
Guest | Thank you, but i didnt mean to train on a stationary target, but, well, like the one blizzard had in that one human mission (i forgot) where there are about 2 rifleman and 6 footman marchine at one spot, attacking at nothing, and marching at another, and attacking again. If you dont see what i mean, well, i hope you have seen that movie army of darkness. Remember the part where bruce cambell is teaching the people in the castle how to fight with quarter staves and stuff? "Hoo-hah-hee-ahh" or something. They march at one sport, do the little staff hit, and march back and do it again. If there's no possible way (or nobody knows how), i'll just use Ari's way. Thanks for replying! |
| 09-02-2002, 07:20 AM | #4 |
Playing the attack animation for each unit might be enough to do what you want to do (it would also be much simpler). btw, if you want to know exacly what effect you're thinking of, I recommend using MPQview (it might be available in the tools section of this site) to extract the campaign map you're thinking of and view it for yourself. Of the MPQ viewers, I've found that one the easiest to use. |
| 09-02-2002, 07:30 AM | #5 |
Guest | For the peasent carrying gold. make a basic trigger telling the unit to move to the drop off point of your choice. But before you make him walk do a trigger like this Animation - Play Unit Animation Play Peasent's Walk Gold animation (Walk Gold being the animation string for showing a peasent walking with gold) Then when the peasent reaches the drop point do play unit animation Stand. Or just walk to have it walk back without it. |
