For my D2 map I need an AI script that will make reavers build scarabs...How can I do this?
Get SCXE
This post musy be 15 characters.
So put more content in your post

You can't simply program a computer to make the Scarabs. You can tell an Reaver to attack something, and it will make them, if it has enough money...You can edit that with most "Cool" editors. Or just change the amount the reaver has manually, "IE" using triggers...
Isn't there a way which enable Reavers to build scarabs automaticly? Like in that reaver deffense map? Can't you do that for a computer player too?
It's called a trigger.
Conditions:
Current Player brings 1 reaver to location (whatever).
Actions:
Set hanger amount.
You forgot Preserve trigger...Reaver defense, its all done maunally...I think so, if you get the normal versions...
Conditions:
Current Player commands at least 1 Protoss Reaver.
Actions:
Add at most 10 to hanger for all Protoss Reaver at 'Anywhere' owned by Current Player.
('Modify hanger amount' is the title of the trigger)
Preserve Trigger.
Or
Conditions
Current Player Commands at least 1 Protoss Reaver.
Action
Order all Reavers at "Locations" to attack "Location"
Preserver Trigger
Then make sure the computer has enough money and stuff, and hay all done!
He wasn't asking how to make them attack.
Umm, i know but a computer will use its own Ai scripting to make them if you order them to attack!
If it has an AI script to begin with. If he's making a D2 type map, he can't use one because he'll need to control the units seperately with triggers. Thus an AI script would not help and would not do much.
Maybe to emulate the delay in constructing the Scarabs, you can insert a delay in a trigger that adds one scarab to the reaver. I might look something remotely like this:
----------
Conditions:
Current Player brings 1 reaver to location (whatever).
Current player accumulates at least 15 minerals
Actions:
Set hanger amount to add 1 (or something, don't know exact wording)
Subract 15 minerals from current player
Wait 15000 milliseconds (15 seconds)
Preserve trigger
----------
Well, you do have to play around with that. Maybe a seperate location for each reaver?
Then you'd need 15 minerals for all reavers which harder.
-----------------------------------------------------------------------------------------------
Conditions
-- Current player brings 1 reaver to anywhere
Actions
-- Add hanger ammount for current player
-- Wait 15000 miliseconds
-- Preserve trigger
-----------------------------------------------------------------------------------------------
QUOTE(Coko @ Dec 2 2003, 03:33 PM)
Umm, i know but a computer will use its own Ai scripting to make them if you order them to attack!
Your wrong. Without any scarbs, the computer will just walk right past the enemy.
QUOTE(Rune_Scape @ Dec 3 2003, 06:33 AM)
Then you'd need 15 minerals for all reavers which harder.
-----------------------------------------------------------------------------------------------
Conditions
-- Current player brings 1 reaver to anywhere
Actions
-- Add hanger ammount for current player
-- Wait 15000 miliseconds
-- Preserve trigger
-----------------------------------------------------------------------------------------------
Well, I'd assume the he'd be trying to make it as "real" as possible. And it does cost 15 minerals everytime you build a scarab (I think...) So why not have that in?
Alternatively, you can also use switches to control the production of scarabs too.
Then you'd have to make tons of triggers, each for the number of reavers (ie, commands 1 reaver, set hangar count for reaver and subtract 15, commands 2 revears, set hanger count for reavers and subtract 30) Which wouled suck.

Seems every topic here turns into a debate

, well thanks I got it awhile ago, thought id let you know
Well it does present the other sides/tactics that people use. Good for n00bs like me who don't know strategy at all...
Debates keep this forum alive. Or else, the whole forum would consist of spamming topics, and threads with one question and a few answers which basically mean approxiamatlely 10 posts per topic. Eventually, this would kill a forum.
Therefore, debates are good! (As long as they're civilized)
It must be civilized to be a debate, otherwise its a fight.
Well, it depends on how you define a fight and a debate. Some people would feel all debates are fights for an example. Civilized just mean we don't openly flame the other guy or be very unreasonable.
Though usually, forum debates really don't change anyone. Best examples would be religious debates. Nobody is switching religions because of those debates.
QUOTE
Well, it depends on how you define a fight and a debate. Some people would feel all debates are fights for an example.
Not trying to be rude or anything, but those people are wrong. There is a strong distinction between 'fight' and 'debate'. When a person starts slandering (insulting) the other, then it starts becoming a fight. When someone results to yelling, or creating false facts; then it starts becoming a fight.
But when two people get together and talk about something with two different views, it is a conversation and a debate.
Lol now this is turning into a debate about debating

Well.. if all these things wont work i have a great solution:
Conditions:
Player # brings 1 reaver to anywhere
Actions: End scenario in Victory
there ya go, everyone happy
