Hi guys
Simple question : How can I set every value in a type to 0? The problem is, I have this code here:
rem technology type
type tech
rem active or not
MetalMineActive as boolean
CrystalMineActive as boolean
DeuteriumSynthActive as boolean
SolarPlantActive as boolean
FusionReactorActive as boolean
RoboticsFactoryActive as boolean
NaniteFactoryActive as boolean
ShipyardActive as boolean
MetalStorageActive as boolean
CrystalStorageActive as boolean
DeuteriumTankActive as boolean
ResearchLabActive as boolean
TerraformerActive as boolean
MissileSiloActive as boolean
EspionageTechActive as boolean
ComputerTechActive as boolean
WeaponTechActive as boolean
ShieldTechActive as boolean
ArmorTechActive as boolean
EnergyTechActive as boolean
HyperspaceTechActive as boolean
CombustionDriveActive as boolean
ImpulseDriveActive as boolean
HyperspaceDriveActive as boolean
LaserTechActive as boolean
IonTechActive as boolean
PlasmaTechActive as boolean
IntergalacticResearchNetworkActive as boolean
GravitonTechActive as boolean
SmallCargoActive as boolean
LargeCargoActive as boolean
LightFighterActive as boolean
HeavyFighterActive as boolean
CruiserActive as boolean
BattleCruiserActive as boolean
ColonyShipActive as boolean
RecyclerActive as boolean
EspionageProbeActive as boolean
BomberActive as boolean
SolarSatelliteActive as boolean
DestroyerActive as boolean
DeathStarActive as boolean
RocketLauncherActive as boolean
LightLaserActive as boolean
HeavyLaserActive as boolean
GaussCannonActive as boolean
IonCannonActive as boolean
PlasmaTurretActive as boolean
SmallShieldActive as boolean
LargeShieldActive as boolean
AntiBallisticMissileActive as boolean
InterplanetaryMissileActive as boolean
LunarBaseActive as boolean
SensorPhalanxActive as boolean
JumpGateActive as boolean
rem levels/amounts
MetalMine as byte
CrystalMine as byte
DeuteriumSynth as byte
SolarPlant as byte
FusionReactor as byte
RoboticsFactory as byte
NaniteFactory as byte
Shipyard as byte
MetalStorage as byte
CrystalStorage as byte
DeuteriumTank as byte
ResearchLab as byte
Terraformer as byte
MissileSilo as byte
EspionageTech as byte
ComputerTech as byte
WeaponTech as byte
ShieldTech as byte
ArmorTech as byte
EnergyTech as byte
HyperspaceTech as byte
CombustionDrive as byte
ImpulseDrive as byte
HyperspaceDrive as byte
LaserTech as byte
IonTech as byte
PlasmaTech as byte
IntergalacticResearchNetwork as byte
GravitonTech as byte
SmallCargo as byte
LargeCargo as byte
LightFighter as byte
HeavyFighter as byte
Cruiser as byte
BattleCruiser as byte
ColonyShip as byte
Recycler as byte
EspionageProbe as byte
Bomber as byte
SolarSatellite as byte
Destroyer as byte
DeathStar as byte
RocketLauncher as byte
LightLaser as byte
HeavyLaser as byte
GaussCannon as byte
IonCannon as byte
PlasmaTurret as byte
SmallShield as byte
LargeShield as byte
AntiBallisticMissile as byte
InterplanetaryMissile as byte
LunarBase as byte
SensorPhalanx as byte
JumpGate as byte
endtype
global dim EN_Technology(11) as tech
Isn't there a way to say
EN_Technology(0)=0? Or do I really have to write
EN_Technology(0).MetalMineActive=0
EN_Technology(0).CrystalMineActive=0
EN_Technology(0).DeuteriumSynthActive=0
EN_Technology(0).SolarPlantActive=0
etc...
?
TheComet