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.
⚠️ The DashNet forums will be shut down on September 12th 2019.⚠️

Please see here for more information.

Syntax error

COG_GaryCOG_Gary Posts: 11Member ✭✭
My code:
name:Item Stand
desc:Sells random items. Grants 5-20 dollars per second with a 20% chance. req:(MaterialSearcher>=15) icon: on tick: if (chance(20%)) yield random(5,20) money and lose 1 Itemsval else log No chance end
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.