Accessing data stored in XML elements / attributes

Post ideas & suggestions you have pertaining to the game here.
Post Reply
User avatar
ptbptb
Militia Lieutenant
Militia Lieutenant
Posts: 143
Joined: Mon May 10, 2010 7:34 pm

If you've got something like ...

Code: Select all

   <ItemTable UNID="&trConsumables10;">
      <RandomItem
            criteria=         "fmut +Consumable; -Illegal;"
            level=            "10"
            levelCurve=         "2"
            />
   </ItemTable>
Is it possible to tell what the criteria, level and level curve are for the table with UNID &trConsumables10; using tscript?

e.g. something like
Syntax
(tblLookup tableUNID fieldname) -> value

(tblLookup "&trConsumables10;" "criteria")
Returns "fmut +Consumable; -Illegal;"
User avatar
alterecco
Fleet Officer
Fleet Officer
Posts: 1658
Joined: Wed Jan 14, 2009 3:08 am
Location: Previously enslaved by the Iocrym

nops. unfortunately not. The amount of data that can be pulled from xml is very liited.

That is why in the original GalacticTraders I rewrote all of the Buy Sell tables in script
Post Reply