### Author Topic: Disassociating Pointers?  (Read 2749 times)

0 Members and 1 Guest are viewing this topic.

#### johnbchron

• LV2 Member (Next: 40)
• Posts: 33
• Rating: +1/-0
• RiskALungForDiving
##### Disassociating Pointers?
« 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:01:4:0:0:0:0:0:01:6:0:0:0:0:0:01:6:0:0:0:0:0:01: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->r5This 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!
Just a dude who is really bored in school... and a huge nerd.
<a href="http://www.freebiebitcoin.com">Earn free bitcoin</a>

#### Streetwalrus

• LV12 Extreme Poster (Next: 5000)
• Posts: 3821
• Rating: +80/-8
##### Re: Disassociating Pointers?
« Reply #1 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)->Pic12011Data(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)