Two part question

I have two questions.

  1. When I was using the randomtest it comes up saying “Not a number: ?” so I’m not sure what is wrong.
  2. I’m not sure how to set up some code. So I want the player to pick 20 items
*choice
	*disable_reuse #Blankets
		*set gameonepoints +1
		*goto gameonepointscheck
	*disable_reuse #Silverware
		*set gameonepoints +1
		*goto gameonepointscheck
	*disable_reuse #Butter mold
		*set gameonepoints +1
		*goto gameonepointscheck
	*disable_reuse #Marbles
		*set gameonepoints +1
		*goto gameonepointscheck
	*disable_reuse #Medicine
		*set gameonepoints +1
		*goto gameonepointscheck
	*disable_reuse #Butcher knife
		*set gameonepoints +1
		*goto gameonepointscheck
	*disable_reuse #Sewing kit
		*set gameonepoints +1
		*goto gameonepointscheck
	*disable_reuse #Jewellry
		*set gameonepoints +1
		*goto gameonepointscheck
	*disable_reuse #Pistol
		*set gameonepoints +1
		*goto gameonepointscheck
	*disable_reuse #Candle mold
		*set gameonepoints +1
		*goto gameonepointscheck
	*disable_reuse #Chocolate
		*set gameonepoints +1
		*goto gameonepointscheck
	*disable_reuse #Coffee
		*set gameonepoints +1
		*goto gameonepointscheck
	*disable_reuse #China dishes
		*set gameonepoints +1
		*goto gameonepointscheck
	*disable_reuse #Ax
		*set gameonepoints +1
		*goto gameonepointscheck
	*disable_reuse #Hammer
		*set gameonepoints +1
		*goto gameonepointscheck
	*disable_reuse #Shovel
		*set gameonepoints +1
		*goto gameonepointscheck
	*disable_reuse #Rope
		*set gameonepoints +1
		*goto gameonepointscheck
	*disable_reuse #Kettle
		*set gameonepoints +1
		*goto gameonepointscheck
	*disable_reuse #Cow
		*set gameonepoints +1
		*goto gameonepointscheck
	*disable_reuse #Kitchen tools
		*set gameonepoints +1
		*goto gameonepointscheck
	*disable_reuse #Candles
		*set gameonepoints -1
		*goto gameonepointscheck
	*disable_reuse #Piano
		*set gameonepoints -1
		*goto gameonepointscheck
	*disable_reuse #Rug
		*set gameonepoints -1
		*goto gameonepointscheck
	*disable_reuse #Glass lantern
		*set gameonepoints -1
		*goto gameonepointscheck
	*disable_reuse #Rocking horse
		*set gameonepoints -1
		*goto gameonepointscheck
	*disable_reuse #Woodstove
		*set gameonepoints -1
		*goto gameonepointscheck
	*disable_reuse #Bed
		*set gameonepoints -1
		*goto gameonepointscheck
	*disable_reuse #Sugar
		*set gameonepoints -1
		*goto gameonepointscheck
	*disable_reuse #Wine bottle
		*set gameonepoints -1
		*goto gameonepointscheck
	#We have everything that we want to bring
		*goto arrival
  1. I’m not sure how to set up some code. So I want the player to pick 20 items from the list above and set up the code below in the startup file but I’m not sure of the easiest way to code it or set it up.
*create gameoneitem1 "?"
*create gameoneitem2 "?"
*create gameoneitem3 "?"
*create gameoneitem4 "?"
*create gameoneitem5 "?"
*create gameoneitem6 "?"
*create gameoneitem7 "?"
*create gameoneitem8 "?"
*create gameoneitem9 "?"
*create gameoneitem10 "?"
*create gameoneitem11 "?"
*create gameoneitem12 "?"
*create gameoneitem13 "?"
*create gameoneitem14 "?"
*create gameoneitem15 "?"
*create gameoneitem16 "?"
*create gameoneitem17 "?"
*create gameoneitem18 "?"
*create gameoneitem19 "?"
*create gameoneitem20 "?"

Thanks for the help in advance

For all of your *creates, since your using numerical objects, what you want to put in is something like…

*create gameoneitem1 0

Then when you tell it to add +1, it will go from 0 to 1

Can only help so much because I’m on my phone right now, but I’m hoping that will help

Is there a reason that you want to keep track of which object was the first one chosen, which one was the second one chosen, etc. (if I’m understanding correctly what you’re trying to do)? If you just want to track which objects the player has, I would set up your code in the startup file as:

*create blankets false
*create marbles false
*create medicine false

… etc., and then for each item the player picks:

*disable_reuse #Blankets
*set gameonepoints +1
*set blankets true
*goto gameonepointscheck

Thanks, that was what I was trying to do so I will try that. I have figure what the number problem, I didn’t put in a value in the startup.

While creating the variable you set them to: “?” This makes the script define it as a string not a number, you can not add +1 to a string. On mobile too, so just the Basic s for now :grinning:

It’s not 100% clear what the purpose of your code is in this instance. Can you explain what you’re doing here?

I figured it out. I ended up putting in *create gameoneitemcount 0` and that fixed my issues