J
J.R.
Guest
Hello everybody, first of all, compliments on the forums, they've been a great help to me since i started playing with the editor. I'll keep this short and to the point;
I have tried to make a trigger that, whenever player1 loses a unit of unit-type, kills a player3's unit of the same unit type. So, i have this trigger:
Event:
- a unit owned by player1 dies
Condition:
-unit type of dying unit equal to (sorcerres)
-Action
-kill random unit from (units owned by player3) of type sorcerres
(of course, each unit type has its own trigger
Now my problem is, that player3's units sometimes die, and sometimes do not. For example, players 1 and 3 start with 5 units. When all five of player1 die, sometimes player3 still has half of them left, and sometimes all of them die.
So, basically, my question would be; is there any chance at all that "random unit from units-of-type" returns as blank, which would explain the problem, or is it something completely different that i haven't thought about?
Any help would be greatly appreciated. Greetings, JR
I have tried to make a trigger that, whenever player1 loses a unit of unit-type, kills a player3's unit of the same unit type. So, i have this trigger:
Event:
- a unit owned by player1 dies
Condition:
-unit type of dying unit equal to (sorcerres)
-Action
-kill random unit from (units owned by player3) of type sorcerres
(of course, each unit type has its own trigger
Now my problem is, that player3's units sometimes die, and sometimes do not. For example, players 1 and 3 start with 5 units. When all five of player1 die, sometimes player3 still has half of them left, and sometimes all of them die.
So, basically, my question would be; is there any chance at all that "random unit from units-of-type" returns as blank, which would explain the problem, or is it something completely different that i haven't thought about?
Any help would be greatly appreciated. Greetings, JR


