Re: A new project.
Posted: Wed Feb 20, 2008 4:33 pm
Hmmm... Really? I didn't redirect me! And I don't even have an account! Anyone else try to download this or have any trouble? If so give some suggestions!!
Anyone who knows more about this can correct me if I'm wrong, but I'm pretty sure the CPU fights anything it sees. It's like a crazed chicken, driven mad by bloodlust and deprivation. The only way to really 'control' it that I'm aware of - without creating your own AI scripts - is to set several locations in computer bases with the 'Value This Area Higher' script set. That should make the computer focus its efforts on destroying those zones. Of course, if the player comes into contact with the enemy, the computer will still fight back and try to destroy them.Kerrigan()Asuka wrote: -Preceding part of quote goes here-
Also this may be a stupid question to throw out into the blue, but how do you make comps fight each other? I've never done this before, and I need to know how.
This is only true for skirmish maps set on Free For All. By default, computer players are allied against the human players. To make AI's battle one another, you've got to use the Set Alliance Status trigger action, e.g.:Kaoru wrote: Anyone who knows more about this can correct me if I'm wrong, but I'm pretty sure the CPU fights anything it sees. It's like a crazed chicken, driven mad by bloodlust and deprivation.
I'd have to see the trigger itself, but if it's set up anything like this:Kerrigan()Asuka wrote: Ok, big problem. Very big serious problem...
I'm having problems with triggers.
I need:
- To be able to do a "when you move this unit to this location, you see this message"
I have:
- A music trigger
Now, when I try to use the trigger i need, it waits until the music is finished to even start... I'm not sure what is going on.. Is it the music that is interfering? Or is it the way I make the triggers?
Code: Select all
Set Switch("kextor", set);
Create Unit("Player 5", "Fenix (Zealot)", 1, "create kextor");
Wait(100000);
Display Text Message(Always Display, "\x003The Xel ' Naga have arrived and landed to assist Zeratul and his forces!");
; Move Unit("All players", "Men", All, "move everything", "Invalid Location");
; Move Unit("All players", "Buildings", All, "move everything", "Invalid Location");
Create Unit("Player 4", "Protoss Photon Cannon", 1, "Make photon for purp1");
Create Unit("Player 4", "Protoss Photon Cannon", 1, "Make photon for purp2");
Create Unit("Player 4", "Protoss Photon Cannon", 1, "Make photon for purp3");
Create Unit("Player 4", "Protoss Photon Cannon", 1, "make a photon");
Create Unit("Player 4", "Protoss Photon Cannon", 1, "Make a photon");
Create Unit("Player 4", "Protoss Photon Cannon", 1, "Make photon for purp4");
Create Unit("Player 4", "Protoss Photon Cannon", 1, "Make photon for purp5");
Create Unit("Player 4", "Protoss Pylon", 1, "Make pylon for purp");
Create Unit("Player 4", "Protoss Pylon", 1, "make pylon for purp1");
; Create Unit("Player 4", "Infested Duran", 2, "Spawn xel naga after 3rd castle");
Create Unit with Properties("Player 6", "Infested Duran", 1, "Xel Captain Spawn", 3);
Create Unit with Properties("Player 6", "Infested Duran", 1, "Xel Captain Spawn", 3);
Move Location("Player 6", "Infested Duran", "Anywhere", "Xaru conversation");
Move Unit("Player 5", "Independent Starport", All, "Anywhere", "Make Xel ' Naga landing craft");
Give Units to Player("Player 5", "Player 4", "Terran Beacon", All, "Get Jar'axle");
Give Units to Player("Player 5", "Player 4", "Any unit", All, "Make Xel ' Naga landing craft");
Set Invincibility("Player 4", "Any unit", "Make Xel ' Naga landing craft", disabled);
Code: Select all
(Conditions) Switch 1 is set
Switch 2 is set
(And reaction:)
Clear Switch 2
Play 'staredit\wav\musicnamegoeshere.wav'
Preserve trigger
Code: Select all
(Conditions)Switch 2 is cleared
Switch 1 is set
(Reaction)
Preserve Trigger
Wait for (Number of milliseconds your song runs for)
Set Switch 2