Staredit Network

Staredit Network -> UMS Assistance -> Problem with AI Script
Report, edit, etc...Posted by majk on 2005-06-28 at 12:41:14
Hi, let me explain the situation:

1) create units for Player 8 (computer)
2) run AI Script: 'Send All Units on Strategic Suicide Missions'

now the script works fine - all computer units attacks me,

but...
when i killed all the computers units

3) i create another units for Player 8 (computer)

and these units just stay... sad.gif (don't attack me...)

i can't make them to attack me by running one more time AI Script: 'Send All Units on Strategic Suicide Missions'

wtf?
how can i solve this problem?
Report, edit, etc...Posted by slayer766 on 2005-06-28 at 12:51:12
You should have that AI Script to run on a preserve trigger.

To have it so that the units don't keep on creating in the AI Script preserve trigger area, just do this in a seperate trigger:


Trigger
Description:
Human Players
Conditions:
¤ Player 8 (Computer) Commands At Least 1 Men
Actions:
¤ Run AI Script "Send All Units On Strategic Suicide Missions"
¤ Preserve Trigger


That should work fine, if not just let me know, and I will try something for you to do a little different, but that should work. biggrin.gif
Report, edit, etc...Posted by majk on 2005-06-28 at 13:08:53
slayer766: your idea doesn't work... the same effect (first units attacks me, but these created later not...)

i have separate triggers for creating units and another one for running this AI Script, everything works perfectly except this AI (works only for the units which had been created before ai starts...)

i'm using StarForge 2.0.0 (does it depends on editor?)
plz help.
Report, edit, etc...Posted by slayer766 on 2005-06-28 at 13:13:56
Could you post the map, so I can try to fix that problem of yours for ya'?
Report, edit, etc...Posted by majk on 2005-06-28 at 13:43:47
ok i created as fast as i can the simple map showing this problem... :/ (the same i have on my Map)
Report, edit, etc...Posted by slayer766 on 2005-06-28 at 14:49:22
Wow. this one has really got me. I have tried doing the triggers with the Mineral count, and the Death Counter. I can't figure this out. confused.gif
Report, edit, etc...Posted by majk on 2005-06-28 at 17:32:44
heh... :/ i have simple alternative - using 'Order' with 'attack/patrol', but it's not the same :/
Does anyone have an idea of solving this problem?
Report, edit, etc...Posted by I-X-King-X-I on 2005-06-28 at 19:29:32
check the conditions and see if your not doing the condition again to make them attack u
Report, edit, etc...Posted by in_a_biskit on 2005-06-29 at 01:35:19
I think the problem is that the computer has some sort of 'strategy' built into the strategic suicide mission AI that it can't quite follow because it doesn't have enough units or for some other reason.

Try using 'send all units on random suicide missions'.
Report, edit, etc...Posted by majk on 2005-06-29 at 03:21:07
in_a_biskit: i think the problem is in 'createunit' function...

i solved the problem by running 2 different scripts (check the attach.) - now it works smile.gif

i'm newbie. i have another question - how to create e.g. 'psi emitter' which can't be picked up by probe? coz i made some kind of wall using 'psi emitters' and probes are destroying it smile.gif

Report, edit, etc...Posted by in_a_biskit on 2005-06-29 at 03:54:28
I think the it works the same way even when you only run the 'random suicide missions' script without the 'strategic suicide missions' one. Have you tried that?

Prevent the probes from going near the psi emitters via triggers, or if there is only one player with probes, then you can give the psi emitters to that player, since you can't pick up your own powerups.

Look at this tute: http://www.staredit.net/index.php?tutorial=126
Report, edit, etc...Posted by majk on 2005-06-29 at 09:50:57
in_a_biskit: i know this technique.

i can replace 'psi emitter' with 'lurker egg' or 'egg', but dunno how to create it... 'CreateUnit' doesn't work... why? is there any requirements?
Report, edit, etc...Posted by Snipe on 2005-06-29 at 10:04:48
you have to do it in Starforge. You can't create things like Dark swarm or egg's on Extra edit.
Report, edit, etc...Posted by majk on 2005-06-29 at 10:08:48
Snipe, i wrote in this topic:
QUOTE(majk @ Jun 28 2005, 11:08 AM)
...
i'm using StarForge 2.0.0 (does it depends on editor?)
...
[right][snapback]247016[/snapback][/right]


and i mean - creating unit with 'CreateUnit' trigger...
Report, edit, etc...Posted by slayer766 on 2005-06-29 at 10:36:00
I can create Eggs in X-tra. Only by preplacing them first though. biggrin.gif
Report, edit, etc...Posted by Snipe on 2005-06-29 at 10:47:33
This is know. He wanted to create it by a trigger. I was telling him only can be done by starforge or i'm sure in ScmDraft2.


*plus ok sorry majk i didn't know you were using it. It does matter on the editior but i don't think on the version on Starforge.
Report, edit, etc...Posted by in_a_biskit on 2005-06-29 at 22:51:51
I think the above few posts are a bit confusing, so I'll say what everyone has been trying to say:
You can't use triggers to create any 'x-tra', 'hidden', or extended units, including zerg eggs.
You can preplace such units using almost any editor other than staredit.
You can 'create' them using triggers by moving preplaced ones from an out-of-the-way place to the required position and giving them to the required player.
Next Page (1)