Difference between revisions of "HowTo:Edit faction relationships"
(→Sample file: added reduced sample file) |
m (navbar continuity) |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{NAV_Manual | | {{NAV_Manual | | ||
| previous=[[HowTo:Add Conversations|Add Conversations]] | | previous=[[HowTo:Add Conversations|Add Conversations]] | ||
− | | up=[[ | + | | up=[[HowTos]] |
− | | next=[[ | + | | next=[[Development:Campaigns|Edit Campaigns]] |
}} | }} | ||
---- | ---- | ||
− | = EDIT FACTION RELATIONSHIPS = | + | =EDIT FACTION RELATIONSHIPS= |
− | == Sample file == | + | ==Sample file== |
This sample file has been grabbed from the 0.4.x CVS <code>factions.xml</code> file (2005 03 31) and reduced to only a few factions (tha main ones are: privateer, confed, aera). | This sample file has been grabbed from the 0.4.x CVS <code>factions.xml</code> file (2005 03 31) and reduced to only a few factions (tha main ones are: privateer, confed, aera). | ||
<pre> | <pre> | ||
Line 43: | Line 43: | ||
</pre> | </pre> | ||
− | = See also = | + | ==XML schema description== |
+ | ''The syntax is mostly straight-forward, so this description is not yet completed. Just see for yourself:'' | ||
+ | * <code><'''Factions'''> ... </Factions></code> - {{Fixme}} | ||
+ | ** <code><'''Faction'''> ... </Faction></code> ('''repeatable''') - {{Fixme}} | ||
+ | *** <code>name</code> - {{Fixme}} | ||
+ | *** <code>logoRGB</code> - {{Fixme}} | ||
+ | *** <code>secLogoRGB</code> - {{Fixme}} | ||
+ | *** <code><'''stats''' /></code> ('''repeatable''') ('''optional''') - {{Fixme}} | ||
+ | **** <code>name</code> - Name of the faction you want to specify the relationship. See <code>relation</code> below. | ||
+ | **** <code>relation</code> - Relationship of the faction in the <code><Faction></code> tag to the one defined in '''this''' <code>name</code> tag. | ||
+ | *** <code><'''CommAnimation'''> </CommAnimation> </code> ('''optional''') - {{Fixme}} | ||
+ | **** <code><'''MoodAnimation''' /></code> - {{Fixme}} | ||
+ | ***** <code>name</code> - {{Fixme}} | ||
+ | ***** <code>sex</code> - {{Fixme}} | ||
+ | |||
+ | =See also= | ||
+ | * [http://vegastrike.svn.sourceforge.net/viewvc/vegastrike/trunk/data/factions.xml?content-type=text%2Fplain Most recent <code>factions.xml</code> file] | ||
---- | ---- | ||
{{NAV_Manual | | {{NAV_Manual | | ||
| previous=[[HowTo:Add Conversations|Add Conversations]] | | previous=[[HowTo:Add Conversations|Add Conversations]] | ||
− | | up=[[ | + | | up=[[HowTos]] |
− | | next=[[ | + | | next=[[Development:Campaigns|Edit Campaigns]] |
}} | }} | ||
− | [[Category: | + | [[Category:HowTos|Edit faction relationships]] |
[[Category:Development|Edit faction relationships]] | [[Category:Development|Edit faction relationships]] |
Latest revision as of 11:49, 19 September 2010
Add Conversations | HowTos | Edit Campaigns |
EDIT FACTION RELATIONSHIPS
Sample file
This sample file has been grabbed from the 0.4.x CVS factions.xml
file (2005 03 31) and reduced to only a few factions (tha main ones are: privateer, confed, aera).
<Factions> <Faction name="neutral" logoRGB="logos/confedPri.png" logoSec="logos/confedSec.png"/> <Faction name="privateer" logoRGB="logos/privateerPri.png" secLogoRGB="logos/privateerSec.png" contraband="contraband" sparkred=".4" sparkgreen=".4" sparkblue="1"> <stats name="privateer" relation="0"/> <stats name="confed" relation=".2"/> <stats name="aera" relation="-.5"/> <Explosion name="explosion_orange.ani"/> <!-- <CommAnimation> <MoodAnimation name="explosion_orange.ani" sex="0"/> </CommAnimation> --> </Faction> <Faction name="confed" logoRGB="logos/confedPri.png" secLogoRGB="logos/confedSec.png" contraband="contraband" sparkred="0" sparkgreen="0" sparkblue="1"> <stats name="privateer" relation=".2"/> <stats name="confed" relation="1"/> <stats name="aera" relation="-1"/> <Explosion name="explosion_orange.ani"/> <!-- <CommAnimation> <MoodAnimation name="explosion_orange.ani" sex="0"/> </CommAnimation> --> </Faction> <Faction name="aera" logoRGB="logos/aeraPri.png" secLogoRGB="logos/aeraSec.png" contraband="contraband" sparkred="0" sparkgreen="1" sparkblue="0"> <stats name="privateer" relation="-.5"/> <stats name="confed" relation="-1"/> <stats name="aera" relation="1"/> <Explosion name="explosion_aera.ani"/> <!-- <CommAnimation> <MoodAnimation name="explosion_aera.ani" sex="0"/> </CommAnimation> --> </Faction> <Faction name="upgrades" logoRGB="logos/confedPri.png" logoSec="logos/confedSec.png"/> <Faction name="planets" logoRGB="logos/confedPri.png" logoSec="logos/confedSec.png"/> </Factions>
XML schema description
The syntax is mostly straight-forward, so this description is not yet completed. Just see for yourself:
-
<Factions> ... </Factions>
- FIXME-
<Faction> ... </Faction>
(repeatable) - FIXME-
name
- FIXME -
logoRGB
- FIXME -
secLogoRGB
- FIXME -
<stats />
(repeatable) (optional) - FIXME-
name
- Name of the faction you want to specify the relationship. Seerelation
below. -
relation
- Relationship of the faction in the<Faction>
tag to the one defined in thisname
tag.
-
-
<CommAnimation> </CommAnimation>
(optional) - FIXME-
<MoodAnimation />
- FIXME-
name
- FIXME -
sex
- FIXME
-
-
-
-
See also
Add Conversations | HowTos | Edit Campaigns |