Distrbd21
  • Distrbd21
  • 67.25% (Friendly)
  • Private Topic Starter
15 years ago
Hi
I'm trying to make it so when I'm the Air F General, i can build SW General power plant instead of AirF's power plant, and Laser Generals Laser defense instead of AirF's defense, and so on.

Its for a map i have that I'm editing so it will be like this.

as the Air F General,you can build
Laser Defense
SW Power plant
Infra internet cafe, more than one if possible,instead of supply drop.
Nuke's, and Scud's instead of particle cannon.
Build Hackers without the building that you have to have with the internet cafe.
Build Tank Generals battle Masters and upgrades without the nuke
I will add more when i can think of it.

I'm trying to do this with scripts on one map, I'm a basic scripter for ZH.

The idea for the map is a comp stomp,so 1 vs 7 and 2 vs 6.

Sponsor
Matthew9170
15 years ago
Ok for your map your going to need a map.ini file
Wow, it has been a long time since I was last here.
Distrbd21
  • Distrbd21
  • 67.25% (Friendly)
  • Private Topic Starter
15 years ago
OK

How would i go about putting all this into a map.ini?

I never went that far with the scripting i did.
Annihilationzh
15 years ago
Is this the 4th or 5th time someone has said it needs a map.ini and then I've come in and said it doesn't?

I explained it best in this thread, IMO:
http://www.cnclabs.com/forums/default.aspx?g=posts&t=9454 

But if you get stuck, there are also these threads for reference:
http://www.cnclabs.com/forums/default.aspx?g=posts&t=8971 
http://www.cnclabs.com/forums/default.aspx?g=posts&t=9197 

All of them ended up with it working.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
Distrbd21
  • Distrbd21
  • 67.25% (Friendly)
  • Private Topic Starter
15 years ago
i did follow that, and got it to work on one map i did, made the AirF General Command center build a china ifra dozer and a gla chem worker.

But what i don't rlly understand is, if i make it so the AirF dozer will build a SW power plant instead of a AirF Power Plant, will it work with the command button script?, and so on.

so will it replace the old button?

I want to build a SW power plant and not a Air F power plant.

meaning take off the Air F power plant button, and add the SW power plant button.
Annihilationzh
15 years ago

so will it replace the old button?


Yes. But airforce's supply center requires his power plant, so you'll need to remove prerequisites from it (the script for that is Map>Modify>Adjust the tech tree for a specific object type).
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
Distrbd21
  • Distrbd21
  • 67.25% (Friendly)
  • Private Topic Starter
15 years ago
OK so i add the SW power plant to that? to make it so i can build the supply center?
Distrbd21
  • Distrbd21
  • 67.25% (Friendly)
  • Private Topic Starter
15 years ago
Also if i change the particle cannon with a scud will it show up on the side?, i think it would because i built it

So just to be clear would this script be right to add a SW power plant to the Air F dozer?
*** IF ***
    True.
*** THEN ***
  [???] Command button: 'SupW_Command_ConstructAmericaPowerPlant' is added to all objects of type 'AirF_AmericaVehicleDozer' in slot number  1  (1-12).
   'SupW_AmericaPowerPlant' becomes Buildable (Ignore_Prerequisites)
Annihilationzh
15 years ago

OK so i add the SW power plant to that? to make it so i can build the supply center?


No, you need to use it on AirFs supply center. You'll need the ignore_prerequisites option with that script.

Also if i change the particle cannon with a scud will it show up on the side?, i think it would because i built it


No. That's impossible without a mod or a map.ini.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
Distrbd21
  • Distrbd21
  • 67.25% (Friendly)
  • Private Topic Starter
15 years ago

Also if i change the particle cannon with a scud will it show up on the side?, i think it would because i built it

Annihilationzh wrote:


No. That's impossible without a mod or a map.ini.


So in the map.ini what would i put for it to show up?

Also i will just make it easy and add the SW supply center instead of the Air F Supply,and just add the Chinook to it.
Annihilationzh
15 years ago
You'll need to use this:
CommandSet AirF_SpecialPowerShortcutUSA
  1 = Command_SpyDroneFromShortcut
  2 = Command_ParadropFromShortcut
  3 = AirF_Command_A10ThunderboltMissileStrikeFromShortcut
  4 = Early_Command_EmergencyRepairFromShortcut
  5 = Command_DaisyCutterFromShortcut
  6 = Command_FireParticleUplinkCannonFromShortcut
  7 = Command_SpySatelliteScanFromShortcut
  8 = Command_CIAIntelligenceFromShortcut
  9 = AirF_Command_SpectreGunshipFromShortcut
  10 = Command_LeafletDropFromShortcut
  11 = AirF_Command_CarpetBombFromShortcut
