Question about scripting Beer Garden

Is there an option in mafia to harvest on the 7th day?

How can I put it in .ash form?

Something like if (beer garden = img7), harvest.
 

lostcalpolydude

Developer
Staff member
You need to use a script that checks for
Code:
get_campground()[$item[fancy beer label]] == 6

You might want that script to check that you don't have something else planted though.
 

Bale

Minion
I use this:

Code:
boolean pick() {
	foreach c,q in get_campground()
		switch(c) {
		case $item[pumpkin]:
		case $item[huge pumpkin]:
		case $item[ginormous pumpkin]:
		case $item[peppermint sprout]:
		case $item[giant candy cane]:
			return q > 0;
		case $item[skeleton]:
			if(q < 0) print("OMG! There is a Humongous Skull in the garden?! It looks DANGEROUS!", "red");
			return q > 0;
		case $item[fancy beer label]:
			return q > 5;
		}
	return false;
}

if(pick()) cli_execute("garden pick");
 
Top