Author Topic: Undocumented TI-BASIC tricks  (Read 81781 times)

0 Members and 7 Guests are viewing this topic.

dysfunction

  • Guest
Undocumented TI-BASIC tricks
« Reply #15 on: November 29, 2005, 02:03:00 am »
I believe I did mention something about this in the Aura thread a while ago...

Offline Spellshaper

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1690
  • Rating: +0/-0
  • This is me. Or maybe not.
    • View Profile
Undocumented TI-BASIC tricks
« Reply #16 on: November 29, 2005, 02:24:00 am »
I

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Undocumented TI-BASIC tricks
« Reply #17 on: November 29, 2005, 03:12:00 am »
QuoteBegin-dysfunction+29 November 2005, 8:03-->
QUOTE (dysfunction @ 29 November 2005, 8:03)
I believe I did mention something about this in the Aura thread a while ago...  

 uh where? I guess that might be in a topic from last year in EPS forums or Maxcoderz or I might have missed some new posts here once  

CDI

  • Guest
Undocumented TI-BASIC tricks
« Reply #18 on: November 29, 2005, 10:06:00 am »
Okay, here's a REAL example :Pblah.gif

In an old project of mine (theta twelve) I used lists for loading, so I had a variable for the 4 char listname, but! it twas a lot of code to indivudaly load EACH list into L1, so I did this

:"L10AL11AL12AL13AL13A...->Str1

then I did

:expr("/L/"+sub(Str1,L4-4,4->L/1/

basically, I took the list (named in Str1) added "/L/" (the little L for lists) and exicuted it, then stored it to L1 :Dbiggrin.gif yay space savers!

Offline alex10819

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 100
  • Rating: +1/-0
    • View Profile
Undocumented TI-BASIC tricks
« Reply #19 on: December 03, 2005, 12:33:00 pm »
wow... i gotta look into using this...

katmaster

  • Guest
Undocumented TI-BASIC tricks
« Reply #20 on: December 12, 2005, 03:24:00 pm »
Wow, this is pretty cool. And I understand it!!! YAY FOR UNDERSTANDING!!!

Offline rivereye

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 996
  • Rating: +0/-0
    • View Profile
Undocumented TI-BASIC tricks
« Reply #21 on: December 13, 2005, 04:12:00 am »
this is going into my new RPG
>(<')

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Undocumented TI-BASIC tricks
« Reply #22 on: December 13, 2005, 04:13:00 am »
^^

Offline necro

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1295
  • Rating: +17/-2
  • +3 vaporal mustache
    • View Profile
Undocumented TI-BASIC tricks
« Reply #23 on: December 13, 2005, 06:25:00 am »
"WOOT" owly says...
..~'~..
I'm like a woot burger with awesome fries


VB.Net, C#, C++, Java, Game Maker

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Undocumented TI-BASIC tricks
« Reply #24 on: December 13, 2005, 06:39:00 am »
I think your attempt at imitating blub icon failed litterally here

Offline rivereye

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 996
  • Rating: +0/-0
    • View Profile
Undocumented TI-BASIC tricks
« Reply #25 on: December 13, 2005, 07:20:00 am »
>(<') go blub
>(<')

Offline necro

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1295
  • Rating: +17/-2
  • +3 vaporal mustache
    • View Profile
Undocumented TI-BASIC tricks
« Reply #26 on: December 13, 2005, 07:51:00 am »
~~>(<.)~~ blub died...














just kiding (^>)<
I'm like a woot burger with awesome fries


VB.Net, C#, C++, Java, Game Maker

dysfunction

  • Guest
Undocumented TI-BASIC tricks
« Reply #27 on: December 13, 2005, 08:26:00 am »
I wish there was a command to store real numbers into a string- expr( converts a string into numbers (or commands), but there is no equivalent command to store a number into a string. Of course,  to store the number in, say, variable A into Str1, you could do this:

c1-->
CODE
ec1
sub(Str2,A+1,1) -> Str1c2
ec2

Where Str2 is "0123456789"

But this becomes rather slow, especially if you then have to deal with two-digit or larger numbers.

dragon__lance

  • Guest
Undocumented TI-BASIC tricks
« Reply #28 on: December 13, 2005, 10:22:00 am »
hmmmm, is it possible to have a compressed save file as a string, most games i kno use lists, but if u were to use a string...

dysfunction

  • Guest
Undocumented TI-BASIC tricks
« Reply #29 on: December 13, 2005, 11:52:00 am »
Sure you can use strings, but it would be a bit slower to save (no real speed difference for loading), and also you only have a limited number of strings, whereas lists can have custom names.