END

Unfortunately, you have to replace two of them with these:
Command_NeutronMissileFromShortcut
Command_ScudStormFromShortcut

It will likely mismatch online if you use a map.ini.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
Distrbd21
  • Distrbd21
  • 67.25% (Friendly)
  • Private Topic Starter
15 years ago
So if i don't use a map.ini it will work online?

And is there away to add it without a map.ini?

This is what i got so far with the dozer how does it look?
*** IF ***
    True.
*** THEN ***
  [???] Command button: 'SupW_Command_ConstructAmericaPowerPlant' is added to all objects of type 'AirF_AmericaVehicleDozer' in slot number  1  (1-12).
   'SupW_AmericaPowerPlant' becomes Buildable (Ignore_Prerequisites)
  [???] Command button: 'Lazr_Command_ConstructAmericaPatriotBattery' is added to all objects of type 'AirF_AmericaVehicleDozer' in slot number  7  (1-12).
   'Lazr_AmericaPatriotBattery' becomes Buildable (Ignore_Prerequisites)
  [???] Command button: 'Infa_Command_ConstructChinaInternetCenter' is added to all objects of type 'AirF_AmericaVehicleDozer' in slot number  4  (1-12).
   'Infa_ChinaInternetCenter' becomes Buildable (Ignore_Prerequisites)
  [???] Command button: 'SupW_Command_ConstructAmericaSupplyCenter' is added to all objects of type 'AirF_AmericaVehicleDozer' in slot number  5  (1-12).
   'SupW_AmericaSupplyCenter' becomes Buildable (Ignore_Prerequisites)
  [???] Command button: 'GC_Chem_Command_ConstructGLAScudStorm' is added to all objects of type 'AirF_AmericaVehicleDozer' in slot number  6  (1-12).
   'GC_Chem_GLAScudStorm' becomes Buildable (Ignore_Prerequisites)
  [???] Command button: 'Tank_Command_ConstructChinaNuclearMissileLauncher' is added to all objects of type 'AirF_AmericaVehicleDozer' in slot number  8  (1-12).
   'Tank_ChinaNuclearMissileLauncher' becomes Buildable (Ignore_Prerequisites)
  [???] Command button: 'GC_Chem_Command_ConstructGLAPalace' is added to all objects of type 'AirF_AmericaVehicleDozer' in slot number  9  (1-12).
   'GC_Chem_GLAPalace' becomes Buildable (Ignore_Prerequisites)
  [???] Command button: 'Infa_Command_ConstructChinaPropagandaCenter' is added to all objects of type 'AirF_AmericaVehicleDozer' in slot number  10  (1-12).
   'Infa_ChinaPropagandaCenter' becomes Buildable (Ignore_Prerequisites)

All that works but the Warfactory, and the air feild.
Here is the map so you can see its not fully done yet.
Look at last post for map.
Annihilationzh
15 years ago

So if i don't use a map.ini it will work online?


Yes.

And is there away to add it without a map.ini?


I've already said no.

This is what i got so far with the dozer how does it look?



This:
  [???] Command button: 'SupW_Command_ConstructAmericaSupplyCenter' is added to all objects of type 'AirF_AmericaVehicleDozer' in slot number  5  (1-12).
   'SupW_AmericaSupplyCenter' becomes Buildable (Ignore_Prerequisites)

Should be just this:
   'AirF_AmericaSupplyCenter' becomes Buildable (Ignore_Prerequisites)

That'll fix the war factory and airfield.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
Distrbd21
  • Distrbd21
  • 67.25% (Friendly)
  • Private Topic Starter
15 years ago
The problems i'm having now is

I can build all of the buildings i added with the command button, but i can build them without have power plant or supply first.
Annihilationzh
15 years ago
The only way to fix that would be to have special conditions and a script to enable every building.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
Distrbd21
  • Distrbd21
  • 67.25% (Friendly)
  • Private Topic Starter
