ULX

Author Topic: Learning Lua... (Just a random post from a lua super noob.)  (Read 14947 times)

0 Members and 2 Guests are viewing this topic.

Offline syn.

  • Jr. Member
  • **
  • Posts: 56
  • Karma: 6
  • Lua Padawan
    • SynGaming
Re: Learning Lua... (Just a random post from a lua super noob.)
« Reply #30 on: January 25, 2014, 06:07:00 PM »
I know it probably goes from 20 to 100 or 100 to 20 but I don't know what b does :p
Lua Student

"The more you understand, the crazier you get."

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Learning Lua... (Just a random post from a lua super noob.)
« Reply #31 on: January 25, 2014, 06:14:54 PM »
Which, and how?
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Learning Lua... (Just a random post from a lua super noob.)
« Reply #32 on: January 25, 2014, 06:18:35 PM »
The third variable (b in this case) is a step.
See if that helps you.

Offline syn.

  • Jr. Member
  • **
  • Posts: 56
  • Karma: 6
  • Lua Padawan
    • SynGaming
Re: Learning Lua... (Just a random post from a lua super noob.)
« Reply #33 on: January 25, 2014, 06:25:04 PM »
you made a table with x which had 4 keys/values inside then with
Code: [Select]
for n = x[3], x[2], b do you chose the 3rd and 2nd Key/value which I'm assuming means they go from one to the other. but i dont know what "b" does in the previously shown code. :-* lol nvm Pres just replied and since it's a step it would mean that it goes either
    20             100
    30              90
    40              80
    50              70
    60      or     60
    70               50
    80               40
    90               30
    100             20
Lua Student

"The more you understand, the crazier you get."

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given