XML:AISA: Difference between revisions

97 bytes removed ,  9 November 2012
fixing links
mNo edit summary
(fixing links)
Line 1: Line 1:
{{XML_File_Header | type=AISA | prev=AGQR | next=AITR | name=AI Character Setup Array | family=Generic | align=center}}
{{XML_File_Header | type=AISA | prev=AGQR | next=AITR | name=AI Character Setup Array }}
 
{| style="margin-left:auto; margin-right:auto;"
| The xml code on this page is based on onisplit '''v0.9.61.0'''
|}
 


__TOC__


'''general information'''
===general information===
* The xml code on this page is based on onisplit '''v0.9.61.0'''
* AISAlevel'''''N'''''_scripts.oni is level specific. (It can be found in edition/GameDataFolder/level'''''N'''''_... )
* AISAlevel'''''N'''''_scripts.oni is level specific. (It can be found in edition/GameDataFolder/level'''''N'''''_... )
* AISA is still used for a few cutscene characters, even though [[OBD_talk:BINA/OBJC/CHAR#XML|BINACJBOCharacters]] has made it redundant.
* AISA is still used for a few cutscene characters, even though [[XML:BINA/OBJC/CHAR|BINACJBOCharacters]] has made it redundant.
* if you upload an AE package containing an AISA file include also the corresponding [[XML:ONLV|ONLV]] or else Oni will crash
* if you upload an AE package containing an AISA file include also the corresponding [[XML:ONLV|ONLV]] or else Oni will crash




'''XML structure'''
===file structure===


  <?xml version="1.0" encoding="utf-8"?>
  <?xml version="1.0" encoding="utf-8"?>
Line 50: Line 47:




===tags===
{| class="wikitable" width="100%"
{| class="wikitable" width="100%"
!width=150px| XML tag
!width=150px| XML tag
Line 97: Line 95:
| flag where character is spawned; must be a valid flag ID (from the BINACJBOFlag collection)
| flag where character is spawned; must be a valid flag ID (from the BINACJBOFlag collection)


In the level Atmospheric Conversion Center (exterior) Bungie used [[OBD_talk:FILM|FILM]] files to teleport AI Konoko and Griffin.
In the level Atmospheric Conversion Center (exterior) Bungie used [[XML:FILM|FILM]] files to teleport AI Konoko and Griffin.




;Missing [[OBD_talk:BINA/OBJC/FLAG|FLAG]] issue
;Missing [[XML:BINA/OBJC/FLAG|FLAG]] issue


If the flag ID requested by chr_create is obsolete or otherwise unavailable, chr_create will fail with a message to the console.
If the flag ID requested by chr_create is obsolete or otherwise unavailable, chr_create will fail with a message to the console.
Line 130: Line 128:




;Missing [[OBD_talk:ONCC|ONCC]] issue
;Missing [[XML:ONCC|ONCC]] issue


Missing ONCCs are resolved by picking the first available ONCC. If the eventually used ONCC is invalid (e.g., if it has a missing TRAC or if its ONCV is missing from ONVL), Oni will crash. This applies to [[OBD_talk:BINA/OBJC/CHAR#XML|CHAR]] a.k.a. ai2_spawn, AISA a.k.a. chr_create, and ai2_chump (hardcoded to spawn ONCCstriker_easy_1).
Missing ONCCs are resolved by picking the first available ONCC. If the eventually used ONCC is invalid (e.g., if it has a missing TRAC or if its ONCV is missing from ONVL), Oni will crash. This applies to [[XML:BINA/OBJC/CHAR|CHAR]] a.k.a. ai2_spawn, AISA a.k.a. chr_create, and ai2_chump (hardcoded to spawn ONCCstriker_easy_1).
|-
|-
|valign=top| <Scripts>
|valign=top| <Scripts>
Line 148: Line 146:
;Inventory and script events.
;Inventory and script events.


Since nearly all the inventory fields are ignored, AISA characters can't be created with inventory items, and so the "out of ammo" script function is irrelevant. The inventory can still be set with scripting (items that the character can use, not what they drop when killed). The "no path" function doesn't seem to work, neither does it seem to work for [[OBD_talk:BINA/OBJC/CHAR#XML|CHAR]].
Since nearly all the inventory fields are ignored, AISA characters can't be created with inventory items, and so the "out of ammo" script function is irrelevant. The inventory can still be set with scripting (items that the character can use, not what they drop when killed). The "no path" function doesn't seem to work, neither does it seem to work for [[XML:BINA/OBJC/CHAR|CHAR]].
|-
|-
|valign=top| <WeaponClass>
|valign=top| <WeaponClass>
Line 172: Line 170:
| percentage; 0 - empty, 100 - fully loaded ?
| percentage; 0 - empty, 100 - fully loaded ?
|}
|}
{{XML}}
8,018

edits