int StartingConditional(){ // Make sure the PC speaker has these items in their inventory return HasItem(GetPCSpeaker(), "boat_ticket_tag"));}
void main(){ object oPC = GetPCSpeaker(); int nCount = 0; // To count how many items we find object oLoop = GetFirstItemInInventory(oPC); // Get first item in players inventory while (oLoop != OBJECT_INVALID) // Loop through all his/her inventory { if(GetTag(oLoop) == "boat_ticket_tag") { nCount++; // Increase nCount by one for each item found } oLoop = GetNextItemInInventory(oPC); // Get next item in the players inventory }}
Would there be a way to delay the search for one loop per certain heartbeat? A bit like spreading the loading of a house onto a longer time period? Maybe a message through the server message instead once the delayed count has been made instead of an automatic message in the discussion with the captain?