View Full Version : Zerg script not working ok
I have made a few UMS maps. I want them to act exactly the same as a regular melee game.
I have set the enemies as Zerg and Terran, so both AI scripts are set in the same way: such as 'always run AI script Zerg expansion Custom at location', for Zerg player. But when playing the map, there is a huge difference.
While Terran keep attacking as they would in a melee game, the Zerg do almost nothing at all. They build their base very slowly, and attack my base only once, after about 3 HOURS playing. After that, they won't attack again and stay at their base. with a small force. The Zerg use only the most simple buildings and have mostly Hydralisks. After about 5 hours, they start building a Queen's nest and have a few Mutalisks.
Why is this, is there an error in the script or any settings? How does the Zerg script work?
ExcaliburMM
03-30-2007, 4:40 AM
Alot of AI Scripts are very very picky about their base/minerals/terrain setup.
Id change the script or change one of those variables.
Also: If your running it for the same computer player it wont work correctly.
Everything is the same as a normal melee game, and I use Zerg script for Zerg, Terran script for Terran.
MidnightGladius
03-30-2007, 8:50 AM
Best bet would be for you to upload the map so we could help you more precisely.
Without knowing the details when it comes to AI, giving answers can be tricky.
Protogod
03-30-2007, 10:53 AM
'always run AI script Zerg expansion Custom at location'
well if you're using "custom" that might be the problem...althoug h i dont know if you mean you're using custom or if that was an example.
Regardless, scx-tra editor has a myriad of other scripts for every race.
matefkr
03-30-2007, 3:02 PM
Have you ever seen zerg player with higher then 1 level of ground unit upgrades? [in melee/free for all]
MidnightGladius
03-30-2007, 5:50 PM
Yes... ups are extremely useful in ZvT and ZvP, and to a somewhat lesser extent, ZvZ.
The problems I can foresee with it without actually seeing the map are:
1 - The custom script selected the weaker AI for the Zerg (from the 3 available) in that match while the Terran went for the stronger. It's all a matter of random probability (even more if you haven't played more than once for the test).
2 - Bad location placement over the Zerg area.
3 - Problem with AI trigger (although not very likely to happen, from the described above). :o
TheDriver
03-31-2007, 8:30 PM
I advise you to use Insane rather than Custom. It Could also be what GrassDragon Said it's very random; and glitches often. Try using Hyper Triggers. Sometimes (for me at least) a preserve trigger helps. And Seperate the triggers, and use the always condition.
I advise you to use Insane rather than Custom. It Could also be what GrassDragon Said it's very random; and glitches often. Try using Hyper Triggers. Sometimes (for me at least) a preserve trigger helps. And Seperate the triggers, and use the always condition.
Never use triggers with the "always" as a condition and that also have the "preserve trigger" action in them. It glitches frequently when you do that. As for the separate triggers thing... honestly, I can't make heads or tails out of it.
Also Hyper triggers aren't needed at all in it if you are using the map to mimic a melee map as you've said.
MidnightGladius
03-31-2007, 10:15 PM
The person above is correct. Constantly repeating hyper triggers will lag your game like crazy.
TheDriver
03-31-2007, 10:43 PM
The person above is correct. Constantly repeating hyper triggers will lag your game like crazy.
Not Always
MidnightGladius
04-01-2007, 1:02 AM
Try playing a decent game with:
C: Always
A: <whatever random action you want>
A: Preserve Trigger
And hypers on. Most of the useful actions (kill, center location, move, transmission, set var) will lag like mad.
Not Always
Always have liked when someone doesn't buy our words for it... especially when you're sure that they're accurate
2 - Bad location placement over the Zerg area.
What exactly is a wrong location placement?
I tried another thing.
This map had 3 players, using these scripts:
Also there was enough ore and gas.
Terran player1_(always)
run script Terran Insane AI at location Terran1
(elapsed time is x seconds)
run script Terran Insane AI at location Terran2
-start units: 2 command center 4 SCV
Zerg player2_(always)
run script Zerg Insane AI at location Zerg1
(elapsed time is x seconds)
run script Zerg Insane AI at location Zerg2
(elapsed time is x seconds)
run script Zerg Insane AI at location Zerg3
-start units: 3 hatchery 4 drone 1 overlord
Zerg player3_(always)
run script Zerg Custom AI at location Zerg4
-start units: 1 hatchery 4 drone 1 overlord
-Terran player1 attacked ok, build 2 separete bases
-Zerg player2 did a few attacks, expanded a bit and after that stopped didn't attack at all anymore. They build one base only, while there are Insane AI scripts for 3 different locations
-Zerg player3 never really attacked my base. When I tried to invade their base they had a defence and started to build a lot more defending troops (hydra/mutalisk only).
bajadulce
05-11-2007, 9:09 AM
I'd avoid using the "preserve trigger" when running Ai's because this will reset the script back to its beginning.
I have also found very strange things w/ Ai's running in UMS. In theory if the "location placement and triggers are correct", they should run identical to their Melee versions. We did an extensive test on this w/ Chui from SEN (old) and for whatever reasons they don't :(.
Added: Also NOT to spam, but if you could find time to keep us posted on your findings @ BroodwarAi.com too?
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.