I'm trying to execute an action when a user attacks another user when they both have a non-aggression pact. I know that there are two events, one called "unit is Attacked" and the other is called "unit is Attacking" one returns the attacking unit/player as the triggering unit/player and the other one returns the attacked unit/player as the triggered unit/player but that's as far as I can get before my mind draws a blank on what to do next.
I know its not possible since Doomed Earth has a GUI pop up an ally attacks another ally.
I haven't had the opportunity to mess with raw data or code, I only know how to code through the GUI. I can learn more about how if its required to do what I want it to.
You mean like when a player attacks his own ally? You could try "unit takes damage", and you can check if the owner of the damaging unit is allied with the attacked player. You could also try "unit attribute changes" which should have a life option for attribute.
Yes that's exactly what I meant and was looking for! (unit takes damage) Thank you. I swear I went over the events over and over looking for something like but that I must've missed it.
I'm trying to execute an action when a user attacks another user when they both have a non-aggression pact. I know that there are two events, one called "unit is Attacked" and the other is called "unit is Attacking" one returns the attacking unit/player as the triggering unit/player and the other one returns the attacked unit/player as the triggered unit/player but that's as far as I can get before my mind draws a blank on what to do next.
I know its not possible since Doomed Earth has a GUI pop up an ally attacks another ally.
I haven't had the opportunity to mess with raw data or code, I only know how to code through the GUI. I can learn more about how if its required to do what I want it to.
Thank you for your help!
You mean like when a player attacks his own ally? You could try "unit takes damage", and you can check if the owner of the damaging unit is allied with the attacked player. You could also try "unit attribute changes" which should have a life option for attribute.
New to the Editor? Need a tutorial? Click Here
Want data assets? Click Here
Yes that's exactly what I meant and was looking for! (unit takes damage) Thank you. I swear I went over the events over and over looking for something like but that I must've missed it.