Command Condition Bug

From Staredit Network Wiki
Revision as of 22:15, 25 August 2024 by Zurg (Talk | contribs) (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...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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