Command Condition Bug

From Staredit Network Wiki
Jump to: navigation, search

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.

See also