I have a few questions about scripting. I've been trying to make more difficult AI and have succeeded in much of it, but some things just arent working out after I think hundreds of attempts.
1) If I make a script specific to a certain general, say LaserGen and it has to do with anything for example receiving 3k for building the strategy center (which I think is actually the default cheat amount hes given in the regular skirmish script) and I play a game that has multiple LaserGen's in it that are AI controlled does that mean that only the first AI player to build a strategy center gets that bonus cash?? Seems as though that shouldnt be the case, but I ran a game of 4 LaserGen's up agasint 3 SupWeapon Gen's and myself and I sold out at the start so I could be an observer, and one of the LaserGens had considerably more cash throughout, and especially at the ned of the game than the others leading me to believe that these scripts do not work independently with each AI player. Can anyone clear this up for me??
2) I am trying to alter some of the build teams for many of the generals. Most of it is fairly simple and has been easy to figure out just through guess work but I am having difficulty getting infantry to garrison (load) the humvee's. I have two sets of team scripts, one for the humvees and one for the infantry. Both are built as they should, collect in the middle but then infantry don't load into the humvee's. In my 'on create' script for the infantry I have them TEAM > LOAD NEARBY TRANSPORT and yet they don't do it. I also tried having them first merge onto the team of humvees then load transport. I also tried having them already on team to begin with. Nothing seems to work here so far. I do konw my teams are working though because I askthem to build a medic which the computer never does, I don't either but its an easy check to make sure the team is atleast made.
3)With base expansion it seems ideal to have the AI build at each supply location. In the scripts I have them building patriots and FB's and eventually war factories and drop zones and particle cannons at supply locations with xx amound of cash left. The problem is, the scripts ask them to do this every so often, rather than every time they discover a new supply dock. Now, what I would like to do is have them build these 'mini bases' each time they find a new supply dock and build a supply center rather than just building these buildings on top of each other at the first or second or even third dock they find when they have access to no more. This isnt as important as the first two issues as if a computer has that many mini bases he's prolly kicking butt anyway.
4) Does anyone know how the X Y coordinate system works in the AIData.ini file?? It would seem trivial that it is just left to right and up and down like in good old calculus class... but yet the coordinates that I put in for the computer to build new buildings doesn't seem to follow those. I mean, if the x coor and the y coor are close to the x and y of the coor's for the command center than it is close to the command center, but not necessarily in the direction I would assume it to be. The angles work great, just the coordinates seem off. I even went into world builder and built the entire Tank Gen's setup (of skirmish buildings, obviously he builds more on the fly from AI scripting) and I did a capture screen of him in a game with plenty of build room and there was no comparibility between them. This has me baffled!?! Any thoughts?
Thanks
Edited by user
18 years ago |
Reason: Not specified
Turtling is not a strategy, its a weakness