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

0 Members and 4 Guests are viewing this topic.

dysfunction

  • Guest
Undocumented TI-BASIC tricks
« Reply #45 on: December 16, 2005, 07:17:00 am »
And of course anything with a -> in it, since Sto automatically closes parentheses or quotation marks behind it.

Offline necro

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1295
  • Rating: +17/-2
  • +3 vaporal mustache
    • View Profile
Undocumented TI-BASIC tricks
« Reply #46 on: December 16, 2005, 07:10:00 pm »
xlib can use the ANS command, but there is currently a nasty bug if ANS is empty when you do it
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 #47 on: December 17, 2005, 03:14:00 am »
oh I see, I assume its better to store 0 to ans by default at game startup in case

dragon__lance

  • Guest
Undocumented TI-BASIC tricks
« Reply #48 on: December 17, 2005, 07:46:00 am »
u guys think we should change this forum so its an overall BASIC tricks forum kinda like wat UTI has? thatd be useful :)smile.gif

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 #49 on: December 17, 2005, 10:48:00 am »
hmm maybe that would be a good idea. It might become a mess after a while though if we make this topic general, people would post the same tricks over and over after a while. What do you guys think we should do?

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 #50 on: December 17, 2005, 11:06:00 am »
what about only letting staff and managers post stuff in this section? and submissions from members and RPG coders have to be approved?


or: make a thread for gathering ideas and tricks, then make a thread where only staff can post, where the useful information is put into and explained.

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 #51 on: December 17, 2005, 11:28:00 am »
I might create a section just for BASIC and one for ASM/C, its pretty hard to decide, since not much people ask help here yet. Or I will rename this topic. Members should be able to share their ideas as well

tenniskid493

  • Guest
Undocumented TI-BASIC tricks
« Reply #52 on: December 17, 2005, 02:21:00 pm »
I like the renaming thing and letting people post submissions about everything.  Staff/Managers could just go through and make sure no one posts the same trick twice.  I wouldn't mind keeping track of that.

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 #53 on: December 17, 2005, 02:49:00 pm »
done

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 #54 on: December 18, 2005, 01:14:00 pm »
moved to programming help

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 #55 on: December 26, 2005, 08:20:00 am »
I got a question: what does instring( do? :???:confus.gif

dragon__lance

  • Guest
Undocumented TI-BASIC tricks
« Reply #56 on: December 26, 2005, 08:42:00 am »
from wat the book saids: itll return the character position in string of the first character of substring.
instring( string, substring(, where to start looking).
id ask tifreak8x, as i saw it used in his code :)smile.gif , but my guess is u can use instring to find the location of specific characters and use that for hit detection.  

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 #57 on: December 26, 2005, 08:56:00 am »
ah I see...

Offline tifreak

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2708
  • Rating: +82/-3
  • My Kung Fu IS strong...
    • View Profile
    • TI-Freakware
Undocumented TI-BASIC tricks
« Reply #58 on: December 26, 2005, 10:25:00 am »
InString("ABCDEFGHI","FG" will return 6, since that is where it starts at. If you take:

If not(InString("ABCDEFGHI",sub(Str1,T-1,1):Then:etc...

This is the basic syntax of hit detection when going left for strings. Look at my walking engine for more examples on the pokemon beta. :)smile.gif
Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%

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 #59 on: December 26, 2005, 10:48:00 am »
I