Creating The Randomizing Behavior
(continued)
Your behavior now looks like this:
Fig. 2.32
Our opening and closing statements are done (Hey! That's what
I sound like in school) and we can now begin calling up our events to be randomized.
We'll use Line #1 to tell the object which event number we are calling. Select
#1 and fill the Data box:
Function: 2
True line: 2
False line: 3
Param 1: 2
Param 2: 0 (this is our first event of 0-4)
Param 3: 512
Param 4: 1800
Statement #2 reads like this:
Fig. 2.33
We returned 2/3 because we want #1 to jump to #2 where we will tell it which
event is 0 (from 0-4). If the event specified in #2 is not available, then it
it to try the next event in line.
Select #2 and fill the Data box as follows:
Function: 4109 (the number of our money behavior)
True line: 9 (forcing to the exit script)
False line: 9
Param 1: -1
Param 2: -1
Param 3: -1
Param 4: -1
|