| 02-21-2004, 09:20 PM | #1 |
Im trying make a computer that doesnt do anything, yet spawns with a townhall and 5 units. So far I can do the latter, however when the map starts, even with NOTHING under AI, if you build a peasant and it finishes, something tells ALL peasants owned by that computer to go and mine gold, if they were mining already, they continue, if they werent, they go in, do 1 sweep, and go to their rally point. Anyone have ANY idea how to disable this? Thanks much. |
| 02-21-2004, 10:40 PM | #2 |
noone? bump = i get in trouble, oh well i need this answer, only thing holding my map from completion.. sorry |
| 02-21-2004, 11:06 PM | #3 |
Easy. (i think) Events: A unit owned by Player 1(red) the computer is issued an order targeting a point Actions: Wait 0.01 seconds Pick Every Unit in (playable map area) and do if(Owner of(picked unit) equal to Player 1(red) the computer then do (Order (picked unit) to Stop)) else do (do nothing) You dont need the part in italic, as i hoped you had guessed. If thats what you want, be happy, otherwise yell at me and ill try to help. P.S. if the events dont work because its a computer, or something, try a periodic event - every 2 seconds. |
| 02-21-2004, 11:19 PM | #4 |
I thought of that too but wouldnt that stop the peasants I WANT to be mining? |
| 02-22-2004, 01:11 AM | #5 |
Specify a region to where they spawn? |
| 02-22-2004, 05:25 PM | #6 |
not sure I know what ya mean, elaborate please? |
| 02-22-2004, 05:57 PM | #7 |
Do what he said, pick the peasents and tell them to stop. Then, pick the number of peasents you want to be mining, and tell them to mine. Do this every time a peasent pops out, and only every time a peasent pops out. Its rough, but it works. you could then pick the remaining peasents and send them to the rally point. its an interesting problem, nad hard code is a b*tch to work around. |
| 02-22-2004, 07:02 PM | #8 |
hmm okay i understand a bit more but i think i might need some more specific guidelines, sorry. Just events and basic actions i can handle the rest.. just a bit confused still |
| 02-23-2004, 05:34 AM | #9 |
again i bump only because its so close to completion and its going to be that great :P |
