Hello Everyone,
I am working on a trigger that involves upgrading a unit when it dies then resurrecting it. The function itself states: ("Setting the Current Research Level of 'X' = Current Research Level of 'X' + 1").
It works!!! but only for the first two times the unit dies. At the third, the death crashes the game. With the upgrade [via Object Editor], I have set the maximum level of the upgrade to 6 and got rid of all techtree dependencies. I even set an "IF" statement to make sure the research level can't go above 6. Is there a reason why it stops at the "3rd" death. I am confident that there are no other reason except those that are related to setting research.
I am working on a trigger that involves upgrading a unit when it dies then resurrecting it. The function itself states: ("Setting the Current Research Level of 'X' = Current Research Level of 'X' + 1").
It works!!! but only for the first two times the unit dies. At the third, the death crashes the game. With the upgrade [via Object Editor], I have set the maximum level of the upgrade to 6 and got rid of all techtree dependencies. I even set an "IF" statement to make sure the research level can't go above 6. Is there a reason why it stops at the "3rd" death. I am confident that there are no other reason except those that are related to setting research.