Calculator Community > Axe

Disassociating Pointers?

(1/1)

johnbchron:

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: ---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

--- End code ---

--- Code: ---(r1-1*8)+Pic12011->r2
(r1-1*8+1)+Pic12011->r3
(r1-1*8+2)+Pic12011->r4
(r1-1*8+3)+Pic12011->r5

--- End code ---
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!

Streetwalrus:
You need to use the Data command, like so:

--- Code: ---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)

--- End code ---

See also: http://axe.eeems.ca/Commands.html#dataAndStorageCommands

johnbchron:
Thank you so much! (I was so stumped)

Navigation

[0] Message Index

Go to full version