ShuffledEventListclass | misc.t[1103] |
Superclass Tree | Subclass Tree | Global Objects | Property Summary | Method Summary | Property Details | Method Details |
For the first time through the main list, we normally shuffle the strings immediately at startup, but this is optional. If shuffleFirst is set to nil, we will NOT shuffle the list the first time through - we'll run through it once in the given order, then shuffle for the next time through, then shuffle again for the next, and so on. So, if you want a specific order for the first time through, just define the list in the desired order and set shuffleFirst to nil.
You can optionally specify a separate list of one-time-only sequential strings in the property firstEvents. We'll run through these strings once. When we've exhausted them, we'll switch to the main eventList list, showing it one time through in its given order, then shuffling it and running through it again, and so on. The firstEvents list is never shuffled - it's always shown in exactly the order given.
class
ShuffledEventList : RandomFiringScript EventList
(none)
(none)
Inherited from
Inherited from
Inherited from
Inherited from
Inherited from ShuffledEventList
RandomFiringScript
object
EventList
Script
object
firstEvents
shuffledList_
shuffleFirst
RandomFiringScript
:
eventPercent
eventReduceAfter
eventReduceTo
EventList
:
curScriptState
eventList
RandomFiringScript
:
checkEventOdds
EventList
:
advanceState
construct
doScriptEvent
scriptDone
Script
:
getScriptState
firstEvents | misc.t[1108] |
shuffledList_ | misc.t[1198] |
shuffleFirst | misc.t[1118] |
doScript ( ) OVERRIDDEN | misc.t[1121] |
getNextRandom ( ) | misc.t[1175] |