Tharisfal
07-18-2006, 5:12 PM
The basic idea is that I have made a little ability and removed it's effect so it does nothing. Named it close gate. And yea it's for closing a gate. I've made a building named gatehouse to cast it. Here's the trigger:
Close Gate
Events
Unit - Gatehouse 0018<gen> Finishes casting an ability.
Conditions
(ability being cast) equal to close gate
Action
Close gate (diagonal 2) 0000 <gen>
And I did the same thing with open gate just a slightly different trigger:
Open Gate
Events
Unit - Gatehouse 0018<gen> Finishes casting an ability.
Conditions
(ability being cast) equal to open gate
Action
open gate (diagonal 2) 0000 <gen>
Now the problem. A unit attacks the gate and brings it down to half life. If the player opens the gate and then closes it will have full life. Beside that if it's dead then he can just close it and it will be ressurected. Soooo...
I added to the condition:
(Gate (diagonal) 0000 <gen> is alive) Eqaul to true
But then it won't close cuz, if use open gate, the gate is considered dead. http://sidworkshop.forumup.in/images/smiles/icon_evil.gif
So how do I make the gate not heal it's self when it opens and closes. And not ressurect itself when closed. And work.
I posted this on Sid's forum but no one camed up with a solution. So now I place my hopes on Warboards.
Close Gate
Events
Unit - Gatehouse 0018<gen> Finishes casting an ability.
Conditions
(ability being cast) equal to close gate
Action
Close gate (diagonal 2) 0000 <gen>
And I did the same thing with open gate just a slightly different trigger:
Open Gate
Events
Unit - Gatehouse 0018<gen> Finishes casting an ability.
Conditions
(ability being cast) equal to open gate
Action
open gate (diagonal 2) 0000 <gen>
Now the problem. A unit attacks the gate and brings it down to half life. If the player opens the gate and then closes it will have full life. Beside that if it's dead then he can just close it and it will be ressurected. Soooo...
I added to the condition:
(Gate (diagonal) 0000 <gen> is alive) Eqaul to true
But then it won't close cuz, if use open gate, the gate is considered dead. http://sidworkshop.forumup.in/images/smiles/icon_evil.gif
So how do I make the gate not heal it's self when it opens and closes. And not ressurect itself when closed. And work.
I posted this on Sid's forum but no one camed up with a solution. So now I place my hopes on Warboards.