Omnimaga

Calculator Community => TI Calculators => Axe => Topic started by: johnbchron on March 26, 2018, 01:53:06 pm

Title: Disassociating Pointers?
Post by: johnbchron on March 26, 2018, 01:53:06 pm

So this is an extension of my question on that topic in Major Community Projects/The Axe Parser Project, but I don't want to commandeer that topic any more so here's a new one.
So I am having trouble storing/retrieving weapon stats for the RPG (yay) I'm making. Here is my code:
Code: [Select]
1->Pic12011:3:0:0:0:0:0:0
1:4:0:0:0:0:0:0
1:6:0:0:0:0:0:0
1:6:0:0:0:0:0:0
1:8:0:0:0:0:0:0
Code: [Select]
(r1-1*8)+Pic12011->r2
(r1-1*8+1)+Pic12011->r3
(r1-1*8+2)+Pic12011->r4
(r1-1*8+3)+Pic12011->r5
This should (or at least I want it to) retrieve the first four values of each row in my data (the row dependant upon r1), but it never seems to work. I think the problem is that it is evaluating the parentheses and adding it to the value of Pic12011, but I don't know how to fix this. Please help!
Title: Re: Disassociating Pointers?
Post by: Streetwalrus on March 26, 2018, 02:06:34 pm
You need to use the Data command, like so:
Code: [Select]
Data(1,3,0,0,0,0,0,0)->Pic12011
Data(1,4,0,0,0,0,0,0)
Data(1,6,0,0,0,0,0,0)
Data(1,6,0,0,0,0,0,0)
Data(1,8,0,0,0,0,0,0)

See also: http://axe.eeems.ca/Commands.html#dataAndStorageCommands
Title: Re: Disassociating Pointers?
Post by: johnbchron on March 26, 2018, 03:36:36 pm
Thank you so much! (I was so stumped)