What exactly happens? Does the unit not revive? Does it not change the owner? Does the trigger fire at all? (can check that by printing a text message)
Did you modify the Death Time of your building in the data editor? Otherwise the unit gets removed on death instantly without a chance of revival. Also, the Triggering Player for this event is probably the owner of the dying unit, so you would change the owner of the dying unit t the player, who owned it before, effectively doing nothing.
Your Trigger works (well, at least on a normal Space-Marine), but I assume you are trying to change the owner of the Unit to the Player who killed it? Change the owner to 'Killing Player' instead.
ok! thanks, thats probably closer to what I wanted, But it still dosent seem to work,the capitol statue revives at 1 hp(it revived correctly the with the first trigger setup also), but an error message about actors comes up and the building doesnt change control to the killing player.
So does the Death time still matter? since it seems to revive correctly without any changes?
@Darkling155: Go
Apparently all Units have 1 Hp once they have been revived. Just modify the Unit Property (eg. Health) to 100 percent with an additional Trigger.
The message you see tells you that a single unit has 2 same Actors tied to it. It's because the death animation of the Capitol Statue is done in a different way than the usual death animation of buildings. Add a Death Event at the Actor Events in the 'Globe Statue' Actor and then send the Message "Destroy". This fixes the Error Messages, but then the Death Animation is not played. Would this suffice?
Ok I guess I dont really need the animation anyway for what im trying to create, so Ill set that up, any idea why the control of the building isnt being swapped? Does the building being under neutral control have anything to do with it?
Even with or without the changes in the Actor Events, the owner of the Capitol Statue always changes to me when I kill it. And no, in my case the previous owner of the Capitol Statues was the Neutral Player, so it hasn't anything to do with it.
Yes thats what it is, Im sorry I just realized that the trigger was working the whole time, But it seems that theres no buttons or ui for the statue? I have buttons setup in the ability section of the statues data, but it seems like the buttons arent there when I select the statue.
So I am trying to create a trigger where, when a building dies (capitol statue) it is revived and changed to the triggering players control,
Tower Death Control Change
Events
Unit - Capitol Statue [103.00, 139.00] dies
Local Variables
Conditions
Actions
Unit - Revive (Triggering unit)
General - Wait 2.0 Game Time seconds
Unit - Change ownership of (Triggering unit) to player (Triggering player) and Change Color
Is what I have setup, however it dosent seem to be working. Any help or thoughts would be appreciated! :)
More! Give us more!
What exactly happens? Does the unit not revive? Does it not change the owner? Does the trigger fire at all? (can check that by printing a text message)
Did you modify the Death Time of your building in the data editor? Otherwise the unit gets removed on death instantly without a chance of revival. Also, the Triggering Player for this event is probably the owner of the dying unit, so you would change the owner of the dying unit t the player, who owned it before, effectively doing nothing.
@Darkling155: Go
Your Trigger works (well, at least on a normal Space-Marine), but I assume you are trying to change the owner of the Unit to the Player who killed it? Change the owner to 'Killing Player' instead.
ok! thanks, thats probably closer to what I wanted, But it still dosent seem to work,the capitol statue revives at 1 hp(it revived correctly the with the first trigger setup also), but an error message about actors comes up and the building doesnt change control to the killing player.
So does the Death time still matter? since it seems to revive correctly without any changes?
@Darkling155: Go Apparently all Units have 1 Hp once they have been revived. Just modify the Unit Property (eg. Health) to 100 percent with an additional Trigger.
The message you see tells you that a single unit has 2 same Actors tied to it. It's because the death animation of the Capitol Statue is done in a different way than the usual death animation of buildings. Add a Death Event at the Actor Events in the 'Globe Statue' Actor and then send the Message "Destroy". This fixes the Error Messages, but then the Death Animation is not played. Would this suffice?
Ok I guess I dont really need the animation anyway for what im trying to create, so Ill set that up, any idea why the control of the building isnt being swapped? Does the building being under neutral control have anything to do with it?
@Darkling155: Go
Does your Trigger really look like this?
Even with or without the changes in the Actor Events, the owner of the Capitol Statue always changes to me when I kill it. And no, in my case the previous owner of the Capitol Statues was the Neutral Player, so it hasn't anything to do with it.
Yes thats what it is, Im sorry I just realized that the trigger was working the whole time, But it seems that theres no buttons or ui for the statue? I have buttons setup in the ability section of the statues data, but it seems like the buttons arent there when I select the statue.
@Darkling155: Go
Did you add buttons in the Command Card? I just added a random ability and a button to the Command Card of the Capitol Statue and it works.
Bleh I feel so stupid :/ I forgot to edit the button command type, so the button wasnt working right, sorry for wasting your time :O
Thanks though!