| 07-18-2002, 09:54 AM | #1 |
Guest | In my custom level (not a melee lvl) I want the computer to make a base and fight. I provided a base and some peons. And I tried the melee game - run AI script for computer players action. With starcraft that would do it. But they still don't get off their lazy asses. How is it done? |
| 07-19-2002, 11:28 AM | #2 |
Guest | Aw.. come on, I'm sure one of you made a scenario with a base building computer player in it. This shouldn't be hard I guess? |
| 08-19-2002, 05:06 PM | #3 |
Guest | *bump* |
| 08-19-2002, 05:21 PM | #4 |
Guest | Yep... another one. Maybe some Mod should create a sticking topic, since unless someone comes up with a real solution people will keep asking this time and again... Just look thru the "discussion about computer players"-thread a bit below. It has no complete solution, either... :( - but when I _finally_ get my level to work, I'll write a guide, I promise. edit: a base-building ai? this is even more complex, trust me. It would be like mending the scripts for melee and campaign ais. I'm still working on it... |
| 08-19-2002, 05:25 PM | #5 |
Guest | I thought maybe the soltion can be found in the single player campaign scenario's, which should be packed in the mpq. I tried mpq extractors but I don't really know how to use them, so is there a site where I can download the single player maps? I guess we all can learn alot of blizzard's single player campaign triggers :) |
| 08-19-2002, 06:23 PM | #6 |
Guest | Of course we can. Personally, I've studied pretty much all interesting .ai files and, if available, the corresponding levels and believe to have a pretty good understanding of AI-programming. The problem is getting the bloody thing to _work_. MPQ-Extractors: Use WinMPQ. Open War3.mpq, which will take a while (at least it did on my comp...), then scroll down to the maps\ section. Select a map, then right-click and choose extract. That's it pretty much. Note that the .w3m files are MPQs themselves. |
| 08-19-2002, 07:26 PM | #7 |
Guest | ..but if we were to just copy the AI activating triggers from these maps into our own maps, it should work, shouldn't it? Or is it more complicated than I thought :) |
| 08-19-2002, 08:31 PM | #8 |
Guest | i dont think it should work, because ai scripts are designed for a specific situation (for example you must specify the number of the player to attack, so you must have concording alliances and players numbers in your map) if u need for help a guy for your guide, tell me ;) (and traduce it in french) |
| 08-20-2002, 09:37 AM | #9 |
Guest | But if we use a blizzard trigger activating such a script, but instead of using the special script it's referring to, using the default (melee) script (map.ai?), shouldn't it work? That way the trigger is the same, only the field specifying the exact script is different. |
| 08-20-2002, 01:40 PM | #10 |
Guest | "map.ai" doesn't exist. "common.ai" includes only general commands, not an ai itself. The melee AIs work, but only on melee maps and only with the melee triggers, of course... Sorry to have to tell you, but the only way to make a campaign computer player is going the hard way and learning AI programming (and how to include the file, argh :rolleyes: ) |
| 10-30-2002, 01:39 AM | #11 |
I can't believe that the computer cant do anything. In StarEdit it was so easy, and so many options. Here its like a mission. Im making a map where I want the enemy computer to make a town, and train marines, but all they do is mine. |
| 10-30-2002, 01:52 AM | #12 |
With version 1.03, aren't there ai scripts like 'easy' , 'insane' , etc.? |
| 10-30-2002, 02:40 AM | #13 |
Guest | ??? I have made a custom map before with working melee AI script, im 100% sure of it! The computer must be provided all normal things, like a gold mine, trees have to be close to town hall, they will need a few random gold mines away from their base for expansion, or they will stay at Tier 1 the whole game, since the computer determines which tiers to upgrade to depending on their expansions... You can also use triggers, but it isnt very convienient, but then again, not everyone knows how to program the AI... Here is one trigger example: -Elapsed time is 0.01 seconds -Order peon 0001 to create a town hall at center of AITown Here is another type: -If type of last contructed structure = to town hall -Order townhall to build 4 peons -Wait 50.00 secnds -Pick all units of type peons, and order to mine -Pick 3 randopm peons, order to harvest lumber Those are not too good examples, but it can be done.. |
| 10-30-2002, 03:31 AM | #14 |
Can you make an AI in custom maps act like one in melee map? |
| 10-30-2002, 05:53 AM | #15 |
I think I just solved my problem. Don't know if it will work on yours, cause it depends on the map itself. But I basically just copied the melee initiation folder and pasted it to my map, I then erased some of the triggers, and it works. Of course I made myself a building so it won't come out a loss as soon as I start. You could probably even take out the defeat conditions, maybe I'll try it some other time. |
