Sporkinator icon

Random Stuff

Sporkinator | PRO | 12/22/11 02:26:30 AM UTC | 0 ⭐ | 253 👁️ | Never ⏰ | []
Game Maker |

0 B

|

None

|

0 👍

/

0 👎

//Create
textList = ds_list_create(); //create a list
buildList(); //build the list
ds_list_shuffle(textList); //shuffle to make it random
 
//Stuff
if (randomTIMER > 29)
{
    showDebugDialog("STEP EVENT! Time! Preparing to take random from list " + string(textList));
    if (ds_list_size(textList) == 0) //if list empty
    {
        showDebugDialog("List Empty");
        buildList(); //rebuild
        ds_list_shuffle(textList); //shuffle for randomness
    }
    showDebugDialog("Getting random text from:" + string(textList));
    randomTEXT = ds_list_find_value(textList, 0); //get the first entry
    ds_list_delete(textList, 0); //remove it
    randomTIMER = 0;
}
else
{
    randomTIMER += 1;
}
 
//SCRIPT: buildList
ds_list_add(textList, "Making Sounds");
ds_list_add(textList, "Creating Sprites");
ds_list_add(textList, "Painting Backgrounds");
ds_list_add(textList, "Loading Levels");
ds_list_add(textList, "Teaching Enemies");
ds_list_add(textList, "Doing Something Important");
ds_list_add(textList, "Re-killing GLaDOS");
ds_list_add(textList, "Whatever he said");
ds_list_add(textList, "Disabling Microsoft Product");
ds_list_add(textList, "Kicking a kitten");
ds_list_add(textList, "Checking Facebook");
ds_list_add(textList, "Oops, forgot something, going back");
ds_list_add(textList, "Banning trolls");
ds_list_add(textList, "Her name is Caroline!");
ds_list_add(textList, "Re-installing operating system...");
ds_list_add(textList, "ERROR: in C Drive. Installing virus...");
ds_list_add(textList, "Achievement Unlocked: Wait... No...");
ds_list_add(textList, "Baking Nyan Cat...");

Comments