ID:1932010
 
(See the best response by Kaiochao.)
I'm making an on screen shop menu and i'm not sure how to go about doing what i need done.
My menu on the screen only has place holders for 5 items at a time. with buttons to scroll through windows. maybe i need some sort of function to split a list of items into lists of 5 items? I'm not sure how to go about doing this. any help would be greatly appreciated.

Edit: I only really need to know how to get the list of items that need to be displayed given the current page of the shop they are on.
Best response
Math.
var items_per_page = 5
var page_items[] = items.Copy(1 + (page-1)*items_per_page, items_per_page)
thank you kaiochao. I've never used Copy before, now i see how its used.