An advice for future NP
#1
Posted 22 November 2007 - 05:10 AM
Make various type of factorys for different units. Like tanks built from weaponfactory, ships built from navalyard, in another words, they can be built independently at same time.
For exanple, TANK1 cost $50000, TANK2 cost $500, the are build form GAWEAP, if I build TANK1 first, it will take a lot of time to finish this task, so building task of TANK2 will be put off. But if I hanv another weaponfactorys: NEWWEAP, I set some specific code to TANK1 and TANK1 like this:
[TANK1]
...............
Prerequisite=NEWWEAP
BuildFrom=NEWWEAP ; the specific code to set relationship between tanks and weaponfactorys.
[TANK2]
...............
BuildFrom=GAWEAP
[NEWWEAP] ; Copy GAWEAP's code simply
WeaponsFactory=yes
Factory=UnitType
and then, I can build them independently at same time, NEWWEAP can only build TANK1, GAWEAP can olly build TANK2 and other units..
#2
Posted 22 November 2007 - 08:12 AM
Then make [NEWWEAP] be owner=Allide,Gremany...+bigtanks
I am not 100% shure, but it's something like that
#3
Posted 22 November 2007 - 08:58 AM
World Domination Status: ▾2.7%
#4
Posted 23 November 2007 - 09:38 AM
AirCraft
Building
Units
Infantry
Yes, I won't do new types because it's need a lot of time and work.
You need to edit a lot of code and at the you will very buggy product.
#5
Posted 23 November 2007 - 03:19 PM
; Factory = type of object to build [InfantryType, AircraftType, UnitType, BuildingType, VesselType] (def=none)
VesselType appears to be leftover from RA1 and does not seemed to work anymore, too bad.
#6 Guest_Guest_*
Posted 23 November 2007 - 06:49 PM
#7
Posted 23 November 2007 - 11:45 PM
#8
Posted 24 November 2007 - 10:40 AM
Each house have a 6th building queues in YR: Building,Building defense, Infantry, Units, Aircraft, Ships.
A building have tags "Factory=UnitType" and "WeaponsFactory=yes" , so it is a weapon factory, it can build units in [VehicleTypes] registration section. If I add a tag "Naval=yes" to it, it can build unit with tag "Naval=yes" only.
So, I think VK can make some tags like "Naval=yes" to partition different unit types which in the same registration section, and use different factory type to build them.
e.g. :
[UnitTypes] ;register some types by MODers
0=Normal ;default type for ordinary unit such as tanks
1=Naval ;for ships
2=NewType1 ;added by MODers as their wish
..................
[GAWEAP]
BuildType=Normal ;defaule is Normal
[NEWWEAP]
BuildType=NewType1
[GAYARD]
BuildType=Naval
[MTNK] ;only built by GAWEAP
UnitType=Normal ;default is Normal
[NEWTANK] ;only built by NEWWEAP
UnitType=NewType1
[CARRIER] ;only built by GAYARD
UnitType=Naval
#9
Posted 24 November 2007 - 01:11 PM
Each house have a 6th building queues in YR: Building,Building defense, Infantry, Units, Aircraft, Ships.
A building have tags "Factory=UnitType" and "WeaponsFactory=yes" , so it is a weapon factory, it can build units in [VehicleTypes] registration section. If I add a tag "Naval=yes" to it, it can build unit with tag "Naval=yes" only.
So, I think VK can make some tags like "Naval=yes" to partition different unit types which in the same registration section, and use different factory type to build them.
e.g. :
[UnitTypes] ;register some types by MODers
0=Normal ;default type for ordinary unit such as tanks
1=Naval ;for ships
2=NewType1 ;added by MODers as their wish
..................
[GAWEAP]
BuildType=Normal ;defaule is Normal
[NEWWEAP]
BuildType=NewType1
[GAYARD]
BuildType=Naval
[MTNK] ;only built by GAWEAP
UnitType=Normal ;default is Normal
[NEWTANK] ;only built by NEWWEAP
UnitType=NewType1
[CARRIER] ;only built by GAYARD
UnitType=Naval
this is a good idea .i think this way not very hard!!!
#10
Posted 24 November 2007 - 03:33 PM
Edited by Ryo.Saite, 24 November 2007 - 03:34 PM.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users