This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| prpl:ishqpresent [2016/12/02 23:34] – external edit 127.0.0.1 | prpl:ishqpresent [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| ^Arguments^Result^Notation^ | ^Arguments^Result^Notation^ | ||
| - | | | | [ - ] | | + | | none | True/ |
| === Description === | === Description === | ||
| + | |||
| + | Pushes 1 (true) to the stack if one or more HQs are present on the map. Pushes 0 (false) otherwise. | ||
| === Examples === | === Examples === | ||
| - | < | + | < |
| + | # Says in the debug window whether one or more HQ's have been found. | ||
| + | if(ishqpresent) | ||
| + | "At least one HQ found." | ||
| + | else | ||
| + | "No HQ's found." | ||
| + | endif | ||
| + | trace | ||
| + | </ | ||
| + | < | ||
| + | |||
| + | stack.Push(new Data(GameSpace.instance.headquartersShips.Count == 0 ? 0 : 1)); | ||
| </ | </ | ||