Jump to content

XML:IPge: Difference between revisions

m
copy-edit
m (ignore this)
m (copy-edit)
Line 1: Line 1:
{{XML_File_Header | type=IPge | prev=IGHH | next=Impt | name=Item Page }}
{{XML_File_Header | type=IPge | prev=IGHH | next=Impt | name=Item Page}}


===general information===
==General information==
{|class="wikitable" style="float:right"
{|class="wikitable" style="float:right"
|width=160px| '''name'''
|width=160px| '''Name'''
|width=90px| '''global / local'''
|width=90px| '''Global/Local'''
|width=90px| '''page number'''
|width=90px| '''Page number'''
|-
|-
| IPge'''[[Quotes/Items#ammo|ammo]]'''_ballistic.oni
| IPge'''[[Quotes/Items#ammo|ammo]]'''_ballistic.oni
Line 48: Line 48:
|}
|}


* The xml code on this page is compatible with onisplit '''v0.9.61.0'''
* The XML code on this page is compatible with OniSplit '''v0.9.61.0'''.
* Some '''IPge*.oni''' are global (located in level0_...), other are local, see table.
* Some '''IPge*.oni''' files are global (located in level0_...) and others are local; see table on right.
* An item page can be read for first time when player finds an item linked to its page.
* An item page can be read for the first time when the player finds the item that links to the page.
* An IGPA instance here will make Oni crash.
* An IGPA instance here will make Oni crash.
* For additional information on LSI see [[LSI|HERE]].
* For additional information on LSIs, see [[LSI|HERE]].


 
==BSL support==
===BSL support===
* http://ssg.oni2.net/commands.htm#powerup
* http://ssg.oni2.net/commands.htm#powerup
* chr_has_lsi [ai_name:string | script_id:int] - records that the character has the lsi - chr_has_lsi(0)
* chr_has_lsi [ai_name:string | script_id:int] - records that the character has the lsi - chr_has_lsi(0)


 
==XML structure==
===XML structure===
Think of "instances" (#N) as file sections: they run from 1 to N; 0 is the header (it defines the file type, here "IPge").
Think of "instances" (#N) as file sections, they go from 1 to N. 0 is the header (it defines the file type, here "IPge").


: Every IPge contains one instance of type IGPG.
: Every IPge contains one instance of type IGPG.
Line 67: Line 65:
: Every IGSA contains a number of instances of type IGSt.
: Every IGSA contains a number of instances of type IGSt.


: IGPG means a page
: IGPG means a page.
: IGSA means a (text) string array
: IGSA means a (text) string array.
: IGSt means a (text) string
: IGSt means a (text) string.
 


example on "IPgekeys":
Example from "IPgekeys":


: #0  (IPge instance) links to #1 (IGPG instance)
: #0  (IPge instance) links to #1 (IGPG instance)
: #1  (IGPG instance) links to #3 and #4 (IGSA instances)
: #1  (IGPG instance) links to #3 and #4 (IGSA instances)
: #2  (unknown placeholder, only presented in original files) (can be ignored)
: #2  (unknown placeholder, only present in original files) (can be ignored)
: #3  (IGSA instance) links from #5 up to #6 (IGSt instances)
: #3  (IGSA instance) links from #5 up to #6 (IGSt instances)
: #4  (IGSA instance) links to #7 (IGSt instance)
: #4  (IGSA instance) links to #7 (IGSt instance)


 
==XML tags and options==
===XML tags and options===
'''IPge instance tags'''
'''IPge instance tags'''
: <PageNumber> (item page number)
: <PageNumber> (item page number)
: <Page> (links to IGPG instance)
: <Page> (links to IGPG instance)


'''IGPG instance tags'''
'''IGPG instance tags'''
Line 115: Line 110:
:: <Color>
:: <Color>
:: <Size>
:: <Size>
:: <Flags> (Every IGSt can use own properties. The <Flag> tag let you enable these. Add "Size" when you want to get a new font size, add "Color" when you want to get a new font color, etc..)
:: <Flags> (every IGSt can have its own properties. The <Flag> tag let you enable these. Add "Size" when you want to get a new font size, add "Color" when you want to get a new font color, etc.)
::: <font style="color:#777">Family</font>
::: <font style="color:#777">Family</font>
::: Style
::: Style
Line 122: Line 117:
:: <Text> (contains the actual text but can also create a bare paragraph)
:: <Text> (contains the actual text but can also create a bare paragraph)


 
==Example==
===example===
'''IPgekeys.xml''':
IPgekeys.xml


[[Image:XML_IPge.jpg|400px|right|thumb]]
[[Image:XML_IPge.jpg|400px|right|thumb]]
Line 135: Line 129:
     </IPge>
     </IPge>


You can display a little image if you use the image tag in the IGPG instance. (Either non-animated TXMP or [[XML:PSpc|PSpc]].)
You can display a small image if you use the image tag in the IGPG instance. (Either a non-animated TXMP or a [[XML:PSpc|PSpc]].)


     <IGPG id="1">
     <IGPG id="1">
Line 171: Line 165:
     </IGSt>
     </IGSt>


A space between the text tags (<Text> </Text>) can produce a new paragraph. The import ignores that so far but you can fix it by writing "<Text xml:space="preserve"> </Text>". (Not used in this example.)
A space between the text tags (<Text> </Text>) can produce a new paragraph. The import ignores that so far, but you can fix it by writing "<Text xml:space="preserve"> </Text>". (Not used in this example.)


     <IGSt id="5">
     <IGSt id="5">
Line 195: Line 189:
  </Oni>
  </Oni>


 
==Related files==
===related files===
{|class="wikitable"
{|class="wikitable"
!width=120px| powerups / LSI
!width=120px| Powerup/LSI
!width=150px| object
!width=150px| Object
!width=150px| object texture
!width=150px| Object texture
!width=150px| glow texture
!width=150px| Glow texture
!width=180px| location
!width=180px| Location
|-
|-
|
|
Line 236: Line 229:
|-
|-
! LSI
! LSI
! object
! Object
! icon texture
! Icon texture
! object texture
! Object texture
! location
! Location
|-
|-
|
|