# newspaper !!=======================================================!! !! !! !! CIKL !! !! !! !!=======================================================!! if $ARGS[0] = 'cikl': mc_inventory['newspaper'] = 0 gs 'newspaper_pages', 'init' idx = rand(0, arrsize('np_front_pages') - 1) $newspaperVars['page_0'] = $np_front_pages[idx] killvar 'np_front_pages' i = 1 :newspaper_shuffle_loop idx = rand(0, arrsize('$np_pages') - 1) $newspaperVars['page_<>'] = $np_pages[idx] i += 1 killvar '$np_pages', idx if arrsize('$np_pages') > 0: jump 'newspaper_shuffle_loop' newspaperVars['max_page_num'] = i - 1 killvar 'i' killvar '$np_pages' end !!=======================================================!! !! !! !! VIEW !! !! !! !!=======================================================!! if $ARGS[0] = 'start': temp_np_page = 0 gs 'newspaper', 'view' end if $ARGS[0] = 'view': *clr & cla '