GetSigilPieces

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);
}

This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.