- Joined
- Sep 24, 2006
- Messages
- 4,986
I tried to make a trigger so that when all players will be spawned one of them has a different unit than the others.
So i made a wisp and called it spawner, then set it so the spawner only spawns when players are ''equal to playing'' (So i also could test i with computers) and after spawning in the initialization the ''GetZombie'' trigger would pick random number between 1 and the(PlayerNumber) variable. The players are counted in the initialization...
It didn't work, nothing happend. So i added some text to make it confirm that he is counting the players and that works, when i test the map myself with 3 other computer player it says there are 4 players in the game. But whatever i believe the GetZombie trigger just doesn't work but that wouldn't make sense because i can't seem to find any mistake =/
It's just like it gets ignored.... very odd... and FRUSTRATING for a simple thing like this not to work.
So i made a wisp and called it spawner, then set it so the spawner only spawns when players are ''equal to playing'' (So i also could test i with computers) and after spawning in the initialization the ''GetZombie'' trigger would pick random number between 1 and the(PlayerNumber) variable. The players are counted in the initialization...
It didn't work, nothing happend. So i added some text to make it confirm that he is counting the players and that works, when i test the map myself with 3 other computer player it says there are 4 players in the game. But whatever i believe the GetZombie trigger just doesn't work but that wouldn't make sense because i can't seem to find any mistake =/
It's just like it gets ignored.... very odd... and FRUSTRATING for a simple thing like this not to work.
-
GetZombie
-

Events
-

Conditions
-

Actions
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




HasZombie Equal to False
-
-



Then - Actions
-




Set ZombieRoll = (Random integer number between 1 and PlayerNumber)
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






ZombieRoll Equal to 1
-
-





Then - Actions
-






