I'm designing a text-based (non-graphical) game, and found the above "quicky" script quite helpful (with a few modifications, of course).
My problem: I've discovered that I'm currently limited to displaying only 16 lines at a time, meaning only 15 inventory items would be visible, unless I changed the font or otherwise did something undesirable.
Is there a relatively simple way to space the list into two separate columns?
Here's what I'm looking at:
Code: ags
My problem: I've discovered that I'm currently limited to displaying only 16 lines at a time, meaning only 15 inventory items would be visible, unless I changed the font or otherwise did something undesirable.
Is there a relatively simple way to space the list into two separate columns?
Here's what I'm looking at:
function show_inventory () {
String inventoryListing = "You are carrying:";
int i = 0;
int inventoryCount = 0;
while(i<Game.InventoryItemCount) {
i++;
if(player.InventoryQuantity[i]>0) {
inventoryListing = inventoryListing.Append(String.Format("[ - %s",inventory[i].Name));
inventoryCount++;
}
}
if(inventoryCount>0) {
roomText.Text = inventoryListing;
} else {
roomText.Text = Game.GlobalMessages[996];
}
}