- Joined
- Mar 3, 2006
- Messages
- 1,564
-
Init
-

Events
-


Player - Player 1 (Red) skips a cinematic sequence
-
-

Conditions
-

Actions
-


Set i = 1
-


Trigger - Run Random Intergers <gen> (ignoring conditions)
-
-
-
Random Intergers
-

Events
-

Conditions
-

Actions
-


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



If - Conditions
-




i Equal to 1
-
-



Then - Actions
-




Set itaken[1] = (Random integer number between 1 and 16)
-




Set i = (i + 1)
-
-



Else - Actions
-
-


Set ir = (Random integer number between 1 and 16)
-


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



If - Conditions
-




i Greater than 16
-
-



Then - Actions
-




Trigger - Run Trigger Success Check <gen> (ignoring conditions)
-
-



Else - Actions
-




For each (Integer A) from 1 to (i - 1), do (Actions)
-





Loop - Actions
-






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







If - Conditions
-








ir Equal to itaken[(Integer A)]
-
-







Then - Actions
-








Trigger - Run (This trigger) (ignoring conditions)
-








Skip remaining actions
-
-







Else - Actions
-








Set itaken[i] = ir
-








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









If - Conditions
-










(Integer A) Equal to (i - 1)
-
-









Then - Actions
-










Set i = (i + 1)
-










Trigger - Run (This trigger) (ignoring conditions)
-
-









Else - Actions
-
-
-
-
-
-
-
-
-
This is a random integer generator and this is different from the GUI function Random Integer between A and B as this function has a percent chance of generating a number more than one but my system takes a set of integer and put them in a random order without repeating it twice. Its made in GUI because when I made it I wasn't good at JASS.
Also, you are free to check for any bugs it might contain.



