Staredit Network

Staredit Network -> UMS Assistance -> AI Querry
Report, edit, etc...Posted by xile on 2004-12-19 at 12:53:22
confused.gif helpsmilie.gif I want to make the computer players attack better some times they just walk right passed an enemy and if there movement could be a little more random that would be good and a random unit chooser to
Report, edit, etc...Posted by DjDTM on 2004-12-19 at 13:54:42
The random thing can be done by using switches.

Heres a good tutorial Here by (U)Bolt_Head

http://www.staredit.net/index.php?act=tuto...e=Randomization

As for the attack problems.

Try taking off the send unit on suicide attack mission, and try it out.
Report, edit, etc...Posted by Staredit.Net Essence on 2004-12-19 at 14:41:17
dont add preserve to any of your scripts or else they might just run around and not attack like you mentioned.
Report, edit, etc...Posted by ChaosRyder on 2004-12-19 at 14:43:39
Read tutorials. There is a lot on sen and im shure you could find one! Give me two minutes and ill find one.

There you go : Random Switches
Report, edit, etc...Posted by DjDTM on 2004-12-19 at 14:44:15
Yea thats what I last, said but then I realized that the triggers condition was "bring at least 1 to *location*"

And the locations is really small.

So it will keep ordering it to do stuff untill it leaves that location...

So it should be fine...

Add more conditions though... Maybe even a wait.
Report, edit, etc...Posted by xile on 2004-12-20 at 13:21:10
[attachmentid=3427]

ok I got the random to work But the computer units still dont attack properly???? helpsmilie.gif
Report, edit, etc...Posted by DjDTM on 2004-12-20 at 16:07:12
In the middle you have a few locations.

You have triggers set up to where if they go to that location their immediatley given an order to go the the next location.

When this happens they would stop fighting and then start fighting.

This is because when you give a unit an order theres a delay for them to RE-ATtack the unit they were already attacking.

I think you have a few unessecary triggers and locations.

Mostly the ones you have in the middle.

Create a new location that covers that whole left middle section and

Add a condition to your move triggers that is Player 8 brings exactly 0 men to middle. So that the trigger only goes off when the person is not there, that way they still attack eachother, and they don't stop.

Edit: I've done you a favor and completly remade your order commands.
Report, edit, etc...Posted by ChaosRyder on 2004-12-20 at 17:45:07
QUOTE(xile @ Dec 20 2004, 02:21 PM)
[attachmentid=3427]

ok I got the random to work But the computer units still dont attack properly???? helpsmilie.gif
[right][snapback]112631[/snapback][/right]

Don't you already have a topic about that?
Report, edit, etc...Posted by xile on 2004-12-21 at 21:17:43
QUOTE(ChaosRyder @ Dec 20 2004, 03:45 PM)
Don't you already have a topic about that?
[right][snapback]112719[/snapback][/right]



yea I thought no one would anser a new question in an old post oh well leson learned

ADDITION:
QUOTE(DjDTM @ Dec 20 2004, 02:07 PM)
In the middle you have a few locations.

You have triggers set up to where if they go to that location their immediatley given an order to go the the next location.

When this happens they would stop fighting and then start fighting.

This is because when you give a unit an order theres a delay for them to RE-ATtack the unit they were already attacking.

I think you have a few unessecary triggers and locations.

Mostly the ones you have in the middle.

Create a new location that covers that whole left middle section and

Add a condition to your move triggers that is Player 8 brings exactly 0 men to middle. So that the trigger only goes off when the person is not there, that way they still attack eachother, and they don't stop.

Edit: I've done you a favor and completly remade your order commands.
[right][snapback]112672[/snapback][/right]




Hey thanks alott I love this site!
Next Page (1)