(deleted)
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
bool Contains(this ListBox*, String s) {
int i = 0;
bool found = false;
while(i < this.ItemCount){
if(this.Items[i] == s) found = true;
i++;
}
return found;
}
bool Doesntcontain(this ListBox*, String s) {
int i = 0;
bool found = false;
while(i < this.ItemCount){
if(this.Items[i] != s) found = true;
i++;
}
return found;
}
///--------Later, in Repeatedly_Execute...///--------------
if ((player.InventoryQuantity[Goo.ID] >0) && (Boxedlist.Doesntcontain("Goo Description"))) // -- List Doesn't Show Goo Description, yet.
{Boxedlist.AddItem("Goo Description");} // Add it.
if ((player.InventoryQuantity[Goo.ID] >0) && (Boxedlist.Contains("Goo Description"))) // -- List Does Show Goo Description
{} // -- Do nothing.
function repeatedly_execute()
{
if (player.InventoryQuantity[Goo.ID] != 0){ // PLAYER'S GOT THE GOO.
if (listbox.contents != ("Goo Listbox Text")) // NO GOO ENTRY IN LIST BOX?
listbox.AddItem("Goo Listbox Text");} // ADD LISTBOX ENTRY
}
}
int TotalNumber;
while (TotalNumber == Listbox.ItemCount -1) {
if ((Listbox.Items[TotalNumber] != "Goo Listbox Text") && (player.InventoryQuantity[Goo.ID] !=0 ))
{Menu.AddItem("Goo Listbox Text");}
else {}
}
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.085 seconds with 14 queries.