XML:BINA/OBJC/CHAR: Difference between revisions

m
no edit summary
m (fixed a link)
mNo edit summary
 
(25 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{XML_OBJC_Header | type=CHAR | prev=WEAP | next=CMBT | name=Character }}
{{XML_OBJC_Header | prev=WEAP | type=CHAR | next=CMBT | name=Character}}


'''general information'''
==General information==
* The xml code on this page is based on onisplit '''v0.9.61.0'''
* The XML code on this page is based on OniSplit '''v0.9.61.0'''
* '''BINACJBOCharacter.oni''' is level specific. (It can be found in edition/GameDataFolder/level''XX''_... )
* '''BINACJBOCharacter.oni''' is level specific (it can be found in AE/AEInstaller/vanilla/level'''X'''_Final.dat).
* An alternative is [[XML:AISA|AISA]].
* An alternative method for creating characters is [[XML:AISA|AISA]].
* All original characters can be seen [http://ssg.oni2.net/subfold/charas/charas.htm HERE.] (The lists include used ONCC, character's BSL name, health, team and BSL function.)
* All original characters can be seen [http://ssg.oni2.net/subfold/charas/charas.htm HERE]. (The lists include the ONCC name, character's BSL name, health, team and attached BSL event function names.)
 
 
'''XML structure'''


==XML structure==
  <?xml version="1.0" encoding="utf-8"?>
  <?xml version="1.0" encoding="utf-8"?>
  <Oni>
  <Oni>
Line 96: Line 94:
{| class="wikitable" width="100%"
{| class="wikitable" width="100%"
!width=200px| XML tag
!width=200px| XML tag
!width=200px| content type
!width=200px| Content type
! description
! Description
|-
|-
|valign=top| <?xml version="1.0" encoding="utf-8"?>
|valign=top| <?xml version="1.0" encoding="utf-8"?>
Line 113: Line 111:
|valign=top| <CHAR Id="3860">
|valign=top| <CHAR Id="3860">
|valign=top| integer
|valign=top| integer
| Id doesn't matter.
| ID doesn't matter. --  For [[XML:ONLV|level import]] use <CHAR>.
|-
|-
| <Header>
| <Header>
Line 121: Line 119:
|valign=top| <Flags>
|valign=top| <Flags>
|valign=top| -
|valign=top| -
| unknown; usually empty
| obsolete
|-
|-
|valign=top| <Position>
|valign=top| <Position>
|valign=top| float x3
|valign=top| float x3
| character is spawned at this xyz-position
| character is spawned at this XYZ position
|-
|-
|valign=top| <Rotation>
|valign=top| <Rotation>
|valign=top| float x3
|valign=top| float x3
| character is spawned with this xyz-rotation, only y is useful
| character is spawned with this XYZ rotation; only Y (facing) is useful
|-
|-
|valign=top| <OSD>
|valign=top| <OSD>
Line 138: Line 136:
|valign=top| flag
|valign=top| flag
| determines some special properties
| determines some special properties
: IsPlayer (1) (if you have two of them then delete one and spawn the other one at same time, if not made simultaneously camera glitch can appear)
: IsPlayer (1) (if you have two of them, and delete one and then spawn the other, if not done simultaneously a camera glitch can appear)
: RandomCostume (2) (flag belongs to [[XML:ONCV|ONCV]])
: RandomCostume (2) (flag belongs to [[XML:ONCV|ONCV]]) Note: if a character has no alternate costumes, a random ONCC will be picked by the engine!
: NotInitiallyPresent (4)
: NotInitiallyPresent (4) (not spawned at level load; must be called from BSL)
: NonCombatant (8)
: NonCombatant (8) (character doesn't fight; character panics if enemy (team) is in range)
: CanSpawnMultiple (16) (needs WasSpawned)
: CanSpawnMultiple (16)
: WasSpawned (32) (...)
: Spawned (32) (unknown)
: Unkillable (64) (character won't loss more life points if it reaches 1, same as BSL command "chr_unkillable")
: Unkillable (64) (character won't lose more HP if it reaches 1; same as BSL command "chr_unkillable")
: InfiniteAmmo (128) (Raiden: "You got enough ?" Snake points to his head. "Infinite ammo...")
: InfiniteAmmo (128) (Raiden: "You got enough?" Snake points to his head. "Infinite ammo...")
: Omniscient (256) (useless?; tested ideas: doesn't unlock moves for player)
: Omniscient (256) (AI will not forget having seen an enemy, and will know enemy's position even if they are not visible to it)
: HasLSI (512) (this character drops an level specific item like truck keys in [[CHAPTER_14_._DAWN_OF_THE_CHRYSALIS|level 19]])
: HasLSI (512) (this character drops a [[LSI|level specific item]])
: Boss (1024) (used for boss mode fights. makes the AI ignore this character unless there is nobody else around)
: Boss (1024) (makes the AI prefer to attack the player; used for Muro in final battle if Griffin's group is present)
: UpgradeDifficulty (2048) (spawns a stronger enemy if you play on medium or hard)
: UpgradeDifficulty (2048) (spawns a stronger enemy if you play on Normal or Hard)
: NoAutoDrop (4096) (doesn't drop "used" shield, "used" invisibility and LSI when killed)
: NoAutoDrop (4096) (doesn't drop "used" shield, "used" invisibility and LSI when killed)


'''After onisplit v0.9.54.0, merged integer flags can appear.'''
'''After OniSplit v0.9.54.0, merged integer flags can appear.''' Let's say you encounter a 6180: then it's actually 4096 + 2048 + 32 + 4.
 
Let's say you encounter a 6180, then it's actually 4096 + 2048 + 32 + 4.
|-
|-
|valign=top| <Class>
|valign=top| <Class>
|valign=top| char[64]
|valign=top| char[64]
| ONCC file name without file pre- and suffix. Character can change appearance with "chr_set_class".
| ONCC file name without file prefix and suffix. Character can change appearance with "chr_set_class".
|-
|-
|valign=top| <Name>
|valign=top| <Name>
Line 166: Line 162:
|valign=top| <Weapon>
|valign=top| <Weapon>
|valign=top| char[64]
|valign=top| char[64]
| ONWC file name without file pre- and suffix. The character is spawned with that weapon.  
| ONWC file name without file prefix and suffix. The character is spawned with that weapon.  


Original weapon classes:
Original weapon classes:
Line 174: Line 170:
: w4_psm (phase stream projector)
: w4_psm (phase stream projector)
: w5_sbg (super ball gun)
: w5_sbg (super ball gun)
: w6_vdg (shocker)
: w6_vdg (van de graaff pistol)
: w7_scc (scram cannon (mini-rockets))
: w7_scc (scram cannon (mini-rockets))
: w8_mbo (mercury bow)
: w8_mbo (mercury bow)
: w9_scr (screamer gun)
: w9_scr (screamer gun)
: w10_sni (Mukade's firework)
: w10_sni (Mukade's fireball)
: w11_ba1 (Barabas' gun)
: w11_ba1 (Barabas' gun)
: w12_ba2 (-)
: w12_ba2 (-)
Line 196: Line 192:
|valign=top| <AdditionalHealth>
|valign=top| <AdditionalHealth>
|valign=top| integer
|valign=top| integer
| ''main'' health is stored in ONCC, "additional health" will be added to that ''main'' health; also negative value possible here (which would then reduce main health)
| ''Base'' health is stored in ONCC; AdditionalHealth will be added to that base health; a negative value is allowed here, which would reduce base health
|-
|-
|valign=top| <Job>
|valign=top| <Job>
Line 209: Line 205:
: <font color="#777">Guard (never used in Oni)</font>
: <font color="#777">Guard (never used in Oni)</font>
: Patrol
: Patrol
: <font color="#777">Teambattle (never used in Oni)</font>
: <font color="#777">Team Battle (never used in Oni)</font>
: Combat (not tested)
: Combat (not tested)
: Melee (not tested)
: Melee (not tested)
Line 218: Line 214:
|valign=top| [[XML:BINA/OBJC/PATR|<PatrolPathId>]]
|valign=top| [[XML:BINA/OBJC/PATR|<PatrolPathId>]]
|valign=top| integer
|valign=top| integer
|
| Use '''''<Type>None''''' if you don't want a character to have a patrol path; otherwise the character won't fight.
|-
|-
|valign=top| <Behaviors>
|valign=top| <Behaviors>
Line 250: Line 246:
|valign=top| <MeleeId>
|valign=top| <MeleeId>
|valign=top| flag
|valign=top| flag
| [[OBD:BINA/OBJC/MELE#All_profiles_sorted_by_ID|here are all melee IDs sorted by ID]]
| [[XML:BINA/OBJC/MELE#Melee_IDs|here are all melee IDs sorted by ID]]
|-
|-
|valign=top| <NeutralId>
|valign=top| <NeutralId>
|valign=top| flag
|valign=top| flag
|[[OBD:BINA/OBJC/NEUT|...]] (no overview so far)
|[[XML:BINA/OBJC/NEUT|these profiles are level-specific]]
|-
|-
|valign=top| <Inventory>
|valign=top| <Inventory>
Line 263: Line 259:
|valign=top| integer
|valign=top| integer
|
|
: <Use> (Player becomes spawned with ammo clips, here you set the amount.)
: <Use> (Player is spawned with this many ammo clips.)
: <Drop> (AI drop these items when defeated.)
: <Drop> (AI drops these items when defeated.)
|-
|-
|valign=top| <EnergyCell>
|valign=top| <EnergyCell>
Line 275: Line 271:
|valign=top| integer
|valign=top| integer
|  
|  
: <Use>
: <Use> (AI cannot use hypos.)
: <Drop> (AI cannot use hypos.)
: <Drop>
|-
|-
|valign=top| <Shield>
|valign=top| <Shield>
Line 293: Line 289:
|valign=top| flag
|valign=top| flag
|
|
'''Characters of the same team''' can be made to ''attack'' each other via ai2_attack aiNameAttacker aiNameDefender 1 although melee damage is only dealt when team flags of both characters create a '''[[OBD_talk:BINA/OBJC/CHAR#Teams|hostile match]]'''.
: Konoko
: Konoko
: TCTF
: TCTF
Line 299: Line 296:
: SecurityGuard
: SecurityGuard
: RogueKonoko
: RogueKonoko
: Switzlerland (is melee-immune)
: Switzerland (is melee-immune)
: SyndicateAccessory
: SyndicateAccessory
|-
|-
Line 308: Line 305:
|valign=top| <Alert>
|valign=top| <Alert>
|valign=top| -
|valign=top| -
| [[Tricks_behind_Oni_A.I.|HERE]] you get some helpful information on how to use "Alert" and "Pursuit".
| [[AI|HERE]] you get some helpful information on how to use "Alert" and "Pursuit".
: Lull
: Lull
: Low
: Low
Line 333: Line 330:
|valign=top| <AlarmGroups>
|valign=top| <AlarmGroups>
|valign=top| integer
|valign=top| integer
|It's a bitset32 converted to int32. If Ns bit = TRUE then a bot gets highest alert level by a console command ai2_tripalarm(N)
|It's a bitset32 converted to int32. For any bit ("N") that is 1, the scripting command "ai2_tripalarm N" is called, alerting the AI with that scripting ID
: <AlarmGroups>VAR</AlarmGroups>
: <AlarmGroups>VAR</AlarmGroups>
:: VAR = 2^N1 + 2^N2 + 2^N3 etc.
:: VAR = 2^N1 + 2^N2 + 2^N3 etc.
8,486

edits