Author Topic: Disassociating Pointers?  (Read 1555 times)

0 Members and 1 Guest are viewing this topic.

Offline johnbchron

  • LV2 Member (Next: 40)
  • **
  • Posts: 33
  • Rating: +1/-0
  • RiskALungForDiving
    • View Profile
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: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!
Just a dude who is really bored in school... and a huge nerd.
Click here to give me an internet!
 <a href="http://www.freebiebitcoin.com">Earn free bitcoin</a>

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
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)->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

Offline johnbchron

  • LV2 Member (Next: 40)
  • **
  • Posts: 33
  • Rating: +1/-0
  • RiskALungForDiving
    • View Profile
Re: Disassociating Pointers?
« Reply #2 on: March 26, 2018, 03:36:36 pm »
Thank you so much! (I was so stumped)
Just a dude who is really bored in school... and a huge nerd.
Click here to give me an internet!
 <a href="http://www.freebiebitcoin.com">Earn free bitcoin</a>