GREEN GIANT
2013-07-28 15:06:07
Hi Guys,
When you do checks such as 'GetChooseOptions' and 'GetInven()' how would you go about selecting the outputted information. For example:
When i do 'GetChooseOption' on a Gamesnecklace and put it through WriteLn, i get the following printed array;
[('Remove Games necklace(2)', (546, 289, 730, 299), (543, 268, 730, 349)), ('Operate Games necklace(2)', (546, 304, 730, 317), (0, 0, 0, 0)), ('Examine Games necklace(2)', (546, 319, 730, 329), (0, 0, 0, 0)), ('Cancel', (546, 334, 730, 343), (0, 0, 0, 0))]
How would i go about selecting information from this if i wanted to say do a check and then writeLn 'Has 2 charges', or for instance if i did GetInven and then wanted to run a check for a certain integer within the array like for example;
If GetInven(1)Count = 138 then …. etc
When you do checks such as 'GetChooseOptions' and 'GetInven()' how would you go about selecting the outputted information. For example:
When i do 'GetChooseOption' on a Gamesnecklace and put it through WriteLn, i get the following printed array;
[('Remove Games necklace(2)', (546, 289, 730, 299), (543, 268, 730, 349)), ('Operate Games necklace(2)', (546, 304, 730, 317), (0, 0, 0, 0)), ('Examine Games necklace(2)', (546, 319, 730, 329), (0, 0, 0, 0)), ('Cancel', (546, 334, 730, 343), (0, 0, 0, 0))]
How would i go about selecting information from this if i wanted to say do a check and then writeLn 'Has 2 charges', or for instance if i did GetInven and then wanted to run a check for a certain integer within the array like for example;
If GetInven(1)Count = 138 then …. etc