15 years ago
OK so i fixed the supply, war factory, all that.

now how do i fix it so
i can't build the nuke or scud until the Strategy center is built, and the internet center
And how do i fix it so i can get so i don't need to build the Propaganda Center to get the hackers, and the upgrades that are in that?

so say i build the Strategy center, then the internet center, once those are built, then i can build the nuke and scud.

once i get that then the rest should be easy just adding the hackers into the bar and the battle masters to the war factory, and so on.

also is there away in the map.ini file that i can replace the spydron with the battle master upgrade, and the infra minigunner upgrade?
Annihilationzh
15 years ago

now how do i fix it so
i can't build the nuke or scud until the Strategy center is built, and the internet center



*** IF ***
    [???] Player 'player0' has Greater Than or Equal To  1  unit or structure of type 'AirF_AmericaStrategyCenter'
*** THEN ***
   'GC_Chem_GLAScudStorm' becomes Buildable (Ignore_Prerequisites)

It won't work for multiple players, and you'll have to remove the "Ignore_Prerequisites" line from your other script.

And how do i fix it so i can get so i don't need to build the Propaganda Center to get the hackers, and the upgrades that are in that?


You can make the hackers available the same way you made the nuke and scud storm available. You can move the upgrades the same way you added the buildings to the dozer.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
Distrbd21
  • Distrbd21
  • 67.25% (Friendly)
  • Private Topic Starter
15 years ago

now how do i fix it so
i can't build the nuke or scud until the Strategy center is built, and the internet center

Annihilationzh wrote:



*** IF ***
    [???] Player 'player0' has Greater Than or Equal To  1  unit or structure of type 'AirF_AmericaStrategyCenter'
*** THEN ***
   'GC_Chem_GLAScudStorm' becomes Buildable (Ignore_Prerequisites)

It won't work for multiple players, and you'll have to remove the "Ignore_Prerequisites" line from your other script.

And how do i fix it so i can get so i don't need to build the Propaganda Center to get the hackers, and the upgrades that are in that?


You can make the hackers available the same way you made the nuke and scud storm available. You can move the upgrades the same way you added the buildings to the dozer.



sorry to ask but, how do i find all that in the scripts?
Annihilationzh
15 years ago
Player>Owns>player has (comparison) unit type
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
Distrbd21
  • Distrbd21
  • 67.25% (Friendly)
  • Private Topic Starter
15 years ago
so like this?
*** IF ***
    [???] Player 'player0' has Greater Than or Equal To  1  unit or structure of type 'AirF_AmericaStrategyCenter'
*** THEN ***
  [???] Command button: 'SupW_Command_ConstructAmericaPowerPlant' is added to all objects of type 'AirF_AmericaVehicleDozer' in slot number  1  (1-12).
  [???] Command button: 'Lazr_Command_ConstructAmericaPatriotBattery' is added to all objects of type 'AirF_AmericaVehicleDozer' in slot number  7  (1-12).
  [???] Command button: 'Infa_Command_ConstructChinaInternetCenter' is added to all objects of type 'AirF_AmericaVehicleDozer' in slot number  4  (1-12).
  [???] Command button: 'GC_Chem_Command_ConstructGLAScudStorm' is added to all objects of type 'AirF_AmericaVehicleDozer' in slot number  6  (1-12).
  [???] Command button: 'Tank_Command_ConstructChinaNuclearMissileLauncher' is added to all objects of type 'AirF_AmericaVehicleDozer' in slot number  8  (1-12).
  [???] Command button: 'SupW_Command_ConstructAmericaSupplyCenter' is added to all objects of type 'AirF_AmericaVehicleDozer' in slot number  5  (1-12).
  [???] Command button: 'SupW_Command_ConstructAmericaAirfield' is added to all objects of type 'AirF_AmericaVehicleDozer' in slot number  13  (1-12).
  [???] Command button: 'SupW_Command_ConstructAmericaWarFactory' is added to all objects of type 'AirF_AmericaVehicleDozer' in slot number  11  (1-12).
   'GC_Chem_GLAScudStorm' becomes Buildable (Ignore_Prerequisites)
   'Tank_ChinaNuclearMissileLauncher' becomes Buildable (Ignore_Prerequisites)
   'Infa_ChinaInternetCenter' becomes Buildable (Ignore_Prerequisites)
if so the buildings don't work.