daggermoor [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=24512 62.34 abstraction <p> <table><tr><td> <a href="/bbs/?pid=43764#p"> <img src="/bbs/thumbs/pico43804.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=43764#p"> 62.34 abstraction 1.02</a><br><br> by <a href="/bbs/?uid=24512"> daggermoor</a> <br><br><br> <a href="/bbs/?pid=43764#p"> [Click to Play]</a> </td></tr></table> </p> <p>I made this for my college art museum; they were looking for writers but I'm not really, so I said I would make a video game &quot;poem&quot; of sorts instead, and they indulged me :)</p> <p>It was in response to an exhibit that included some &quot;lost works&quot; � pieces that are listed as being in the museum's collection, but cannot be located; instead we just had the label information of the missing work of art.</p> <p>This game is inspired by that label information; I knew nothing about the painting other than what is there on the title page.</p> <p>It's not much of a game; not much to do but walk and read. Thank you for your indulgence and time, if anyone plays it! It's short, maybe 5 or 6 minutes long.</p> <p>Many thanks to oli414 for his <a href="https://www.lexaloffle.com/bbs/?tid=28465">dialogue text box lib</a> which i keep using.</p> <p>And to Robby Duguay for the song &quot;Melancholy&quot; from his <a href="https://www.lexaloffle.com/bbs/?tid=2619">&quot;9 Songs in Pico-8&quot;</a>.</p> <p>And morgan3d for introducing me to PICO-8, and zep for making it (also I think I have bits of code in this from both of you.)</p> <hr /> <p>Changelog:</p> <p>1.02 yeah I f**ked up on 1.01 it's all better now :S<br /> 1.01 Adjusted &quot;GAME OVER&quot; sequence at very end<br /> 1.0 Original release<br /> <table><tr><td> <a href="/bbs/?pid=43764#p"> <img src="/bbs/thumbs/pico43763.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=43764#p"> 62.34 abstraction 1.0</a><br><br> by <a href="/bbs/?uid=24512"> daggermoor</a> <br><br><br> <a href="/bbs/?pid=43764#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=29865 https://www.lexaloffle.com/bbs/?tid=29865 Wed, 30 Aug 2017 15:17:12 UTC attempt to index local 'fl' (a string value) <p>Hello,</p> <p>Apologies, I am very new to this.</p> <p>I'm making an old-school dungeon crawler, and I want to store info for each floor of the dungeon in a table, including intro text, player starting x,y coordinates and facing direction, etc. Then I would initialize each new floor with a start_floor(n) function where n = floor level.</p> <p>So I have something like this:</p> <div> <div style="max-width:800px; overflow:auto; margin-bottom:12px"> <table style="width:100%" cellspacing=0 cellpadding=0> <tr><td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> <td background=/gfx/code_bg0.png> <div style="font-family : courier; color: #000000; display:absolute; padding-left:10px; padding-top:4px; padding-bottom:4px; "> <pre> floor1 = { text = &quot;you descend the stairs.&quot; spawn = {x = 8, y = 6, dir = 1} } function start_floor(n) local fl = &quot;floor&quot;..n pl.x, pl.y, pl.dir = fl.spawn.x, fl.spawn.y, fl.spawn.dir end </pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>But it just doesn't like using the concatenated local &quot;fl&quot; -- if I switch that from &quot;floor&quot;..n to the correct fixed value (floor1) then it pulls everything from the table, no problem. But when it has to concatenate the floor number n, it the runtime error, &quot;attempt to index local 'fl' (a string value)&quot;</p> <p>What am I missing, or misunderstanding? Any suggestions wold be greatly appreciated!</p> <p>Thanks,<br /> daggermoor</p> https://www.lexaloffle.com/bbs/?tid=29658 https://www.lexaloffle.com/bbs/?tid=29658 Sat, 15 Jul 2017 11:59:07 UTC