Talk:Petit Forest/@comment-9531161-20140216194704

Hey, I was going through your code (to skip days lol), and I noticed you had some repeated code along the lines of IF RIGHT$(DATE$,1)=="0" THEN DSHOP$="@SHOP0" IF RIGHT$(DATE$,1)=="1" THEN DSHOP$="@SHOP1" IF RIGHT$(DATE$,1)=="2" THEN DSHOP$="@SHOP2" IF RIGHT$(DATE$,1)=="3" THEN DSHOP$="@SHOP3" IF RIGHT$(DATE$,1)=="4" THEN DSHOP$="@SHOP4" IF RIGHT$(DATE$,1)=="5" THEN DSHOP$="@SHOP5" IF RIGHT$(DATE$,1)=="6" THEN DSHOP$="@SHOP6" etc...

I know the last thing a programmer wants is for someone else to tell them how to code, but you could replace all 10 of those lines with the single line: DSHOP$="@SHOP"+RIGHT$(DATE$,1)

I just wanted to tell you in case you use a similar approach in another game.