Home API Manuals About Forum
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

FoundedParamId

Returns index of matched param in multi-params line in WaitJournalLine, InJournal and similar methods.

For example, search line is “create|make|destroy|already”. Found in journal string with word “destroy”. FoundedParamId will returns 2.

If no strings found, or char disconnected - returns 0.

Pascal

function FoundedParamID : Integer;

Python

def FoundedParamID(): -> int

Example Python

    WaitJournalLine(datetime.now()-timedelta(milliseconds=1), 'Polymorph|наложено|lack', 1000)
    found = FoundedParamID()
    if found == 1:
      castTargetAndWait('Dispel')