Project 387: Lemonade Tycoon

23. (Concept Exercise) How to make and sell lemonade

This challenge has finished code for you to copy into your script. Read through it, and try to guess what some of the code might mean. Then, read through the steps and try message your answers to your instructor in the chat when you're ready. 

Starting point file for this challenge

Steps

1. Copy this code first

Put this code inside the "then" blank of the last if-statement you just wrote. 

player.leaderstats.coins.Value = player.leaderstats.coins.Value + income
player.leaderstats.lemons.Value = player.leaderstats.lemons.Value - 1

2. (Review) What block in Scratch is "while true do" similar to?

3. What is the first line of code doing to your coins?

4. What is the second line of code doing to your lemons?

5. How many seconds long is that delay at the end?

6. Copy this code after the if-statement

wait(income_delay)