Log In  

In Pico-8 I can do this:

d={ "one",
"two",
"three"
}

print(d[1][2])

This would return the 'n' from 'one'

Picotron returns nil.
I have to use

sub(d[r],c,c)

Has lua syntax changed or is this a Picotron thing?

P#146002 2024-04-07 22:40

1

zep added string indexing to pico-8’s lua, but not to picotron’s

P#146004 2024-04-07 22:57

[Please log in to post a comment]