AI Scrips
This topic is locked. You can no longer write replies here.
Mar 23 2009, 6:12 am
By: Pinky  

Mar 23 2009, 6:12 am Pinky Post #1



Hello all having problems again this time with Scripts.

I am currently using the Set all Units on Random Suicide mission script for P5, a computer.

P5 is confined to a large battlefield. P5 can have a maximum of 40 units at any one time. P5 starts off with zero units and there are five locations (spawn points) scattered throughout the battlefield. Death Counter timers and randomize switches determine if and where they spawn.

SO far I have the units spawn and then I run the script. If i run it just once then the next lot of of spawns aren't affected, so I have to keep running the script everytime a group spawns.

HOWEVER, if i just observe player 5 (don't kill them off or w/e) they all seem to mass on the bottom left of my battlefield, as if trying to get somewhere but can't. Would anyone know why the script is making them behave this way, and how to stop it? I tried Strategic Suicide and I got the same result.

It might also be handy to know that I tried Junk Yard Dog and NOTHING happened, the spawns just remained stationary.

Plz help!



None.

Mar 23 2009, 10:41 am NudeRaider Post #2

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

They go to the corner probably because there's something they'd like to kill. Suicide mission does not check if the target they pick is reachable. So you have to make sure that all units and buildings of enemy players are inside your battle area AND that there are enemies inside the battlefield or be forced to use different methods:

Junkyard dog should work. Maybe it's because you constantly execute the AIs. They tend to screw up if fired over and over. Try using it less frequently (e.g. only when new units spawn) or don't always run the same AI. For example run random suicide on first spawn, then junkyard on 2nd spawn and strategic suicide on 3rd spawn and so on.

As a last resort you can program your own junkyard dog using the patrol orders. Have the battlefield divided in several zones and randomly order the units from one zone to another.




Mar 24 2009, 11:56 am Pinky Post #3



Junk Yard Dog doesn't work even if fired once, or in a pattern like your second paragraph.

Any ideas what would be occuring this?



None.

Mar 24 2009, 12:07 pm Trojanx Post #4



If they try to get to the corner, they are trying to kill an unit. Remove that unit or make it invincible by unit properties.



None.

Mar 24 2009, 1:05 pm NudeRaider Post #5

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Maybe you chose the wrong AI. IIRC you have to use "run AI script at location".
If you're already doing this I might be wrong and you try the other category "run AI script".




Mar 24 2009, 2:41 pm Pinky Post #6



Thanks NudeRaider that was the problem. I was using run AI script.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:35 am]
Ultraviolet -- Vrael
Vrael shouted: NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
Gonna put deez sportballs in your mouth
[01:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
[2024-4-30. : 7:43 am]
NudeRaider -- Vrael
Vrael shouted: if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
Yeah I'm not a big fan of Westernhagen either, Fanta vier much better! But they didn't drop the lyrics that fit the situation. Farty: Ich bin wieder hier; nobody: in meinem Revier; Me: war nie wirklich weg
[2024-4-29. : 6:36 pm]
RIVE -- Nah, I'm still on Orange Box.
[2024-4-29. : 4:36 pm]
Oh_Man -- anyone play Outside the Box yet? it was a fun time
[2024-4-29. : 12:52 pm]
Vrael -- if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
[2024-4-29. : 11:17 am]
Zycorax -- :wob:
[2024-4-27. : 9:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
[2024-4-27. : 7:56 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: "War nie wirklich weg" 🎵
sing it brother
Please log in to shout.


Members Online: Roy, jun3hong