-
-
Notifications
You must be signed in to change notification settings - Fork 46
Journal
Generated on 9/2/2024 10:46:49 PM
Version: 4.425.19+0c26057dbb7e7e285dbbb7378d1639f9d9112e29
Method Signature:
Void ClearJournal()
Description:
Clear all journal texts.
Example:
ClearJournal()
Method Signature:
Boolean InJournal(System.String, System.String, Int32, Int32)
- text: String value - See description for usage.
- author: String value - See description for usage. (Optional)
- hue: Item Hue or -1 for any. (Optional)
- timeout: Timeout specified in milliseconds. (Optional)
Description:
Check for a text in journal, optional source name.
Example:
if InJournal("town guards", "system"):
Method Signature:
Boolean WaitForJournal(System.String, Int32, System.String, Int32)
- text: String value - See description for usage.
- timeout: Timeout specified in milliseconds.
- author: String value - See description for usage. (Optional)
- hue: Item Hue or -1 for any. (Optional)
Description:
Wait the given timeout for the journal text to appear.
Example:
if WaitForJournal("town guards", 5000, "system"):
Method Signature:
System.ValueTuple2[System.Nullable
1[System.Int32],System.String] WaitForJournal(System.Collections.Generic.IEnumerable`1[System.String], Int32, System.String)
- entries: An array of strings.
- timeout: Timeout specified in milliseconds.
- author: String value - See description for usage. (Optional)
Description:
Wait up the given timeout for one of any of provided array of string to appear in journal
Example:
(idx, text) = WaitForJournal(['sex', 'drugs'], 5000)
if idx != None:
print "Found text '{}' at index {}".format(text, idx)
else:
print 'None of them were found :('