G
Gresse
Guest
Hey I created a game in which the player has the option to play a mission (he has to reach a specific height with a limited amount of fuel(and other variables)) so because I don't have the time to manualy test all combinations of the settings and what height is possioble with them and all write them down in code. I thought the computer could do the job of testing the different missions. I set up a system where the computer generates random values for all variables test what height it would reach and then decides if this would be an "interessting mission" (it checks if the values are at least a bit realistic).
Now I thought I can't say to every player just wait 30 min with starting to play the game because missions must be created, so I decided I can just let my computer run once for 2h and create some missions. I have all the setup to collect data done:
I have the data (for example these two variables) but now I have two problems:
1. I need a way to store these values so that I theoretically can have an infinite amount of variables. I thought about storing them in a ds_list, like:
But I'm not sure how to add values, I saw somting that I could just do it like an array, but I also saw something about some ds_list comands to add new values. My question is which way I should use and how I do that.
2. How can I store data that my computer created and store it in the game that if an other guy plays the game he also has the data?
Now I thought I can't say to every player just wait 30 min with starting to play the game because missions must be created, so I decided I can just let my computer run once for 2h and create some missions. I have all the setup to collect data done:
Code:
test_flight_hight_ = //some value
test_flight_fuel_mass_ = //some value
1. I need a way to store these values so that I theoretically can have an infinite amount of variables. I thought about storing them in a ds_list, like:
Code:
test_flight_hight_ = ds_list_create();
test_flight_fuel_mass_ = ds_list_create();
2. How can I store data that my computer created and store it in the game that if an other guy plays the game he also has the data?