a4eb438d-4df0-42c6-b995-c49060e291301.02013Entropic PenHistoricalThis is page 2. Type a description here, and then create links to other pages below.This is page 3. Type a description here, and then create links to other pages below.This is page 4. Type a description here, and then create links to other pages below.
// The first parameter are the names of the pages in a delimited list.
//
// The second parameter is the description of the page links, also in a delimited list.
//
// The third parameter is the delimiter for the lists.
//
// This is a list of the different pages you want implemented in a delimited split function
link_list = Split(item_list,delimiter)
link_names = Split(item_display,delimiter)
// Here I took the guess work out of counting the # of items in the link_list in this loop function
msg ("")
for (o, 0, ListCount(link_list) -1, 1) {
// This gets an integer value from ZERO to the # of items in link_list
rand_link = GetRandomInt(0,ListCount(link_list)-1)
// Then using that integer value it selects an item from the list
choosen_link = ListItem(link_list,rand_link)
choosen_link_name = ListItem(link_names,rand_link)
// Whatever is selected goes through a switch function which prints out a page link. Here you'll have to edit the page text as well as what page it is going to:
//
// {page:PAGE NAME:LINK TEXT}
msg ("{page:" + choosen_link + ":" + choosen_link_name + "}")
// Once we're done with that item, we remove it from the list and add an extra space between links so it looks like a mudane list of page links.
list remove (link_list, choosen_link)
list remove (link_names, choosen_link_name)
msg ("")
}