Jump to content

XML:ONCV: Difference between revisions

m
wording
(copy-edit/rewrite)
m (wording)
Line 22: Line 22:
  </Oni>
  </Oni>


The ParentVariant is how the pool of variants is constructed. The Elite Striker (easy) has three variants in appearance, described by ONCCelite_easy_1, ONCCelite_easy_2 and ONCCelite_easy_3. Each of these has a Variant tag set to "ONCVelite_easy". When Oni spawns an easy Elite Striker, it looks at all the ONCCs linking to this ONCV and picks one at random.
The <ParentVariant> is how the pool of variants is constructed. The Elite Striker (easy) has three variants in appearance, described by ONCCelite_easy_1, ONCCelite_easy_2 and ONCCelite_easy_3. Each of these has a Variant tag set to "ONCVelite_easy". When Oni spawns an easy Elite Striker, it looks at all the ONCCs linking to this ONCV and picks one at random.


In ONCVbarabus.xml, we can see that the boss character Barabas doesn't use the Hard difficulty upgrade feature, since there is only one Barabas:
In ONCVbarabus.xml, we can see that the boss character Barabas doesn't use the Hard difficulty upgrade feature, since there is only one Barabas:
Line 35: Line 35:
  </Oni>
  </Oni>


Since the ONCC for Barabas has the Variant "ONCVbarabus", and no other ONCC does, only one possible appearance for Barabas will spawn when he appears in levels.
Since the ONCC for Barabas has <ParentVariant> "ONCVbarabus", and no other ONCC does, there is only one possible appearance for Barabas when he spawns in levels.


{{XML}}
{{XML}}