User Tools

Site Tools


prpl:ishqpresent

<- PRPL reference <- Everything Else 2

ISHQPRESENT

ArgumentsResultNotation
none True/False [ - b1 ]

Description

Pushes 1 (true) to the stack if one or more HQs are present on the map. Pushes 0 (false) otherwise.

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)); 
 
prpl/ishqpresent.txt · Last modified: 2017/10/24 16:27 by GameGibu