Xenoche
Member
- Reaction score
- 18
Hi one and all and thank you for your attention.
I have a strange occurance in a TD ive created where when the first creeps spawn some or all the players are disconnected. I have looked around for an answear, but have not found another with the same problem.
Here is the spawning code that triggers every 45 seconds, thus creating another wave of creep. In this instance Player 11 is the creep computer player.
The spawn switch varable is used to turn on(1) and off(0) each players spawn should a player leave ect...
Note that players are only disconnected the FIRST time this trigger runs.
Any help would be greatly appreciated.
I have a strange occurance in a TD ive created where when the first creeps spawn some or all the players are disconnected. I have looked around for an answear, but have not found another with the same problem.
Here is the spawning code that triggers every 45 seconds, thus creating another wave of creep. In this instance Player 11 is the creep computer player.
The spawn switch varable is used to turn on(1) and off(0) each players spawn should a player leave ect...
PHP:
creep create
Events
Time - Every 45.00 seconds of game time
Conditions
Actions
Set Level_Number = (Level_Number + 1)
Leaderboard - Change the title of (Last created leaderboard) to (|c0000cdf9HoS TD - |r + (|c0000cdf9Round |r + (String(Level_Number))))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
spawnswitch[1] Equal to 1
Then - Actions
Unit - Create Monster_Amount creature[Level_Number] for Player 11 (Dark Green) at (Center of creepstart[1]) facing Default building facing degrees
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
spawnswitch[2] Equal to 1
Then - Actions
Unit - Create Monster_Amount creature[Level_Number] for Player 11 (Dark Green) at (Center of creepstart[2]) facing Default building facing degrees
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
spawnswitch[3] Equal to 1
Then - Actions
Unit - Create Monster_Amount creature[Level_Number] for Player 11 (Dark Green) at (Center of creepstart[3]) facing Default building facing degrees
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
spawnswitch[4] Equal to 1
Then - Actions
Unit - Create Monster_Amount creature[Level_Number] for Player 11 (Dark Green) at (Center of creepstart[4]) facing Default building facing degrees
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
spawnswitch[5] Equal to 1
Then - Actions
Unit - Create Monster_Amount creature[Level_Number] for Player 11 (Dark Green) at (Center of creepstart[5]) facing Default building facing degrees
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
spawnswitch[6] Equal to 1
Then - Actions
Unit - Create Monster_Amount creature[Level_Number] for Player 11 (Dark Green) at (Center of creepstart[6]) facing Default building facing degrees
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
spawnswitch[7] Equal to 1
Then - Actions
Unit - Create Monster_Amount creature[Level_Number] for Player 11 (Dark Green) at (Center of creepstart[7]) facing Default building facing degrees
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
spawnswitch[8] Equal to 1
Then - Actions
Unit - Create Monster_Amount creature[Level_Number] for Player 11 (Dark Green) at (Center of creepstart[8]) facing Default building facing degrees
Else - Actions
Do nothing
Game - Display to (All players) the text: ((Level - + (String(Level_Number))) + ( + (Name of (Last created unit))))
Note that players are only disconnected the FIRST time this trigger runs.
Any help would be greatly appreciated.