Okay so I have another problem.
I have made a kind of TD and the difficult level determines how many creeps that will spawn. So i have made integers for the number of units that will spa. The integer's value changes whether you choose very easy, easy and so forth. Now my problem is that these integers don't seem to work at all because it allways spawn the wrong number of units and always the same number?? Take a look at the scripts:
This one turns on the Very Easy Script!
This is the Very Easy Sript, it is initially ON
This is the script that should spawn the creeps!
What's wrong!?! And YES i have double checked that the Variables are integers!
I have made a kind of TD and the difficult level determines how many creeps that will spawn. So i have made integers for the number of units that will spa. The integer's value changes whether you choose very easy, easy and so forth. Now my problem is that these integers don't seem to work at all because it allways spawn the wrong number of units and always the same number?? Take a look at the scripts:
This one turns on the Very Easy Script!
Trigger:
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Clicked dialog button) Equal to buttonVERYEASY_2Plrs
- Then - Actions
- Trigger - Turn on Very Easy <gen>
- Trigger - Turn off Easy <gen>
- Trigger - Turn off Normal <gen>
- Trigger - Turn off Hard <gen>
- Else - Actions
- If - Conditions
This is the Very Easy Sript, it is initially ON
Trigger:
- Very Easy
- Events
- Time - Elapsed game time is 1.00 seconds
- Conditions
- Actions
- Set integerSpawnedUnitsBOSS = (Random integer number between 0 and 1)
- Set integerSpawnedUnitsMore = (Random integer number between 1 and 2)
- Set integerSpawnedUnitsLess = 5
- Events
This is the script that should spawn the creeps!
Trigger:
- Wave 1
- Events
- Time - timerWAVE expires
- Conditions
- Actions
- Countdown Timer - Destroy timerwindowWave
- -------- Units Spawn --------
- Unit - Create integerSpawnedUnitsLess Tauren for Player 12 (Brown) at (Center of Creep Spawn 3 <gen>) facing Default building facing degrees
- Unit - Create integerSpawnedUnitsMore Troll Spearman for Player 12 (Brown) at (Center of Creep Spawn 1 <gen>) facing Default building facing degrees
- Unit - Create integerSpawnedUnitsMore Troll Spearman for Player 12 (Brown) at (Center of Creep Spawn 2 <gen>) facing Default building facing degrees
- Unit - Create integerSpawnedUnitsMore Troll Spearman for Player 12 (Brown) at (Center of Creep Spawn 3 <gen>) facing Default building facing degrees
- -------- Next wave --------
- Trigger - Turn on Wave 2 <gen>
- Events
What's wrong!?! And YES i have double checked that the Variables are integers!