Jump to content

Photo

Function to determine if secrets triggered


  • Please log in to reply
1 reply to this topic

#1 TLOZace5000

TLOZace5000

    Newbie

  • Members

Posted 05 June 2025 - 11:30 PM

Quick question: I know the code line "Screen->TriggerSecrets()" that triggers the screen secrets (e.g. secret combo flags 16-31), but is there a bool scripting function that returns true or false based on whether the secrets have been triggered?



#2 Moosh

Moosh

    The Mush

  • Moderators

Posted 06 June 2025 - 12:40 AM

In 2.55 and beyond, there's "Screen->SecretsTriggered()" which will return true if any secret has triggered on the screen. In earlier versions, you can only check for permanent secrets with Screen->State[ST_SECRET] or by storing the ComboD[] at a position that you know will be a secret and wait for it to change.


  • Alucard648 and Jambu like this


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users