- Joined
- Sep 21, 2005
- Messages
- 33
OK, so i have a powerup buff like in dota, a rune that gives u an ability. The type of rune is meant to spawn randomly.
My trigger is:
Rune 1 Respawn
Events
Time - T_Rune1_Respawn expires
Conditions
Actions
Set I_RandRune = (Random integer number between 1 and 6)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
I_RandRune Equal to 1
Then - Actions
Item - Create Rune - Attack at (Center of Rune Spawn 1 <gen>)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
I_RandRune Equal to 2
Then - Actions
Item - Create Rune - Defence at (Center of Rune Spawn 1 <gen>)
Else - Actions
The problem is that every time it ALWAYS spawns the 5th rune, then the 4th rune twice, then the 1st rune, every game!
i added a second randomisation after the first to see what would happen and all that happens is the sequence is changed in which they spawn but it is always the same EVERY game!!! plz help, i hope its just code error i've made!
My trigger is:
Rune 1 Respawn
Events
Time - T_Rune1_Respawn expires
Conditions
Actions
Set I_RandRune = (Random integer number between 1 and 6)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
I_RandRune Equal to 1
Then - Actions
Item - Create Rune - Attack at (Center of Rune Spawn 1 <gen>)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
I_RandRune Equal to 2
Then - Actions
Item - Create Rune - Defence at (Center of Rune Spawn 1 <gen>)
Else - Actions
The problem is that every time it ALWAYS spawns the 5th rune, then the 4th rune twice, then the 1st rune, every game!
i added a second randomisation after the first to see what would happen and all that happens is the sequence is changed in which they spawn but it is always the same EVERY game!!! plz help, i hope its just code error i've made!