Difference between revisions of "Command Condition Bug"
(Created page with "There is a bug that appears under certain circumstances, when the '''Give Unit''' action and the '''Command''' condition are used together. This ''only'' occurs when Give Unit...") |
m (I am not sure. Someone should verify.) |
||
Line 1: | Line 1: | ||
+ | ''' I am not 100% certain WHEN this bug occurs, and this page should be verified at some point in the future (eg me when I have time) ''' | ||
+ | |||
+ | |||
There is a bug that appears under certain circumstances, when the '''Give Unit''' action and the '''Command''' condition are used together. This ''only'' occurs when Give Unit and Command are used in the same trigger cycle; specifically, if Command is checking a value that was altered by Give Unit earlier on. So, if Give Unit was used AND THEN Command was used later on in the same trigger cycle. | There is a bug that appears under certain circumstances, when the '''Give Unit''' action and the '''Command''' condition are used together. This ''only'' occurs when Give Unit and Command are used in the same trigger cycle; specifically, if Command is checking a value that was altered by Give Unit earlier on. So, if Give Unit was used AND THEN Command was used later on in the same trigger cycle. | ||
Latest revision as of 16:42, 27 October 2024
I am not 100% certain WHEN this bug occurs, and this page should be verified at some point in the future (eg me when I have time)
There is a bug that appears under certain circumstances, when the Give Unit action and the Command condition are used together. This only occurs when Give Unit and Command are used in the same trigger cycle; specifically, if Command is checking a value that was altered by Give Unit earlier on. So, if Give Unit was used AND THEN Command was used later on in the same trigger cycle.
The issue is that the value that Command is checking is the number of units owned at the BEGINNING of the trigger cycle. It is at the beginning of the trigger cycle because this number does not change or get updated when using the Give Unit action until the trigger cycle has finished. This is a bug in StarCraft's coding. You can use Bring condition (with "Anywhere" being the location) to get around this issue. You can also trigger in a 1 cycle delay before checking with Command.