Created
July 9, 2019 23:27
-
-
Save dicene/cc13d338a7a80895a60be5288e4109b0 to your computer and use it in GitHub Desktop.
Lua Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inv = {"item1", "item2"} | |
inv.pack = {"packitem1", "packitem2"} | |
backpack = inv.pack | |
echo("Inv:") | |
display(inv) | |
echo("Pack:") | |
display(inv.pack) | |
echo("Backpack:") | |
display(backpack) | |
table.insert(backpack, "another backpack item") | |
echo("Inv:") | |
display(inv) | |
echo("Pack:") | |
display(inv.pack) | |
echo("Backpack:") | |
display(backpack) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment