User Tools

Site Tools


modding:xml:lookup
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


modding:xml:lookup [2014/12/27 04:40] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +Discuss this page on this page's [[Lookup Talk Page|Talk Page]].
  
 +FIXME Please correct any inaccuracies.
 +
 +===<Lookup>===
 +
 +From the [[http://xelerus.de/index.php?s=mod&id=324|XML'd elementDocument]]
 +
 +  <Lookup Attributes="chance,count,table" />
 +
 +Lookup is a child element of [[<Table>]] or of [[<Group>]] (itself a child element of <Table>).
 +
 +For actual example of use you can see Transcendence.xml (one pasted below) or one of a large number of mods.
 +
 +... skip ...
 +          <Group chance="15">
 +              <Lookup count="1d4" table="&trMiscItems1;"/>
 +              <Lookup count="1" table="&trUsefulItems1;"/>
 +          </Group>
 +          <Lookup chance="10" count="1d6" table="&trMiscItems1;"/>
 +          <Lookup chance="5" count="1d6" table="&trMiscItems2;"/>
 +      </Table>
 +  </ItemTable>
 +
 +===Sub elements and attributes===
 +
 +  * chance: (Optional) %chance of the lookup being done from that Lookup element.  When specified the total of the chance attributes of all the elements inside the <Table> element equals 100%.
 +  * count: How many times to look up from the table.
 +  * table: An [[<ItemTable>]] containing the criteria, level and level curve used to select the items.
 +
 +A list of the item lookup tables defined in Transcendence.xml can be found easily by searching on the string '<ItemTable UNID="&' (but I have also pasted it into the [[Lookup Talk Page|Talk Page]])
 +
 +Go back to list of [[..:XML|tags]]
modding/xml/lookup.txt · Last modified: 2014/12/27 04:40 by 127.0.0.1