8,189
edits
Paradox-01 (talk | contribs) mNo edit summary |
Paradox-01 (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
==[[OBD:OPge|OPge]]: objective page== | ==[[OBD:OPge|OPge]]: objective page== | ||
===general notes=== | ===general notes=== | ||
* '''OPge*.oni''' are level specific. (They can be found in edition/GameDataFolder/level''XX''_...) | * '''OPge*.oni''' are level specific. (They can be found in edition/GameDataFolder/level''XX''_...) | ||
* Objective pages can be called via BSL command "objective_set ''page_number''" or "objective_set ''page_number'' silent". | * Objective pages can be called via BSL command "objective_set ''page_number''" or "objective_set ''page_number'' silent". | ||
===XML structure=== | ===XML structure=== | ||
{{Template:XMLModdingHints}} | |||
{| border=0 cellspacing=20 cellpadding=0 align=center | |||
| The xml code on this page is compatible with onisplit '''v0.9.61.0''' | |||
|} | |||
Think of "instances" (#N) as file sections, they go from 1 to N. 0 is the header (it defines the file type, here "OPge"). | Think of "instances" (#N) as file sections, they go from 1 to N. 0 is the header (it defines the file type, here "OPge"). | ||
Line 84: | Line 84: | ||
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||
<Oni | <Oni> | ||
< | <OPge id="0"> | ||
<LevelNumber>21</LevelNumber> | <LevelNumber>21</LevelNumber> | ||
<Pages>#1</Pages> | <Pages>#1</Pages> | ||
</ | </OPge> | ||
< | <IGPA id="1"> | ||
<Pages> | <Pages> | ||
<Link>#2</Link> | <Link>#2</Link> | ||
</Pages> | </Pages> | ||
</ | </IGPA> | ||
You can display a little image if you use the image tag in the IGPG instance. (Either non-animated TXMP or [[PSpc]].) | You can display a little image if you use the image tag in the IGPG instance. (Either non-animated TXMP or [[PSpc]].) | ||
Line 99: | Line 99: | ||
<Text2> is used for the hint field -- see screenshot ("page 1B - hint text"). | <Text2> is used for the hint field -- see screenshot ("page 1B - hint text"). | ||
< | <IGPG id="2"> | ||
<nowiki><Font></nowiki> | <nowiki><Font></nowiki> | ||
<Family></Family> | <Family></Family> | ||
Line 110: | Line 110: | ||
<Text1>#3</Text1> | <Text1>#3</Text1> | ||
<Text2>#7</Text2> | <Text2>#7</Text2> | ||
</ | </IGPG> | ||
Instance | Instance #5 has a space between the text tags (<Text> </Text>) to produce a new paragraph. The import ignores that so far but you can fix it by writing "<Text xml:space="preserve"> </Text>". | ||
< | <IGSA id="3"> | ||
<Strings> | <Strings> | ||
<Link>#4</Link> | <Link>#4</Link> | ||
Line 120: | Line 120: | ||
<Link>#6</Link> | <Link>#6</Link> | ||
</Strings> | </Strings> | ||
</ | </IGSA> | ||
< | <IGSt id="4"> | ||
<nowiki><Font></nowiki> | <nowiki><Font></nowiki> | ||
<Family></Family> | <Family></Family> | ||
Line 130: | Line 130: | ||
<nowiki></Font></nowiki> | <nowiki></Font></nowiki> | ||
<Text>page 1A - caption</Text> | <Text>page 1A - caption</Text> | ||
</ | </IGSt> | ||
< | <IGSt id="5"> | ||
<nowiki><Font></nowiki> | <nowiki><Font></nowiki> | ||
<Family></Family> | <Family></Family> | ||
Line 140: | Line 140: | ||
<nowiki></Font></nowiki> | <nowiki></Font></nowiki> | ||
<Text xml:space="preserve"> </Text> | <Text xml:space="preserve"> </Text> | ||
</ | </IGSt> | ||
< | <IGSt id="6"> | ||
<nowiki><Font></nowiki> | <nowiki><Font></nowiki> | ||
<Family></Family> | <Family></Family> | ||
Line 150: | Line 150: | ||
<nowiki></Font></nowiki> | <nowiki></Font></nowiki> | ||
<Text>page 1A - text</Text> | <Text>page 1A - text</Text> | ||
</ | </IGSt> | ||
< | <IGSA id="7"> | ||
<Strings> | <Strings> | ||
<Link>#8</Link> | <Link>#8</Link> | ||
</Strings> | </Strings> | ||
</ | </IGSA> | ||
< | <IGSt id="8"> | ||
<nowiki><Font></nowiki> | <nowiki><Font></nowiki> | ||
<Family></Family> | <Family></Family> | ||
Line 165: | Line 165: | ||
<nowiki></Font></nowiki> | <nowiki></Font></nowiki> | ||
<Text>page 1B - hint text</Text> | <Text>page 1B - hint text</Text> | ||
</ | </IGSt> | ||
</Oni> | </Oni> |
edits