GetSigilPieces

From ZDoom Wiki
Jump to navigation Jump to search

int GetSigilPieces (void)

Usage

Returns the number of Sigil pieces that are held by the player.

Examples

This script summons a robotic enemy at the given spot and assigns it the given TID. How strong it is depends on how many Sigil pieces are held.

str enemy[5] = { "Stalker", "Sentinel", "Reaver", "Crusader", "Inquisitor" };

script 1 (int spot, int mid)
{
   SpawnSpotFacing(enemy[GetSigilPieces() - 1], spot, mid);
}