shekdog
  • shekdog
  • 73.25% (Friendly)
  • Private Topic Starter
16 years ago
Hi everyone. I want to make a map which the enemy units garrison nearby structures when started. Obviously it's got to do with the "garrison nearby building script." But when I'd placed a few units down and made that script in their folder, it didn't work. Could someone please help me out?
Sponsor
Max-o-l
  • Max-o-l
  • 61.25% (Friendly)
  • Private
16 years ago
did u name your units? and teh garrisonable building? try something like this:
*** IF ***
True.
*** THEN ***
Unit 'Ranger1-1' loads into Unit 'Tower1'
Unit 'Ranger1-2' loads into Unit 'Tower1'
Unit 'Ranger1-3' loads into Unit 'Tower1'
Unit 'Ranger1-4' loads into Unit 'Tower1'
Unit 'Rocket1-1' loads into Unit 'Tower1'
Unit 'Rocket1-2' loads into Unit 'Tower1'
Unit 'Rocket1-3' loads into Unit 'Tower1'
Unit 'Rocket1-4' loads into Unit 'Tower1'
Unit 'Rocket1-5' loads into Unit 'Tower1'
Unit 'Rocket1-6' loads into Unit 'Tower1'
Unit 'Ranger2-1' loads into Unit 'Tower2'
Unit 'Ranger2-2' loads into Unit 'Tower2'
Unit 'Ranger2-3' loads into Unit 'Tower2'
Unit 'Ranger2-4' loads into Unit 'Tower2'
Unit 'Rocket2-1' loads into Unit 'Tower2'
Unit 'Rocket2-2' loads into Unit 'Tower2'
Unit 'Rocket2-3' loads into Unit 'Tower2'
Unit 'Rocket2-4' loads into Unit 'Tower2'
Unit 'Rocket2-5' loads into Unit 'Tower2'
Unit 'Rocket2-6' loads into Unit 'Tower2'

i hope this helps!
_________________________________________________________
A soldiers task is not do die for his country but to make the other bastard die for his...
System to come...
Core i7 930
Corsair Dominator 1600-6GK
Corsair HX850
ASUS Rampage III Extreme
ATI HD5870
ASUS Xonar 1.03 HDAV
Logitech X-540
Coolermaster Sentinel Advance
COSMOS S
Samsung P2770HD
Western Digital WD6402AAEX
+Custom watercooling
yay to mapping!
Drummin
16 years ago
In order for the AI to work you'll need to load the default skirmish scripts into your map because adding any scripting to their folders prevents these scripts from loading into the game. You can then add any scripting you wish to the AI players. I've attached the default scripts for Zero Hour. The scripts for generals can be found on the program side of the game.

By The Way, most folks don't take advantage for the bunker scripts for AI players. The default skirmish scripts include three teams for eight players for a total of 24 bunkers. Even on a four player map, all bunkers could be used as they are just unit names that trigger team production. The bunkers would need to be named as follows.
Player1 Garrison1
Player1 Garrison2
Player1 Garrison3
Player2 Garrison1
Player2 Garrison2
Player2 Garrison3
Player3 Garrison1
Player3 Garrison2
Player3 Garrison3
Etc through eight players.

You could try just naming some Civilian buildings with these names and see if the AI will build teams and garrison these buildings. The scripts look for the named building (bunker) and if found, build the team. It should work and you wouldn't need to import the skirmish scripts or do any custom scripting.   AI_Scripts.zip (225kb) downloaded 67 time(s).