Does anyone know how to access the numerical constants in the non-unit database files?
If you want to get the constants for the unit.txt file you can ues this method:
UnitRecord[0] = UnitDB(UNIT_WARRIOR);
tmpArm = UnitDB(UnitRecord[0]).Armor;
But the unit database file is set up like this:
## UNIT 0
UNIT_ABOLITIONIST {
...
Firepower 1
Armor 1
...
}
How would you access the constants in the terrain file when the values there are set up like this?
TERRAIN_FOREST {
EnvBase {
Score 50
Food 10
Shield 5
Gold 10
}
}
I noticed in the Greatlibrary.txt file, they just wrote in the values by hand, but I'm hoping there is a way for SLIC to access the information without needing to be told what the values are.
If you want to get the constants for the unit.txt file you can ues this method:
UnitRecord[0] = UnitDB(UNIT_WARRIOR);
tmpArm = UnitDB(UnitRecord[0]).Armor;
But the unit database file is set up like this:
## UNIT 0
UNIT_ABOLITIONIST {
...
Firepower 1
Armor 1
...
}
How would you access the constants in the terrain file when the values there are set up like this?
TERRAIN_FOREST {
EnvBase {
Score 50
Food 10
Shield 5
Gold 10
}
}
I noticed in the Greatlibrary.txt file, they just wrote in the values by hand, but I'm hoping there is a way for SLIC to access the information without needing to be told what the values are.
Comment