- Joined
- Feb 24, 2009
- Messages
- 110
This question has been satisfactorily answered, topic can be closed.
Hi there!
I've been using the trigger Action
6,1,9,3,10,8,7,2, (3,7, but have been already used), 4, (9,4, but have been already used),5.
Ive tried it 5 times in a row my map, and they always "random" the same way.
I took so long to make my map with a random dynamic system to be different each game, and it happens to be the same each time because the "random factor" is a linear factor instead.
Should I try using Jass instead (i have no idea about jass), or can anyone tell me a way to have random numbers?
here is the whole trigger with loop:
Hi there!
I've been using the trigger Action
-
Set Variable = (Random integer number between 1 and 10)
6,1,9,3,10,8,7,2, (3,7, but have been already used), 4, (9,4, but have been already used),5.
Ive tried it 5 times in a row my map, and they always "random" the same way.
I took so long to make my map with a random dynamic system to be different each game, and it happens to be the same each time because the "random factor" is a linear factor instead.
Should I try using Jass instead (i have no idea about jass), or can anyone tell me a way to have random numbers?
here is the whole trigger with loop:
-
Events
-
Time - Every 0.01 seconds of game time
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
MaxNumberComparator Not equal to MaxNumber
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
ArrayR[var] Not equal to 0
-
-
Then - Actions
-
Set MaxNumberComparator = (MaxNumberComparator + 1)
-
Trigger - Turn on triggerAsk <gen>
-
Trigger - Turn off (This trigger)
-
-
Else - Actions
-
Set var = (Random integer number between 1 and MaxNumber)
-
-
-
-
Else - Actions
-
Trigger - Turn on Victory <gen>
-
Trigger - Turn off (This trigger)
-
-
-
Last edited: