StarCraft 2 Flag Operators Library 2024 download
starcraft 2 mod Flag Operators Library

Flag Operators Library

Game Version: -
Total Downloads: 609
Updated: May 20, 2010
Created: May 18, 2010

Earlier Versions

Name Size Uploaded Game Version Downloads
Flags Library 1.03 release 42.71 KB May 20, 2010 - 328 download Flag Operators Library Flags Library 1.03 releaseDownload
Bit Operations 1.02 release 41.17 KB May 19, 2010 - 138 download Flag Operators Library Bit Operations 1.02 releaseDownload
Bit Operations 1.01 release 82.88 KB May 18, 2010 - 143 download Flag Operators Library Bit Operations 1.01 releaseDownload


Share this:

Flags are lists of properties you can check-mark, like the "flags" entry of a units in the data editor. The bit flag operators are missing from the editor, and are necessary to use your own flag presets, so I created a library of basic operations:

  • Variable – Modify Flags (set, clear, shift)
  • General – For Each Flag
  • General – For Each Flag by Index
  • General – For Each Flag Matching Conditions
  • General – For Each Flag Matching Conditions by Index
  • Conversions – Convert Preset to Integer
  • Index – Index of Single Flag
  • Logic – Flags Match Filters (any, all)
  • Logic – Flags And/Or
  • Logic – Flags Exclusive Or
  • Logic – Flags Not

All these but "index of bit flag" internally use a concept called macros, so there's no overhead compared to scripting it directly (the function calls are replaced with the actual operations when compiled, and the functions disappear completely). The map has an example bit flag preset variable, and functions useful to work around the editor bug with setting flag values.

Note: The import/export library functions of the editor are broken (hint and grammar text erase when you use import), so follow the method detailed in this post: Library Import/Export Bug

If you have any questions or problems, just ask in a private message.

Example map using library


Add a comment