How does the game know that "li_n_dreadnought_d25"
When a zone encounter has decided which faction of ships it'll spawn in from a given ShipClass, how does it know which ships belong to the faction?
Whoa. That was a mouthful. Let me provide an example from my own INI's for clarity. Let us follow the breadcrumb trail to insanity...
---8<---
I've defined this Liberty Navy encounter in LI01's Manhattan zone:
<pre><font size=1 face=Courier><font size=1 face=Courier><font size=1 face=Courier>encounter = area_battleship, 19, 1.000000
faction = li_n_grp, 1.00000 </font> </font> </font></pre>
LI01 also has the following EncounterParameters set:
<pre><font size=1 face=Courier><font size=1 face=Courier><font size=1 face=Courier>[EncounterParameters
nickname = area_battleship
filename = missions\encounters\area_battleship.ini </font> </font> </font></pre>
area_battleship.ini requests a ship to be spawned of class "sc_battleships":
<pre><font size=1 face=Courier><font size=1 face=Courier><font size=1 face=Courier>ship_by_class = 1, 1, sc_battleships </font> </font> </font></pre>
shipclasses.ini defines the sc_battleships class to be "class_battleship":
<pre><font size=1 face=Courier><font size=1 face=Courier><font size=1 face=Courier>[ShipClass
nickname = sc_battleships
member = class_battleship </font> </font> </font></pre>
---8<---
To summarize so far, my encounter is asking for a ship to be spawned for the Liberty Navy with a class of "class_battleship". Now here's the interesting part - I have four ships defined in npcships.ini with that class. Here are two:
<pre><font size=1 face=Courier><font size=1 face=Courier><font size=1 face=Courier>[NPCShipArch
nickname = li_n_dreadnought_d25
loadout = li_n_li_dreadnought
level = d19
ship_archetype = li_dreadnought
pilot = cruiser_default
state_graph = CRUISER
npc_class = lawful, class_battleship, d19
[NPCShipArch
nickname = rh_n_battleship_d25
loadout = rh_battleship
level = d19
ship_archetype = rh_battleship
pilot = cruiser_default
state_graph = CRUISER
npc_class = lawful, class_battleship, d19 </font> </font> </font></pre>
As expected, the "li_n_dreadnought_d25" spawns. If I change the zone's encounter faction to "rh_n_grp", then the "rh_n_battleship_d25" will spawn. This is all fine and dandy, but what if I want to allow the Liberty Rogues to pilot a battleship?
How does the game know that "li_n_dreadnought_d25" belongs to "li_n_grp"?
Edited by - Thundercleese on 01-04-2003 15:55:30
Edited by - Thundercleese on 01-04-2003 16:34:10