CroMoX
New Member
- Reaction score
- 2
Hey guys, I've been trying to make a dungeon crawler and I'm stuck on a certain part. Can someone tell me the scripting for this problem please;
When I enter a dungeon by typing -enter, I want to make it if every Hero in the dungeon dies it heals every minion in the dungeon back to full health, so when you come back into the dungeon the creeps are not half health. A good example of this is Twilight's Eve ORPG Final.
Here is the coding I got so far for the -enter part,
Enter Dungeon
Events
Player - Player 1 (Red) types a chat message containing -enter as An exact match
Player - Player 2 (Blue) types a chat message containing -enter as An exact match
Player - Player 3 (Teal) types a chat message containing -enter as An exact match
Player - Player 4 (Purple) types a chat message containing -enter as An exact match
Player - Player 5 (Yellow) types a chat message containing -enter as An exact match
Player - Player 6 (Orange) types a chat message containing -enter as An exact match
Conditions
Actions
Unit Group - Pick every unit in (Units in Dungeon 1 Teleporter <gen>) and do(Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If -Conditions
(Dungeon 1 Teleporter <gen> contains (Picked Unit)) Equal to True
Then - Actions
Unit - Move (Picked Unit) instantly to (Center of Dungeon 1 Teleport Location <gen>)
Else - Actions
Do Nothing
If I have done the -enter part wrong so that the rest of the scripting I've asked for doesn't work feel free to change my scripting just mention that in the post as well.
Thank you so much for your help.
When I enter a dungeon by typing -enter, I want to make it if every Hero in the dungeon dies it heals every minion in the dungeon back to full health, so when you come back into the dungeon the creeps are not half health. A good example of this is Twilight's Eve ORPG Final.
Here is the coding I got so far for the -enter part,
Enter Dungeon
Events
Player - Player 1 (Red) types a chat message containing -enter as An exact match
Player - Player 2 (Blue) types a chat message containing -enter as An exact match
Player - Player 3 (Teal) types a chat message containing -enter as An exact match
Player - Player 4 (Purple) types a chat message containing -enter as An exact match
Player - Player 5 (Yellow) types a chat message containing -enter as An exact match
Player - Player 6 (Orange) types a chat message containing -enter as An exact match
Conditions
Actions
Unit Group - Pick every unit in (Units in Dungeon 1 Teleporter <gen>) and do(Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If -Conditions
(Dungeon 1 Teleporter <gen> contains (Picked Unit)) Equal to True
Then - Actions
Unit - Move (Picked Unit) instantly to (Center of Dungeon 1 Teleport Location <gen>)
Else - Actions
Do Nothing
If I have done the -enter part wrong so that the rest of the scripting I've asked for doesn't work feel free to change my scripting just mention that in the post as well.
Thank you so much for your help.