Author Topic: Axe Q&A  (Read 587362 times)

0 Members and 2 Guests are viewing this topic.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Axe Q&A
« Reply #900 on: November 03, 2011, 09:34:34 pm »
How would I do that then?

:!If (GetCalc(Str9)→W) or (GetCalc(Str0)→E)

or something?


Also, what is a good size to use for the appvars?
{W} will be up to several thousand
{E} will be up to 6

That would work yes.  And when you say {W} will be up to several thousand, do you mean there is only going to be 1 number stored, and it will range from 0 to 1000 or so?

And zTrumpet, Quigibo is adding some syntax for pushing and popping, although in a slightly different way.
« Last Edit: November 03, 2011, 09:35:10 pm by Builderboy »

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Axe Q&A
« Reply #901 on: November 03, 2011, 10:44:24 pm »
One number ranging from 0 Up to maybe 5000

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Axe Q&A
« Reply #902 on: November 03, 2011, 11:26:01 pm »
Then your appvar would only need to be 2 bytes long.  Also, if you only need to store 2 numbers, why not just have 1 appvar that is 4 bytes long instead of two 4 byte appvars?

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Axe Q&A
« Reply #903 on: November 04, 2011, 07:04:06 am »
oooh, nice @ the push and pop!
I'm not a nerd but I pretend:

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Axe Q&A
« Reply #904 on: November 04, 2011, 09:08:26 pm »
Then your appvar would only need to be 2 bytes long.  Also, if you only need to store 2 numbers, why not just have 1 appvar that is 4 bytes long instead of two 4 byte appvars?
Then your appvar would only need to be 2 bytes long.  Also, if you only need to store 2 numbers, why not just have 1 appvar that is 4 bytes long instead of two 4 byte appvars?

Cuz.... I don't know how to do that

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Axe Q&A
« Reply #905 on: November 05, 2011, 12:23:48 am »
To create a 4 byte appvar, just do getCalc(Name,4)->M, after that it is a simple matter of using the pointer M to access the 1st and 2nd 2 byte numbers.  {M}r for the first number and {M+2}r for the second number.  Does that make sense?  Appvars don't hold 1 number each, but rather an amount of data that you have access to.

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Axe Q&A
« Reply #906 on: November 05, 2011, 04:26:38 pm »
Yus


What I currently have has screws up the data kinda... The money sometimes is at a random number, usually lower then what I had before
« Last Edit: November 05, 2011, 04:27:34 pm by epic7 »

Offline mrmprog

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 559
  • Rating: +35/-1
    • View Profile
Re: Axe Q&A
« Reply #907 on: November 05, 2011, 04:40:24 pm »
Are you reading the full 2 bytes?

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Axe Q&A
« Reply #908 on: November 05, 2011, 04:57:55 pm »
Idk

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Axe Q&A
« Reply #909 on: November 06, 2011, 11:18:10 am »
So I have two objects, and I'm trying to make one object shoot a projectile at another.  How would one go about that?
(I've been trying to do this all night to no avail :P)
Vy'o'us pleorsdti thl'e gjaemue

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Axe Q&A
« Reply #910 on: November 06, 2011, 11:30:08 am »
Make it be like a tracking missile and it would make it easy :P

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Axe Q&A
« Reply #911 on: November 06, 2011, 05:27:53 pm »
It's not that easy, I'm thinking of an "auto-aiming" mod for Essence.
Vy'o'us pleorsdti thl'e gjaemue

Offline squidgetx

  • Food.
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1881
  • Rating: +503/-17
  • rawr.
    • View Profile
Re: Axe Q&A
« Reply #912 on: November 06, 2011, 07:57:04 pm »
So I have two objects, and I'm trying to make one object shoot a projectile at another.  How would one go about that?
(I've been trying to do this all night to no avail :P)

A straight path, or a parabolic one?

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Axe Q&A
« Reply #913 on: November 06, 2011, 09:07:26 pm »
Idk
{POINTER} reads a single byte (0 to 255), while {POINTER}r reads two (0 to 65,535). That might be why.




Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Axe Q&A
« Reply #914 on: November 06, 2011, 09:12:11 pm »
O. My numbers are over 255.

How would I find the mini r on the calculator?