If ((Player 1 (Red) slot status) Equal to Is playing) then do (Unit - Replace Player1 with a (Greater Zombie/Player) using The new unit's max life and mana) else do (Trigger - Run (This trigger) (checking conditions))
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








(Unit-type of Player1) Equal to (Greater Zombie/Player)
-
-







Then - Actions
-








Unit - Replace Player2 with a (Rifleman/Player) using The new unit's max life and mana
-








Unit - Replace Player3 with a (Rifleman/Player) using The new unit's max life and mana
-








Unit - Replace Player4 with a (Rifleman/Player) using The new unit's max life and mana
-








Unit - Replace Player5 with a (Rifleman/Player) using The new unit's max life and mana
-








Unit - Replace Player6 with a (Rifleman/Player) using The new unit's max life and mana
-








Unit - Replace Player7 with a (Rifleman/Player) using The new unit's max life and mana
-








Unit - Replace Player8 with a (Rifleman/Player) using The new unit's max life and mana
-
-







Else - Actions
-








Do nothing
-
-
-
-





Else - Actions
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








ZombieRoll Equal to 2
-
-







Then - Actions
-








If ((Player 2 (Blue) slot status) Equal to Is playing) then do (Unit - Replace Player2 with a (Greater Zombie/Player) using The new unit's max life and mana) else do (Trigger - Run (This trigger) (checking conditions))
-








If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-









If - Conditions
-










(Unit-type of Player2) Equal to (Greater Zombie/Player)
-
-









Then - Actions
-










Unit - Replace Player1 with a (Rifleman/Player) using The new unit's max life and mana
-










Unit - Replace Player3 with a (Rifleman/Player) using The new unit's max life and mana
-










Unit - Replace Player4 with a (Rifleman/Player) using The new unit's max life and mana
-










Unit - Replace Player5 with a (Rifleman/Player) using The new unit's max life and mana
-










Unit - Replace Player6 with a (Rifleman/Player) using The new unit's max life and mana
-










Unit - Replace Player7 with a (Rifleman/Player) using The new unit's max life and mana
-










Unit - Replace Player8 with a (Rifleman/Player) using The new unit's max life and mana
-
-









Else - Actions
-










Do nothing
-
-
-
-







Else - Actions
-








If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-









If - Conditions
-










ZombieRoll Equal to 3
-
-









Then - Actions
-










If ((Player 3 (Teal) slot status) Equal to Is playing) then do (Unit - Replace Player3 with a (Greater Zombie/Player) using The new unit's max life and mana) else do (Trigger - Run (This trigger) (checking conditions))
-










If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-











If - Conditions
-












(Unit-type of Player3) Equal to (Greater Zombie/Player)
-
-











Then - Actions
-












Unit - Replace Player1 with a (Rifleman/Player) using The new unit's max life and mana
-












Unit - Replace Player2 with a (Rifleman/Player) using The new unit's max life and mana
-












Unit - Replace Player4 with a (Rifleman/Player) using The new unit's max life and mana
-












Unit - Replace Player5 with a (Rifleman/Player) using The new unit's max life and mana
-












Unit - Replace Player6 with a (Rifleman/Player) using The new unit's max life and mana
-












Unit - Replace Player7 with a (Rifleman/Player) using The new unit's max life and mana
-












Unit - Replace Player8 with a (Rifleman/Player) using The new unit's max life and mana
-
-











Else - Actions
-












Do nothing
-
-
-
-









Else - Actions
-










If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-











If - Conditions
-












ZombieRoll Equal to 4
-
-











Then - Actions
-












If ((Player 4 (Purple) slot status) Equal to Is playing) then do (Unit - Replace Player4 with a (Greater Zombie/Player) using The new unit's max life and mana) else do (Trigger - Run (This trigger) (checking conditions))
-












If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-













If - Conditions
-














(Unit-type of Player4) Equal to (Greater Zombie/Player)
-
-













Then - Actions
-














Unit - Replace Player1 with a (Rifleman/Player) using The new unit's max life and mana
-














Unit - Replace Player2 with a (Rifleman/Player) using The new unit's max life and mana
-














Unit - Replace Player3 with a (Rifleman/Player) using The new unit's max life and mana
-














Unit - Replace Player5 with a (Rifleman/Player) using The new unit's max life and mana
-














Unit - Replace Player6 with a (Rifleman/Player) using The new unit's max life and mana
-














Unit - Replace Player7 with a (Rifleman/Player) using The new unit's max life and mana
-














Unit - Replace Player8 with a (Rifleman/Player) using The new unit's max life and mana
-
-













Else - Actions
-














Do nothing
-
-
-
-











Else - Actions
-












If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-













If - Conditions
-














ZombieRoll Equal to 5
-
-













Then - Actions
-














If ((Player 5 (Yellow) slot status) Equal to Is playing) then do (Unit - Replace Player5 with a (Greater Zombie/Player) using The new unit's max life and mana) else do (Trigger - Run (This trigger) (checking conditions))
-














If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-















If - Conditions
-
















(Unit-type of Player5) Equal to (Greater Zombie/Player)
-
-















Then - Actions
-
















Unit - Replace Player1 with a (Rifleman/Player) using The new unit's max life and mana
-
















Unit - Replace Player2 with a (Rifleman/Player) using The new unit's max life and mana
-
















Unit - Replace Player3 with a (Rifleman/Player) using The new unit's max life and mana
-
















Unit - Replace Player4 with a (Rifleman/Player) using The new unit's max life and mana
-
















Unit - Replace Player6 with a (Rifleman/Player) using The new unit's max life and mana
-
















Unit - Replace Player7 with a (Rifleman/Player) using The new unit's max life and mana
-
















Unit - Replace Player8 with a (Rifleman/Player) using The new unit's max life and mana
-
-















Else - Actions
-
















Do nothing
-
-
-
-













Else - Actions
-














If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-















If - Conditions
-
















ZombieRoll Equal to 6
-
-















Then - Actions
-
















If ((Player 6 (Orange) slot status) Equal to Is playing) then do (Unit - Replace Player6 with a (Greater Zombie/Player) using The new unit's max life and mana) else do (Trigger - Run (This trigger) (checking conditions))
-
















If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-

















If - Conditions
-


















(Unit-type of Player6) Equal to (Greater Zombie/Player)
-
-

















Then - Actions
-


















Unit - Replace Player1 with a (Rifleman/Player) using The new unit's max life and mana
-


















Unit - Replace Player2 with a (Rifleman/Player) using The new unit's max life and mana
-


















Unit - Replace Player3 with a (Rifleman/Player) using The new unit's max life and mana
-


















Unit - Replace Player4 with a (Rifleman/Player) using The new unit's max life and mana
-


















Unit - Replace Player5 with a (Rifleman/Player) using The new unit's max life and mana
-


















Unit - Replace Player7 with a (Rifleman/Player) using The new unit's max life and mana
-


















Unit - Replace Player8 with a (Rifleman/Player) using The new unit's max life and mana
-
-

















Else - Actions
-


















Do nothing
-
-
-
-















Else - Actions
-
















If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-

















If - Conditions
-


















ZombieRoll Equal to 7
-
-

















Then - Actions
-


















If ((Player 7 (Green) slot status) Equal to Is playing) then do (Unit - Replace Player7 with a (Greater Zombie/Player) using The new unit's max life and mana) else do (Trigger - Run (This trigger) (checking conditions))
-


















If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



















If - Conditions
-




















(Unit-type of Player7) Equal to (Greater Zombie/Player)
-
-



















Then - Actions
-




















Unit - Replace Player1 with a (Rifleman/Player) using The new unit's max life and mana
-




















Unit - Replace Player2 with a (Rifleman/Player) using The new unit's max life and mana
-




















Unit - Replace Player3 with a (Rifleman/Player) using The new unit's max life and mana
-




















Unit - Replace Player4 with a (Rifleman/Player) using The new unit's max life and mana
-




















Unit - Replace Player5 with a (Rifleman/Player) using The new unit's max life and mana
-




















Unit - Replace Player6 with a (Rifleman/Player) using The new unit's max life and mana
-




















Unit - Replace Player8 with a (Rifleman/Player) using The new unit's max life and mana
-
-



















Else - Actions
-




















Do nothing
-
-
-
-

















Else - Actions
-


















If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



















If - Conditions
-




















ZombieRoll Equal to 8
-
-



















Then - Actions
-




















If ((Player 8 (Pink) slot status) Equal to Is playing) then do (Unit - Replace Player8 with a (Greater Zombie/Player) using The new unit's max life and mana) else do (Trigger - Run (This trigger) (checking conditions))
-




















If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





















If - Conditions
-






















(Unit-type of Player8) Equal to (Greater Zombie/Player)
-
-





















Then - Actions
-






















Unit - Replace Player1 with a (Rifleman/Player) using The new unit's max life and mana
-






















Unit - Replace Player2 with a (Rifleman/Player) using The new unit's max life and mana
-






















Unit - Replace Player3 with a (Rifleman/Player) using The new unit's max life and mana
-






















Unit - Replace Player4 with a (Rifleman/Player) using The new unit's max life and mana
-






















Unit - Replace Player5 with a (Rifleman/Player) using The new unit's max life and mana
-






















Unit - Replace Player6 with a (Rifleman/Player) using The new unit's max life and mana
-






















Unit - Replace Player7 with a (Rifleman/Player) using The new unit's max life and mana
-
-





















Else - Actions
-






















Do nothing
-
-
-
-



















Else - Actions
-




















Do nothing
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-



Else - Actions
-




Do nothing
-
-
-
-


