Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
random non repeating number

Events


Player - Player 1 (Red) skips a cinematic sequence

Conditions

Actions


Set tempInt[1] = (Random integer number between 1 and 2)


Set tempInt[2] = randomIntegerArray[tempInt[1]]


Game - Display to (All players) the text: (String(tempInt[2]))


Set randomIntegerArray[tempInt[1]] = randomIntegerArray[3]


Set randomIntegerArray[3] = tempInt[2]
if someBoolTellingThatWeAllreadyDidThisOnce == false:
rand = random number between range_start and range_end
else
rand = random number between range_start and range_end - 1
if (rand >= lastNumber) rand++
lastNumber = rand
random non repeating number

Events


Player - Player 1 (Red) skips a cinematic sequence

Conditions

Actions


Set tempInt[1] = (Random integer number between 1 and 2)


Set tempInt[2] = randomIntegerArray[tempInt[1]]


Game - Display to (All players) the text: (String(tempInt[2]))


Set randomIntegerArray[tempInt[1]] = randomIntegerArray[3]


Set randomIntegerArray[3] = tempInt[2]
Ok! Ty!All he asked for was that the random number to not be displayed twice in a row. Otherwise I would've made it for more.
Edit: i redid the code to fix that small bug.
random non repeating number
Events
Player - Player 1 (Red) skips a cinematic sequence
Conditions
Actions
Set tempInt[1] = (Random integer number between 1 and 2)
Set tempInt[2] = randomIntegerArray[tempInt[1]]
Game - Display to (All players) the text: (String(tempInt[2]))
Set randomIntegerArray[tempInt[1]] = randomIntegerArray[3]
Set randomIntegerArray[3] = tempInt[2]
I was going to trash dimf's suggestion and I saw that it uses Indexed array XD
CompNames

Events


Time - Every 1.00 seconds of game time

Conditions

Actions


Set iCountDown = (iCountDown + 1)


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions



Then - Actions




Set iRandom[1] = (Random integer number between 1 and 50)




Set iRandom[2] = iRandomIndex[iRandom[1]]




Multiboard - Set the text for Multiboard item in column 2, row (iCountDown + 1) to sCompName[iRandom[2]]




Game - Display to (All players) the text: (String(iRandom[2]))




Set iRandomIndex[iRandom[1]] = iRandomIndex[3]




Set iRandomIndex[3] = iRandom[2]



Else - Actions
CompNames Copy

Events


Time - Every 1.00 seconds of game time

Conditions

Actions


Set iCountDown = (iCountDown + 1)


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions



Then - Actions




Set Temp_Int = (Random integer number between 1 and 10)




Multiboard - Set the text for Multiboard item in column 2, row (iCountDown + 1) to sCompName[Temp_Int]




Game - Display to (All players) the text: (String(Temp_Int))



Else - Actions
|
|
u shouldnt use integer A/B maker its slower and less efficient.
Efficient nazi hahaha
