00 Nobody I though of a way to give the Militia the different ships, but I'll need your help on this (the code bit, it all good in theory but I don't know how to code it so why I need your help
). Just as I changed the prerequisites for the shipyards to have multiple prerequisites, what I could do is put the extra ships in the GLA shipyard along with all the GLA ships and change the prerequisites round for all the ship
:
So have
;Give Militia different ships----------------------------------------
CommandSet GLANavalYardCommandSet
1 = Command_ConstructGLARocketBoat
2 = Command_ConstructGLAQuadBoat
3 = Command_ConstructGLAPTBoat
4 = Command_ConstructChinaBoatBattleShip
5 = Command_ConstructAmericaVehicleAACruiser
13 = Command_SetRallyPoint
14 = Command_Sell
End
Three to 5 are the ships I want for the militia and so the prerequisites to the ships as follows
GLARocketBoat prerequisites = GLAPalace
GLAQuadBoat prerequisites = GLAPalace
GLAPTBoat prerequisites = GLAPalace MilitiaResistanceHQ
ConstructChinaBoatBattleShip = ChinaPropagandaCenter MilitiaResistanceHQ
ConstructAmericaVehicleAACruiser = AmericaStrategyCenter MilitiaResistanceHQ
As I have now made it so all shipyard need higher level buildings (GLAPalace's, ChinaPropagandaCenter's, AmericaStrategyCenter's and the MilitiaResistanceHQ) to build as ships are quite powerful and have an advantage of being on the water.
This would enable so it would not muck up any of the sides and it would only allow the militia to build the ships I want them to be able to and GLA only able to build there original ships
. I think this can be done could you just give me an example of how to put the prerequisites for a ships, I am sure it would be similar to that of the vehicle although each ships code would be different
.
Also I have tried changing the infantry general's code but still cannot get his dozer to add the shipyard as when I put in his code it crashes the game upon loading the map. I tired with and without the Upgrade CommandSet and when I had the upgrade command set I tried:
CommandSet Infa_ChinaDozerCommandSetUpgraded
CommandSet Infa_ChinaDozerCommandSetUpgradedSEC
CommandSet Infa_ChinaDozerCommandSetSECUpgraded
and
CommandSet Infa_ChinaDozerCommandSetSECUpgradedSEC
all unsuccessful
.
Here is all the code bellow
;China-Infantry General----------------------------------------
Object Infa_ChinaVehicleDozer
DisplayName = OBJECT:Dozer
Side = ChinaInfantryGeneral
EditorSorting = VEHICLE
TransportSlotCount = 5;how many "slots" we take in a transport (0 == not transportable)
BuildCost = 1000
BuildTime = 5.0; in seconds
VisionRange = 200
ShroudClearingRange = 200
WeaponSet
Conditions = None
Weapon = PRIMARY None
End
WeaponSet
Conditions = MINE_CLEARING_DETAIL
Weapon = PRIMARY DozerMineDisarmingWeapon
End
ArmorSet
Conditions = None
Armor = DozerArmor;Special Explosion-Proof Armor
DamageFX = TankDamageFX
End
CrusherLevel = 2;What can I crush?: 1 = infantry, 2 = trees, 3 = vehicles
CrushableLevel = 2;What am I?: 0 = for infantry, 1 = for trees, 2 = general vehicles
CommandSet = Infa_ChinaDozerCommandSetSEC
End
CommandSet Infa_ChinaDozerCommandSetSEC
1 = Infa_Command_ConstructChinaPowerPlant
2 = Infa_Command_ConstructChinaInternetCenter
3 = Infa_Command_ConstructChinaBarracks
4 = Infa_Command_ConstructChinaAirfield
5 = Infa_Command_ConstructChinaSupplyCenter
6 = Infa_Command_ConstructChinaPropagandaCenter
7 = Infa_Command_ConstructChinaBunker
8 = Infa_Command_ConstructChinaSpeakerTower
9 = Infa_Command_ConstructChinaGattlingCannon
10 = Infa_Command_ConstructChinaNuclearMissileLauncher
11 = Infa_Command_ConstructChinaWarFactory
12 = Infa_Command_ConstructChinaCommandCenter
13 = Infa_Command_ConstructChinaNavalYard
14 = Command_DisarmMinesAtPosition
End
CommandSet Infa_ChinaDozerCommandSetUpgraded
1 = Infa_Command_ConstructChinaPowerPlant
2 = Infa_Command_ConstructChinaInternetCenter
3 = Infa_Command_ConstructChinaBarracks
4 = Infa_Command_ConstructChinaAirfield
5 = Infa_Command_ConstructChinaSupplyCenter
6 = Infa_Command_ConstructChinaPropagandaCenter
7 = Infa_Command_ConstructChinaBunker2
8 = Infa_Command_ConstructChinaSpeakerTower
9 = Infa_Command_ConstructChinaGattlingCannon
10 = Infa_Command_ConstructChinaNuclearMissileLauncher
11 = Infa_Command_ConstructChinaWarFactory
12 = Infa_Command_ConstructChinaCommandCenter
13 = Command__ConstructChinaNavalYard
14 = Command_DisarmMinesAtPosition
End
Do you know what the problem is and can you test it for yourself
.
Edited by THEEVERGOD, 17 May 2007 - 11:41 PM.