Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Please read the forum rules before posting.

Check if you are posting in the correct category.

The Off Topic section is not meant for discussing Cookie Clicker.

Syntax error

COG_GaryCOG_Gary Member Posts: 11 ✭✭
My code:
name:Item Stand
desc:Sells random items. <b>Grants 5-20 dollars per second with a 20% chance.</b>
on tick:
if (chance(20%)) yield random(5,20) money and lose 1 Itemsval
log No chance
The error:
[Syntax error in "(random(5,20) money and lose 1)" : Failed to parse "lose"]
What I want it to do here is give a random amount of money if the chance value is 1, and lose 1 item. However, this gives me an error. Any way I could rephrase this?
Sign In or Register to comment.