Drummin
  • Drummin
  • 100% (Exalted)
  • General Topic Starter
18 years ago
Hello,
During letterbox mode I want to keep AI from building.
I've used "Idle all units for all players" but that doesn't keep them from building. What do you suggest?
Thanks,
Drummin

UserPostedImage
Sponsor
fleetatks
18 years ago
"Set computer player unable to build buildings/units" and then when your done use "Set computer player able to build buildings/units." I think it's found in skirmish or player->build.

Edit: To stop players from using things use User-> Disable keyboard and mouse input.
Email me if you ever need help (edited signature November 6th, 2014)
Drummin
  • Drummin
  • 100% (Exalted)
  • General Topic Starter
18 years ago

Set computer player unable to build buildings/units" and then when your done use "Set computer player able to build buildings/units." I think it's found in skirmish or player->build.



...Copy/Edit for every AI faction.
Got it. Hoping for a more general "non-build" but I can copy and edit.
Thanks Fleetatks
Drummin
  • Drummin
  • 100% (Exalted)
  • General Topic Starter
18 years ago
Well Fleetatks,
I tried this and it didn't work.
I even tried if True...

*** IF ***
True.
*** THEN ***
Player 'SkirmishAmerica' is unable to build buildings.
Player 'SkirmishAmericaAirForceGeneral' is unable to build buildings.
Player 'SkirmishAmericaLaserGeneral' is unable to build buildings.
Player 'SkirmishAmericaSuperWeaponGeneral' is unable to build buildings.
Player 'SkirmishChina' is unable to build buildings.
Player 'SkirmishChinaInfantryGeneral' is unable to build buildings.
Player 'SkirmishChinaNukeGeneral' is unable to build buildings.
Player 'SkirmishChinaTankGeneral' is unable to build buildings.
Player 'SkirmishGLA' is unable to build buildings.
Player 'SkirmishGLADemolitionGeneral' is unable to build buildings.
Player 'SkirmishGLAStealthGeneral' is unable to build buildings.
Player 'SkirmishGLAToxinGeneral' is unable to build buildings.
Player 'SkirmishAmerica' is unable to build units.
Player 'SkirmishAmericaAirForceGeneral' is unable to build units.
Player 'SkirmishAmericaLaserGeneral' is unable to build units.
Player 'SkirmishAmericaSuperWeaponGeneral' is unable to build units.
Player 'SkirmishChina' is unable to build units.
Player 'SkirmishChinaInfantryGeneral' is unable to build units.
Player 'SkirmishChinaNukeGeneral' is unable to build units.
Player 'SkirmishChinaTankGeneral' is unable to build units.
Player 'SkirmishGLA' is unable to build units.
Player 'SkirmishGLADemolitionGeneral' is unable to build units.
Player 'SkirmishGLAStealthGeneral' is unable to build units.
Player 'SkirmishGLAToxinGeneral' is unable to build units.

DID you have a more general "Computer player" mode in mind? OR another idea?
Intro movie is a minute long or more and AI player should not be using this time to build.
ANY ideas?
Drummin
  • Drummin
  • 100% (Exalted)
  • General Topic Starter
18 years ago
Well Me Myself and PI,

I'm not sure what went wrong.
I've spent hundreds of hours on my intro movie and now after importing the skirmish scripts, things are all messed up. Seems there are many civilian files that came with your download as well. And what about those garrision scripts with named units? Those seem to be custom scripts and not part of normal faction scripts????
To top it off, AI still built through the movie.

Not sure how to restore what I had. Things are sure messed up now.
Drummin
  • Drummin
  • 100% (Exalted)
  • General Topic Starter
18 years ago
Hey Me Myself and PI,

Sorry for the panic post... A few Ctrl-z's and I was back to pre-import mode. I'll have to look at those AI scripts on a new map. Seems like an interesting place for moding AI behavior.
Me Myself and Pi
18 years ago
Well I just tried importing those scripts into a map & they came in fine. Did you use the scripts from cncmaps.net? Or did you import the scripts from the game directory? Importing the scripts from that download should make them look like this picture:
UserPostedImage
56.32 KB
Be sure to uncheck "Auto Verify" before importing the scripts. Verifying all those scripts takes a long time! Also, be sure you're done with all your other scripting because it takes about 30 seconds to load up the script menu with all those skirmish scripts each time.
Drummin
  • Drummin
  • 100% (Exalted)
  • General Topic Starter
18 years ago
Ya....

I downloaded from cncmaps.net via the link above.
And yes, I do know to uncheck the "Auto Verify" when adding scripts. I'm not sure why those scripts changed the function of the scripting I had already done.
I have a copy of your scripts in a new directory and will look at them when I have the time.

I scripted a work-around for the issue I was having by making basic buildings ie. powerplants, barracks and bulldozers/workers unbuildable during opening movie. Seems to do what a needed it to do.

Thanks for your help.
Drummin
  • Drummin
  • 100% (Exalted)
  • General Topic Starter
18 years ago
By the way,
The scripts loaded into the map just fine though I'd still like to know about those missing named units.
The problem was the interferience with the scripts I had made.
Me Myself and Pi
18 years ago
http://cncmaps.net/index.php?showtopic=1749 

Sorry about that picture in my last reply, I uploaded the wrong one I was using in another topic, lol. I've changed it to the correct one.