BlueBirdSings [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=66890 Getting syntac error, why? <p>Hello! I'm not sure where to put this? But...I am getting this error and i'm not sure what's wrong?</p> <p>Syntac error line 24 (tab 0)<br /> If poison=9 then poisoned=true end</p> <p>'Then' expected near '='</p> <p>Here is my code I am working on...</p> <p>function _init()<br /> sprite=1<br /> stimer=0<br /> last_frame=4<br /> first_frame=1</p> <p>table={} --example<br /> coin=false --example<br /> string=&quot;dragon&quot;,23,&quot;fist&quot;<br /> -- example</p> <p>x1=25<br /> y1=0</p> <p>x2=50<br /> y2=5<br /> hcolor=8</p> <p>poisoned=false<br /> poison=0<br /> end</p> <p>function _update()<br /> if poison&lt;=9 then poison+=1 end<br /> if poison=9 then poisoned=true end<br /> if posioned=true then y1=y1-10 end </p> <p>--if stimer&lt;=7 then<br /> --stimer+=1<br /> --else<br /> --if sprite&lt;=last_frame then<br /> --sprite+=first_frame<br /> --else<br /> --sprite=first_frame<br /> --end<br /> --stimer=0<br /> --end</p> <p>function _draw()<br /> cls()<br /> spr(sprite,64,64)</p> <p>rectfill(x1,y1,x2,5,hcolor)<br /> rect(x1,y1,x2,y2,7)--20,5,7<br /> print(&quot;health&quot;,0,1,7)<br /> --health bar combo</p> <p>rectfill(50,15,30,10,10)<br /> rect(50,15,30,10,7)--20,5,7<br /> print(&quot;stamina&quot;,0,10,7)<br /> --stamina bar combo!!!<br /> end</p> <p>Note: I commented out the animation code to attempt to debug the problem but, I am at a loss.</p> <p>This is code based on following the tutorial's by spacecat.</p> https://www.lexaloffle.com/bbs/?tid=53236 https://www.lexaloffle.com/bbs/?tid=53236 Mon, 26 Jun 2023 12:58:50 UTC Question on Name Generation in pico 8 <p>Hello, all! I have a question about a project I am working on in pico 8 (Random name generator). </p> <p>I tried rnd (command) at first and that failed for obvious reasons. And now I am in a pickle I can use print and say a = &quot;tammy&quot; and it work's.</p> <p>But!</p> <p>When I add more it only works on the first entry? In reading the manual it doesn't say anything that I can see that could help me. Online has been a bust though still interesting.</p> <p>I also checked out the cart pico map generator (the world name generator part) which help's in that I need to write a function...? It is rather long (and beyond my understanding unless I squint really hard).</p> <p>Anyone have any way to combine two (or more) names using the print command? Or something else? </p> <p>Thank you, for your time!</p> <p>Ps. I am still learning pico 8. I can make (very) simple games and I not versed in each command nor the terms.</p> https://www.lexaloffle.com/bbs/?tid=53194 https://www.lexaloffle.com/bbs/?tid=53194 Wed, 21 Jun 2023 23:51:07 UTC