XML:ONCV: Difference between revisions

24 bytes added ,  7 December 2023
m
linked to new difficulty mode article
(copy-edit/rewrite)
m (linked to new difficulty mode article)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{XML_File_Header | type=ONCV | prev=ONCC | next=ONGS | name=Oni Character Variant}}
{{XML_File_Header | prev=ONCC | type=ONCV | next=ONGS | name=Oni Character Variant}}


==General information==
==General information==
* The XML on this page is based on OniSplit '''v0.9.61.0'''.
* The XML on this page is based on OniSplit '''v0.9.61.0'''.
* '''ONCV*.oni''' files are global. (They can be found in AE/AEInstaller/vanilla/level0_Final.dat.)
* '''ONCV*.oni''' files are global. (They can be found in AE/AEInstaller/vanilla/level0_Final.dat.)
* This file is used to create randomized appearances for a character <u>and</u> to spawn harder character variants on the Hard difficulty level. Every character in the [[XML:BINA/OBJC/CHAR|BINACJBOCharacter]] can have a flag set (RandomCostume) which allows  random selection of an ONCC from the pool formed by links from the ONCCs to a particular ONCV.
* This file is used to create randomized appearances for a character <u>and</u> to spawn harder character variants on the Hard [[Difficulty modes|difficulty level]]. Every character in the [[XML:BINA/OBJC/CHAR|BINACJBOCharacter]] can have a flag set (RandomCostume) which allows  random selection of an ONCC from the pool formed by links from the ONCCs to a particular ONCV.
: This doesn't affect BINACJBOCharacter properties: the character will keep his/her name, melee profile, drop items, etc.
: This doesn't affect BINACJBOCharacter properties: the character will keep his/her name, melee profile, drop items, etc.
* New characters with only one costume should use ONCVany.
* New characters with only one costume should use ONCVany.
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}}