Ok, I'm asking for help. I've been trying to figure out the code for weeks and either I just haven't been able to get enough time to figure this out or I'm just bad at figuring out code. I know exactly what I want it to do, its just getting it to do what I want thats hard!
I want all systems/planets with populations greater than 10,000 to have names, and all with less to have numbers. I want subsectors to have different names than planets and systems, and, if possible, suns to have different names (or different name endings) than planets.
Is this possible? Any help or advice would be greatly appreciated!
Deinjur?
Danger is my middle name...
Comments
Like, uninhabitable systems are numbered/default named, and habitable and hospitable planets get named?
So here's the next one: there is a Habitability and a Population variable in the AS naming generator. Can I somehow program the generator thus: if system is populated, use SystemName, if not populated, use DefaultName? This is what I've been trying to make work:
Table: GetName
[when]{$Population} > 0[do][@{SystemName}]
[when]{$Population} = 0[do][@{DefaultName}] [end]
But its not working. Any suggestions anyone?
Table: GetName
[when]{$Population} = NotPopulated[do][@{DefaultName}]
[when]{$Population} = Populated[do][@{SystemName}] [end]
Table: GetName
[when]{$Population} = NotPopulated[do][@DefaultName]
[when]{$Population} = Populated[do][@SystemName] [end]
[when]Populated = NotPopulated[do]SS00-070107
[when]Populated = Populated[do]Udiko
So it looks like its doing the basic job of telling the generator when to use SystemName or DefaultName (and yes, I changed the DefaultNames a little)... but I don't know how to get rid of the rest of the text... PLUS, although the generator is saying that it is not populated, AS is showing some of the DefaultNamed systems as populated... But I'm not trying to fix this yet. One thing at a time.
Any help/tips on what I'm missing here? How do I make the name generator lose the programming text?
But you dont need When's - thats what tables are for.
Table: GetName
[@{$Population}]
Table: NotPopulated
[@{$BodyType}Default][@{$Habitability}]{$PositionXPad}{$PositionYPad}{$PositionZPad}
Table: StarDefault
ST
Table: Multiple Star SystemDefault
MS
Table: Close Multiple SystemDefault
CM
Table: TerrestrialDefault
TD
Table: Gas GiantDefault
GG
Table: Space StationDefault
SS
Table: White DwarfDefault
WD
Table: Neutron StarDefault
NT
Table: Black HoleDefault
BH
Table: NebulaDefault
NB
Table: Inhospitable
00
Table: Habitable
01
Table: Hospitable
11
Table: Populated
(10,000+ System Names I created separately in another name generator)