Staredit Network

Staredit Network -> UMS Assistance -> AI Nuking
Report, edit, etc...Posted by Kaias on 2007-01-14 at 20:17:29
I'm having a small problem having Computers nuke.

The objective I had in mind was for the Computer player to randomly nuke 16 different locations every (approx) 1.5 seconds.


Trigger
Description:
Countdown trigger
Players:
¤ Player 8
Conditions:
¤ 'Nuke' is 'Set'
Actions:
¤ Modify death counts for 'Player 1': 'Subtract' '1' for 'Nuke Counter'
¤ Preserve Trigger


This works fine.


Trigger
Description:
Counter Reset
Players:
¤ Player 8
Conditions:
¤ 'Player 1' has suffered 'exactly' '0' deaths of 'Nuke Counter'
¤ 'Nuke' is 'Set'
Actions:
¤ Modify death counter for 'Player 1': 'Set' to '18' for 'Nuke Counter'
¤ 'Set' 'Randomize ON'
¤ Preserve Trigger


This also appears to work fine.


Trigger
Description:
Randomize
Players:
¤ Player 8
Conditions:
¤ 'Randomize ON' is 'Set'
Actions:
¤ Randomize 'Random A'
¤ Randomize 'Random B'
¤ Randomize 'Random C'
¤ Randomize 'Random D'
¤ Preserve Trigger


Also appearing to work fine.

Here is what I can't get to work, the actual nuking. Here is what I have:


Trigger
Description:
Actually Nuking
Players:
¤ Player 8 (Computer I Want to Nuke)
Conditions:
¤ 'Randomize ON' is 'Set'
¤ 'Random A' is 'Cleared'
¤ 'Random B' is 'Cleared'
¤ 'Random C' is 'Cleared'
¤ 'Random D' is 'Cleared'
Actions:
¤ Clear 'Randomize ON'
¤ Execute AI script 'AI Nuke Here' at 'Nuke Zone 01'
¤ Preserve Trigger


The Computer (8) has a ghost in range of the location 'Nuke Zone 01'
11 Command Centers each with Nuclear Silos.
And the money to buy a nuke

I set the nuke cost to '1' gas and the time to '1' and gave the computer 1000 gas.

I also do have every a trigger for every possible combination of the randomization. 'Nuke' switch IS being set on correctly.

For extra measure, I removed the option to buy ANYTHING except a nuke.





Where did I go wrong?
Report, edit, etc...Posted by Falkoner on 2007-01-14 at 20:29:50
For a computer to nuke he has to have a nuke silo, enough money to make a nuke, and enough time to build the nuke, then you simply use the nuke AI to get them to nuke. So it should've worked just fine, there must be a problem with youir randomization.
Report, edit, etc...Posted by Kaias on 2007-01-14 at 21:11:37
QUOTE(Falkoner @ Jan 14 2007, 06:29 PM)
For a computer to nuke he has to have a nuke silo, enough money to make a nuke, and enough time to build the nuke, then you simply use the nuke AI to get them to nuke. So it should've worked just fine, there must be a problem with youir randomization.
[right][snapback]613846[/snapback][/right]


Unlikely, I display message checked the first 3 triggers and they do continue resetting, going off every (approx) 1.5 seconds.

They could only do that if 'Randomization ON' was cleared and it can only be cleared via the 16 different combinations of the randomization.


Player 8 is terran, by the way.
Report, edit, etc...Posted by Kyuubi. on 2007-01-14 at 21:44:10
if you don't give computers ai scripts to order it to build a nuke, they'll just sit there...maybe the computer isn't even building a nuke.
you can check out these tutorials.

http://www.staredit.net/index.php?tutorial=55

http://www.staredit.net/index.php?tutorial=175
QUOTE
- Nuking -
*Use the direct "Build nuke at location" AI to force the computer to build a nuke in a silo (I don't think your suppose to preserve this trigger that this AI is in)
*With a nuke ready now use the "Target nuke at location" AI to force the computer to use one of its ghost to target the first unit that gets in its way with a nuke (you can preserve this trigger)
*A ghost will target invincible units with a nuke despite the fact the nuke won't even hurt it
*Sometimes even what the computers default race can matter to get this to work so set it to terran if it doesn't seem to work with the others
Report, edit, etc...Posted by Kaias on 2007-01-14 at 22:05:52
QUOTE(Kyuubi. @ Jan 14 2007, 07:44 PM)
if you don't give computers ai scripts to order it to build a nuke, they'll just sit there...maybe the computer isn't even building a nuke.
you can check out these tutorials.

http://www.staredit.net/index.php?tutorial=55

http://www.staredit.net/index.php?tutorial=175
[right][snapback]613868[/snapback][/right]



There is no 'Build nukes at location' AI script or 'Target nukes at location'
Report, edit, etc...Posted by Falkoner on 2007-01-14 at 22:25:47
Actually...

user posted image



Maybe you are confused because it is fill nuke silos?
Report, edit, etc...Posted by Kyuubi. on 2007-01-14 at 22:28:02
QUOTE(Kaias @ Jan 14 2007, 07:05 PM)
There is no 'Build nukes at location' AI script or 'Target nukes at location'
[right][snapback]613876[/snapback][/right]

it should be there if your using any other besides the campaign editor.
go to Run AI script at loaction and look for the one named "BW Terran 2 - A (Fill silos with Nuke(Type 1))" theres another one with type 2, but that doesn't work well.
Report, edit, etc...Posted by Felino on 2007-01-15 at 06:24:39
The 'target nukes' is in all editors. Including the blizzard one.
Report, edit, etc...Posted by xmrxsiegecopx on 2007-01-15 at 11:04:30
QUOTE(Kyuubi. @ Jan 14 2007, 07:28 PM)
it should be there if your using any other besides the campaign editor.
go to Run AI script at loaction and look for the one named "BW Terran 2 - A (Fill silos with Nuke(Type 1))"  theres another one with type 2, but that doesn't work well.
[right][snapback]613887[/snapback][/right]

Actually, Type 2 is more stable than Type 1, as Type 1 creates ghost in the bottom left of the map.


The computer will not nuke if it doesn't already have a nuke to use, but if you constantly use the AI nuke here script it will automatically build nukes if it can (or just use the Fill silos (Type 2) script) prior to nuking.
Report, edit, etc...Posted by Kaias on 2007-01-15 at 11:36:51
user posted image

Is that the same thing?
Report, edit, etc...Posted by xmrxsiegecopx on 2007-01-15 at 12:39:43
yes.
Report, edit, etc...Posted by Laser_Dude on 2007-01-16 at 20:27:17
QUOTE(Kaias @ Jan 15 2007, 09:36 AM)
user posted image

Is that the same thing?
[right][snapback]614037[/snapback][/right]

QUOTE(xmrxsiegecopx @ Jan 15 2007, 10:39 AM)
yes.
[right][snapback]614064[/snapback][/right]


He selected a brood war town AI script, that'll make a base build as the town in brood war lvl 2, not build a nuke. Use the one he said before.
Report, edit, etc...Posted by Kaias on 2007-01-16 at 20:38:02
I don't see anything that says (fill with nukes) on it.
Report, edit, etc...Posted by PCFredZ on 2007-01-16 at 20:49:43
Learn to read. Falkoner had the screenshot.

QUOTE(Falkoner @ Jan 14 2007, 09:25 PM)
user posted image
Maybe you are confused because it is fill nuke silos?
[right][snapback]613886[/snapback][/right]
Next Page (1)