Staredit Network

Staredit Network -> UMS Assistance -> Computer AI problem
Report, edit, etc...Posted by Saox on 2005-02-11 at 15:11:45
So I started making my map - "The battle Of Hoth" from the Star Wars trylogy.
The players are:
1.Roque Squardon(Air units)
2.The rebels(ground)
3. Luke(Heroes)
-------------------
4. rescueable
5.Terran computer
--------------------
6.Vader <-- human player wich is allied with all the computers
7.neutral
8. Yellow terran

So I gave the yellow terran a trigger to ally player 6 and a script: "Terran expansion campaign insane" or something like that. But the only that he did was to build 3 scv, one supply and one barrack. I'm 100% sure about, that he's got money to build something else. Cause everything costs max 5 minerals as he can gather 1500...

I tried to change the script into brood war custom, but that didn't do it.

Please! Tell me what did I do wrong? Or how to make these situation work perfectly? Any tip about making a computer player?
Report, edit, etc...Posted by chuiu on 2005-02-11 at 15:16:39
Well unless you have a preserve trigger running that AI multiple times, the computer will follow the AI script given to it.

It is a set ai script that tells it to build such and such at such and such time and attack at such and such times. And it is programmed with certain responses, etc. The AI will be much harder to defeat as the game progresses and will expand and grow a larger force.

So if you are sure that the AI scipt isn't being run more than once, are you sure you're waiting for it to do anything?
Report, edit, etc...Posted by Saox on 2005-02-11 at 15:23:50
It's not preserved. It only gathers and gathers sad.gif . Without doing anything else. I expect that the trigger will make up an army and start fighting the others.
Report, edit, etc...Posted by chuiu on 2005-02-11 at 15:31:19
It will, how long are you waiting to see if they do before you close the game?
Report, edit, etc...Posted by Saox on 2005-02-11 at 15:39:25
I never tried to wait more than 3 mins. I even placed some buildings for him(barracks, etc.) so he could build units without placing the factories. I need it to act faster. But I will see what he will do after 10 mins for example... What do you recommend to do? If this won't work I'd like to make that all computer player from the begining. How to start making a CPU perfectly? Hand over some tips wink.gif
Report, edit, etc...Posted by PCFredZ on 2005-02-11 at 15:44:15
AI scripts do not start by following the mineral/vespene costs set in the map editor. They would instead follow the game's default amounts, and use the right amounts later... just in spite of you!

Seriously, though, the SC AI script is a mysterious thing, that puzzles most of us.

Basically, if you wait some more (i.e., more than 3 minutes), you'll start to see... ahem, stuff.
Report, edit, etc...Posted by Saox on 2005-02-11 at 15:47:29
That still doesn't solve the problem wink.gif. How do you create AI scripts for a computer player? Wich one do you choose? How do you make all this to work?
Report, edit, etc...Posted by chuiu on 2005-02-11 at 15:49:19
QUOTE(Saox @ Feb 11 2005, 02:39 PM)
I never tried to wait more than 3 mins. I even placed some buildings for him(barracks, etc.) so he could build units without placing the factories. I need it to act faster. But I will see what he will do after 10 mins for example... What do you recommend to do? If this won't work I'd like to make that all computer player from the begining. How to start making a CPU perfectly? Hand over some tips wink.gif
[right][snapback]142930[/snapback][/right]


Insane AI is the hardest AI you can use, but they build up men for large attacks every few minutes of the game. The first attack you should see is of 20 marines in 7 minutes in the game.

What you can do is setup spawn points for them where you create units and order them to attack for them periodically in the game. That is how I strengthen my computers.
Report, edit, etc...Posted by Saox on 2005-02-11 at 16:32:32
Nope. Now i'm throught a few heavy scripts. Tried the Insane, but the only thing he did was to gather gaz 24/7 nothing more. Didn't even place a building. Nothing just!
Report, edit, etc...Posted by chuiu on 2005-02-11 at 16:40:03
If you run insane ai it WILL build buildings and men and it WILL attack in 7 minutes after the game has started. Double check to make sure you are not running the AI script twice.

What does the trigger say, exactly? What players?
Report, edit, etc...Posted by Saox on 2005-02-11 at 17:10:39
So the condition is that If player 3 brings at least 1 any unit to location Trap2 THEN execute script terran expansion campaign bla bla insane at location "yellowbase".

After that i move something throught trap2 the computer starts working. Builds up a barrack and a supply depot at the same time. Builds only 4 scv (2 mineral fields are available) and that is all. He desn't even bother to build a marine.
Report, edit, etc...Posted by chuiu on 2005-02-11 at 17:19:01
QUOTE(chuiu_os @ Feb 11 2005, 03:40 PM)
What players?
[right][snapback]142970[/snapback][/right]

And you said after that you do something else, what are all of the actions in the trigger that runs the AI script?
Report, edit, etc...Posted by Saox on 2005-02-11 at 17:27:15
"And you said after that you do something else, what are all of the actions in the trigger that runs the AI script?"

I made it this way, that i have to move a unit to location TRAP2 to activate that trigger wich starts up that AI.

Maybe I could send you my map? I really don't know what to do about this.
Condition: Player 3 brings at least 1 any unit to location TRAP2
Action:
-modify resources add 100 minerals & gas
-execut AI script at location "yellowbase"


That's all about the trigger.
Report, edit, etc...Posted by chuiu on 2005-02-11 at 17:32:34
Please stop ignoring my other question. What player(s) is the trigger made for? I know what player it's looking at and what player it affects already because you stated those.

I won't be home till late tonight, im leaving right now. If you really cant figure it out and no one can help you before you leave PM it to me and I can take a look at it for you.
Report, edit, etc...Posted by Saox on 2005-02-11 at 17:35:19
Sorry I didn't get that. So the trigger is made for player 8 yellow. The one that I whant to THINK!
Report, edit, etc...Posted by chuiu on 2005-02-12 at 02:07:25
Well I'm clueless, can you post the map or send it to me if you don't want it public?
Next Page (1)