Get ignore zone warnings: Difference between revisions
Jump to navigation
Jump to search
imported>Bale r12662 |
fixed description to match actual code |
||
Line 1: | Line 1: | ||
{{ | {{ | ||
#vardefine:name|get_ignore_zone_warnings}}{{ | #vardefine:name|get_ignore_zone_warnings}}{{ | ||
#vardefine:return_type|boolean}}{{ | #vardefine:return_type|boolean}}{{FunctionPage| | ||
FunctionPage| | |||
name={{#var:name}}| | name={{#var:name}}| | ||
Line 16: | Line 14: | ||
code1={{CodeSample| | code1={{CodeSample| | ||
title=Code Samples| | title=Code Samples| | ||
description=If the character | description=If the KOL preference "Ignore Zone Warnings" is disabled (the default) and the character's buffed mainstay is below the location's recommended stat, print a warning.| | ||
code= | code= | ||
<syntaxhighlight> | <syntaxhighlight> |
Latest revision as of 03:42, 21 July 2021
Function Syntax
boolean get_ignore_zone_warnings()
Returns the value of the KoL option to disable the "This area might be too tough for you" warnings. If KoL ignores those stat requirement warnings, then this returns true.
Code Samples
If the KOL preference "Ignore Zone Warnings" is disabled (the default) and the character's buffed mainstay is below the location's recommended stat, print a warning.
if( !get_ignore_zone_warnings() && my_buffedstat( my_primestat() ) < my_location().recommended_stat )
print( "Warning! Your stat is too low!" );