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.
[06:47 am]
NudeRaider -- lil-Inferno
lil-Inferno shouted: nah
strong
[05:41 am]
Ultraviolet -- 🤔 so inf is in you?
[04:57 am]
O)FaRTy1billion[MM] -- my name is mud
[04:35 am]
Ultraviolet -- mud, meet my friend, the stick
[10:07 pm]
lil-Inferno -- nah
[08:36 pm]
Ultraviolet -- Inf, we've got a job for you. ASUS has been very naughty and we need our lil guy to go do their mom's to teach them if they fuck around, they gon' find out
[05:25 pm]
NudeRaider -- there he is, right on time! Go UV! :D
[05:24 pm]
lil-Inferno -- poopoo
[05:14 pm]
UndeadStar -- I wonder if that's what happened to me. A returned product (screen) was "officially lost" for a while before being found and refunded. Maybe it would have remained "lost" if I didn't communicate?
[03:36 pm]
NudeRaider -- :lol:
Please log in to shout.


Members Online: 3camilae14100yM1, 6carolinec321yL5