Derek0
New Member
- Reaction score
- 1
Ok, i'm working on yet another version of helms deep, but this one is good. I wanted to find a good solution to the gates so I made these three triggers. One to open it, one to close it, and one to turn off the first two when it dies.
The open trigger stores the gates health in a variable, sets another variable to true to log that the gate is open, then opens the gate.
The close trigger closes the gate, sets the gate's life to the life in the variable, then sets the other variable to false to log that the gate is closed.
The third trigger goes when the gate dies, and only happens if the logged variable is set to false. This one disables the other two, so that once it's dead, it cannot be re-opened.
The reasion I need a variable to log whether it's open or closed is because when a gate is opened, it's heal is set to 0 (no idea why), so the game thinks it's dead. This variable will tell it whether it's dead or open.
The problem i'm having is that when the gate is closed, it will die instantly. Not only that, but it doesn't happen all the time. It actually happens very rarely, what seems to be at random, it will die when the close trigger goes. Most of the time it works fine. I am starting to think it's Battle.net's lag, because i've only seen it happen on the hall gate, which is usually only opened or closed while there's many, many units moving and attacking at once. The question is, how do I fix this?
Here are my triggers:
Please help, this is ruining the game for many people, because their last line of defence, this gate, is dying randomly.
Thanks in advance
Derek0
The open trigger stores the gates health in a variable, sets another variable to true to log that the gate is open, then opens the gate.
The close trigger closes the gate, sets the gate's life to the life in the variable, then sets the other variable to false to log that the gate is closed.
The third trigger goes when the gate dies, and only happens if the logged variable is set to false. This one disables the other two, so that once it's dead, it cannot be re-opened.
The reasion I need a variable to log whether it's open or closed is because when a gate is opened, it's heal is set to 0 (no idea why), so the game thinks it's dead. This variable will tell it whether it's dead or open.
The problem i'm having is that when the gate is closed, it will die instantly. Not only that, but it doesn't happen all the time. It actually happens very rarely, what seems to be at random, it will die when the close trigger goes. Most of the time it works fine. I am starting to think it's Battle.net's lag, because i've only seen it happen on the hall gate, which is usually only opened or closed while there's many, many units moving and attacking at once. The question is, how do I fix this?
Here are my triggers:
Code:
Open Great Hall Gate
Events
Player - Player 2 (Blue) types a chat message containing -open hall as An exact match
Player - Player 4 (Purple) types a chat message containing -open hall as An exact match
Player - Player 7 (Green) types a chat message containing -open hall as An exact match
Player - Player 6 (Orange) types a chat message containing -open hall as An exact match
Player - Player 11 (Dark Green) types a chat message containing -open hall as An exact match
Conditions
Actions
Set HallGateHP = (Current life of Iron Gate (Horizontal) 1053 <gen>)
Set HallGateOpen = True
Destructible - Open Iron Gate (Horizontal) 1053 <gen>
Code:
Close Great Hall Gate
Events
Player - Player 2 (Blue) types a chat message containing -close hall as An exact match
Player - Player 4 (Purple) types a chat message containing -close hall as An exact match
Player - Player 7 (Green) types a chat message containing -close hall as An exact match
Player - Player 6 (Orange) types a chat message containing -close hall as An exact match
Player - Player 11 (Dark Green) types a chat message containing -close hall as An exact match
Conditions
Actions
Destructible - Close Iron Gate (Horizontal) 1053 <gen>
Destructible - Set life of Iron Gate (Horizontal) 1053 <gen> to HallGateHP
Set HallGateOpen = False
Code:
Kill Hall
Events
Destructible - Iron Gate (Horizontal) 1053 <gen> dies
Conditions
HallGateOpen Equal to False
Actions
Trigger - Turn off Close Great Hall Gate <gen>
Trigger - Turn off Open Great Hall Gate <gen>
Please help, this is ruining the game for many people, because their last line of defence, this gate, is dying randomly.
Thanks in advance
Derek0