reverseArticle="true"
- Aeonic
- Militia Commander
- Posts: 469
- Joined: Sun Jun 14, 2009 1:05 am
- Location: Designing his dream ship.
I've seen reverseArticle="true" on a few reactor definitions. Does anyone know what it does?
Last Cause Of Death: Destroyed by Karl Svalbard's last Lucifer missile, right after I blew him up. And the crowd cheers.


- Periculi
- Fleet Officer
- Posts: 1282
- Joined: Sat Oct 13, 2007 7:48 pm
- Location: Necroposting in a forum near you
Articles are such: "a" "an" "the".
I am not really sure what reverseArticle="true" does, however. But I do think that George explained it somewhere around here and the search is insufficient to the task of locating the answer.
I am not really sure what reverseArticle="true" does, however. But I do think that George explained it somewhere around here and the search is insufficient to the task of locating the answer.
Last edited by Periculi on Mon Jul 06, 2009 7:03 pm, edited 1 time in total.
- Aeonic
- Militia Commander
- Posts: 469
- Joined: Sun Jun 14, 2009 1:05 am
- Location: Designing his dream ship.
Oh, so with no reverseArticle, it would display "SN150 reactor" as such, while with reverseArticle="true" it displays "a SN150 reactor".
On the other hand, having no reverseArticle would display "a chicken", while having reverseArticle="false" would display "chicken".
Correct?
Basically its reversing whether the object is considered a noun or a name? If the first letter is capitalized, it'll treat it as a name, but if it has reverseArticle, it'll reverse that and treat it as a noun, while a noun would then be treated as a name?
On the other hand, having no reverseArticle would display "a chicken", while having reverseArticle="false" would display "chicken".
Correct?
Basically its reversing whether the object is considered a noun or a name? If the first letter is capitalized, it'll treat it as a name, but if it has reverseArticle, it'll reverse that and treat it as a noun, while a noun would then be treated as a name?
Last Cause Of Death: Destroyed by Karl Svalbard's last Lucifer missile, right after I blew him up. And the crowd cheers.


-
- Developer
- Posts: 2998
- Joined: Thu Jul 24, 2003 9:53 pm
- Contact:
To generate an article for a noun, the game looks at the first letter of the noun. If the noun starts with a vowel, the article is "an":
An omnidirectional laser cannon
An Iocrym veil
An Urak howitzer
If the first letter is a consonant, the article is "a":
A laser cannon
A class I deflector
A segment of titanium plate
Sometimes, though, that rule doesn't work. Sometimes a noun that starts with a vowel should have the "a" article. Sometimes, a noun that starts with a consonant should have the "an" article:
An SN2500 reactor
A uranium rod
An x-ray laser cannon
An omnidirectional laser cannon
An Iocrym veil
An Urak howitzer
If the first letter is a consonant, the article is "a":
A laser cannon
A class I deflector
A segment of titanium plate
Sometimes, though, that rule doesn't work. Sometimes a noun that starts with a vowel should have the "a" article. Sometimes, a noun that starts with a consonant should have the "an" article:
An SN2500 reactor
A uranium rod
An x-ray laser cannon
- Aury
- Fleet Admiral
- Posts: 5510
- Joined: Tue Feb 05, 2008 1:10 am
- Location: At the VSS Shipyards in the frontier, designing new ships.
thanks ^^
I actually did need something to do this.
How would we get an article like "the" though?
I actually did need something to do this.
How would we get an article like "the" though?
(shpOrder gPlayership 'barrelRoll)
<New tutorials, modding resources, and official extension stuff coming to this space soon!>
<New tutorials, modding resources, and official extension stuff coming to this space soon!>
Code: Select all
definiteArticle="true"
Code: Select all
<Names definiteArticle="true">
superfreighter St. Aoki; superfreighter St. Beatrice; ...
</Names>
Hmm...
- Aury
- Fleet Admiral
- Posts: 5510
- Joined: Tue Feb 05, 2008 1:10 am
- Location: At the VSS Shipyards in the frontier, designing new ships.
ok, thanks! I'll have to check to see if that will apply to items
(shpOrder gPlayership 'barrelRoll)
<New tutorials, modding resources, and official extension stuff coming to this space soon!>
<New tutorials, modding resources, and official extension stuff coming to this space soon!>