T]i[T]a[N
New Member
- Reaction score
- 0
Okay I'm in the process of making a maze, I have a frogger like trigger, which basically does the same exact thing the first level of Maze Legends #1 escept for a minor bug I can't seem to fix...
The bug is the random spawn I have set sometimes spawns 2 or three units in the same region at once "randomly." I need to fix this.
Here is the INIT trigger.
The actual creation trigger.
I had that set three times.
The movement.
Had that set 15 times (one for each region)
The Remove.
and I had that set 15 times also (one for each region)
Can anyone help me?
The bug is the random spawn I have set sometimes spawns 2 or three units in the same region at once "randomly." I need to fix this.
Here is the INIT trigger.
Code:
FINAL OBSTICLE
Events
Time - Elapsed game time is 0.50 seconds
Conditions
Actions
Set RandomRegion[1] = Random 1 <gen>
Set RandomRegion[2] = Random 4 <gen>
Set RandomRegion[3] = Random 2 <gen>
Set RandomRegion[4] = Random 3 <gen>
Set RandomRegion[5] = Random 5 <gen>
Set RandomRegion[6] = Random 6 <gen>
Set RandomRegion[7] = Random 7 <gen>
Set RandomRegion[8] = Random 8 <gen>
Set RandomRegion[9] = Random 9 <gen>
Set RandomRegion[10] = Random 10 <gen>
Set RandomRegion[11] = Random 11 <gen>
Set RandomRegion[12] = Random 12 <gen>
Set RandomRegion[13] = Random 13 <gen>
Set RandomRegion[14] = Random 14 <gen>
Set RandomRegion[15] = Random 15 <gen>
The actual creation trigger.
Code:
FINAL OBSTICLE spawn
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Unit - Create 1 |c00BFBFBFTiTaNiOuS MiNiOn|r for Player 11 (Dark Green) at (Center of RandomRegion[(Random integer number between 1 and 16)]) facing Default building facing degrees
I had that set three times.
The movement.
Code:
FINAL OBSTICLE move
Events
Unit - A unit enters Random 1 <gen>
Conditions
Actions
Unit - Order (Entering unit) to Move To (Center of Remove 1 <gen>)
Had that set 15 times (one for each region)
The Remove.
Code:
FINAL OBSTICLE remove
Events
Unit - A unit enters Remove 1 <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to |c00BFBFBFTiTaNiOuS MiNiOn|r
Actions
Unit - Remove (Triggering unit) from the game
and I had that set 15 times also (one for each region)
Can anyone help me?