Hi,
I am making a Crypt Dungeon. When you enter the region, you will be put into a random room of 5. When you have cleared the room of hostiles (player 12), your troops will be moved to a new random room of 5.
The ghoul is to continue until you luckily will land in the final crypt room.
Now I am having some trouble. When I enter the room first enter region, it just sends me to the same room every time. But when I clear the room, nothing happends. I have noted by making sure it will not count dead enemies or the player heroes. So what am I missing?
Please ask if you do not understand my question or need further more details.
Here is my trigger. I have made it like this for all 4 Crypt rooms and none for the final crypt room, since you will have to kill the boss you leave there and loot items etc etc.
Basically my idea was for it to register whenever an enemy is killed. Then count if there are anymore enemies left there. If all enemies in the region are dead, then all players are picked and moved to another region.
I am making a Crypt Dungeon. When you enter the region, you will be put into a random room of 5. When you have cleared the room of hostiles (player 12), your troops will be moved to a new random room of 5.
The ghoul is to continue until you luckily will land in the final crypt room.
Now I am having some trouble. When I enter the room first enter region, it just sends me to the same room every time. But when I clear the room, nothing happends. I have noted by making sure it will not count dead enemies or the player heroes. So what am I missing?
Please ask if you do not understand my question or need further more details.
Here is my trigger. I have made it like this for all 4 Crypt rooms and none for the final crypt room, since you will have to kill the boss you leave there and loot items etc etc.
-
Kings Crypt Room 1
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
(Kings Crypt 1 <gen> contains (Dying unit)) Equal to True
-
-
Actions
-
Set Dungeon_Integer = 0
-
Set Dungeon_Integer1 = 0
-
Unit Group - Pick every unit in (Units in Kings Crypt 1 <gen>) and do (Actions)
-
Loop - Actions
-
Set Dungeon_Unit = (Picked unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Dungeon_Unit is A Hero) Equal to False
-
(Dungeon_Unit is dead) Equal to False
-
(Owner of Dungeon_Unit) Equal to Player 12 (Brown)
-
-
Then - Actions
-
Set Dungeon_Integer = (Dungeon_Integer + 1)
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Dungeon_Integer Equal to 0
-
(Dungeon_Hero is A Hero) Equal to True
-
(Owner of Dungeon_Unit) Not equal to Player 12 (Brown)
-
-
Then - Actions
-
Set Dungeon_Integer1 = (Random integer number between 1 and 5)
-
Game - Display to (All players controlled by a ((Owner of Dungeon_Unit) controller) player) the text: You try and make yo...
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Dungeon_Integer1 Equal to 1
-
-
Then - Actions
-
Unit - Move Dungeon_Unit instantly to (Center of Kings Crypt 1 Enter <gen>)
-
Camera - Pan camera as necessary for (Owner of Dungeon_Unit) to (Center of Kings Crypt 1 Enter <gen>) over 0.00 seconds
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Dungeon_Integer1 Equal to 2
-
-
Then - Actions
-
Unit - Move Dungeon_Unit instantly to (Center of Kings Crypt 2 Enter <gen>)
-
Camera - Pan camera as necessary for (Owner of Dungeon_Unit) to (Center of Kings Crypt 2 Enter <gen>) over 0.00 seconds
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Dungeon_Integer1 Equal to 3
-
-
Then - Actions
-
Unit - Move Dungeon_Unit instantly to (Center of Kings Crypt 3 Enter <gen>)
-
Camera - Pan camera as necessary for (Owner of Dungeon_Unit) to (Center of Kings Crypt 3 Enter <gen>) over 0.00 seconds
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Dungeon_Integer1 Equal to 4
-
-
Then - Actions
-
Unit - Move Dungeon_Unit instantly to (Center of Kings Crypt 4 Enter <gen>)
-
Camera - Pan camera as necessary for (Owner of Dungeon_Unit) to (Center of Kings Crypt 4 Enter <gen>) over 0.00 seconds
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Dungeon_Integer1 Equal to 5
-
-
Then - Actions
-
Unit - Move Dungeon_Unit instantly to (Center of Kings Crypt Final <gen>)
-
Camera - Pan camera as necessary for (Owner of Dungeon_Unit) to (Center of Kings Crypt Final <gen>) over 0.00 seconds
-
-
Else - Actions
-
-
-
Else - Actions
-
-
-
-
-
Basically my idea was for it to register whenever an enemy is killed. Then count if there are anymore enemies left there. If all enemies in the region are dead, then all players are picked and moved to another region.