wewso
New Member
- Reaction score
- 11
This is a trigger, which should give each of 12 integers in one array a unique random number from 1 to 12. The problem is that it doesnt work propperly
Varaibles I use:
Random_Numbers - Integer Array
Random_Final - Integer Array
Temp_Integer - Integer
The init:
The bugged trigger:
Thanks for hlp guys :thup:
Varaibles I use:
Random_Numbers - Integer Array
Random_Final - Integer Array
Temp_Integer - Integer
The init:
Code:
Init
Events
Map initialization
Conditions
Actions
For each (Integer A) from 1 to 12, do (Actions)
Loop - Actions
Set Random_Numbers[(Integer A)] = (Integer A)
The bugged trigger:
Code:
Randomize
Events
Player - Player 1 (Red) skips a cinematic sequence
Conditions
Actions
For each (Integer A) from 1 to 12, do (Actions)
Loop - Actions
Set Temp_Integer = (Random integer number between 1 and (13 - (Integer A)))
Set Random_Final[(Integer A)] = Random_Numbers[Temp_Integer]
Set Random_Numbers[Temp_Integer] = (13 - (Integer A))
Game - Display to (All players) the text: (String(Random_Final[(Integer A)]))
Thanks for hlp guys :thup: