autoConfChange: Difference between revisions

From OpenKore Wiki
Jump to navigation Jump to search
(Created page with '; autoConfChange [{list of files}] { ::; minTime [<seconds>] ::; varTime [<seconds>] ::; lvl [<range>] ::; joblvl [<range>] ::; isJob [<[[classe…')
 
m (Conversion script moved page AutoConfChange to autoConfChange: Converting page titles to lowercase)
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
; autoConfChange [{list of files}] {
Auto switch to random config file from the specified list of files.
::; minTime [<seconds>]
 
::; varTime [<seconds>]
== Syntax ==
::; lvl [<[[range format|range]]>]
autoConfChange <comma-separated list of files> {
::; joblvl [<[[range format|range]]>]
minTime <seconds>
::; isJob [<[[classes|job]]>]
varTime <seconds>
; }
lvl <range>
joblvl <range>
isJob <job>
}
 
=== Attribute definitions ===
; autoConfChange
: This option specifies a comma-separated list of filenames that Kore will automatically switch to. A random file out of the specified list will be selected.
 
; minTime <seconds>
: If this option is set, Kore will automatically switch config files in time intervals not less than the specified number of seconds.
 
; varTime <seconds>
: If this option is set, the time interval between automatic config switches is randomized. The actual time interval will then be equal to the randomized value of varTime added to the value of minTime.
 
; lvl <[[References#Range_Operators|range]]>
: If this option is set, only switch config file if you're within the specified level range.
 
; joblvl <[[References#Range_Operators|range]]>
: If this option is set, only switch config file if you're within the specified job level range.
 
; isJob <job class>
: If this option is set, only switch config file if you're of the specified job class.
 
== Examples ==
In the following example, Kore will load the config file config_2.txt at a random time between 3600 seconds (1 hour) and 5400 seconds (1.5 hour), and when the character is currently a Thief class:
 
autoConfChange control\config_2.txt {
minTime 3600
varTime 1800
isJob Thief
}


: Enables auto switching to one random [[config.txt|config file]] from the specified comma-separated list when all block conditions are met, with minimum interval of '''minTime''' and maximum of '''minTime+varTime'''.


[[Category:config.txt]]
[[Category:config.txt]]
[[Category:config block]]

Latest revision as of 22:34, 26 April 2021

Auto switch to random config file from the specified list of files.

Syntax

autoConfChange <comma-separated list of files> {
	minTime <seconds>
	varTime <seconds>
	lvl <range>
	joblvl <range>
	isJob <job>
}

Attribute definitions

autoConfChange
This option specifies a comma-separated list of filenames that Kore will automatically switch to. A random file out of the specified list will be selected.
minTime <seconds>
If this option is set, Kore will automatically switch config files in time intervals not less than the specified number of seconds.
varTime <seconds>
If this option is set, the time interval between automatic config switches is randomized. The actual time interval will then be equal to the randomized value of varTime added to the value of minTime.
lvl <range>
If this option is set, only switch config file if you're within the specified level range.
joblvl <range>
If this option is set, only switch config file if you're within the specified job level range.
isJob <job class>
If this option is set, only switch config file if you're of the specified job class.

Examples

In the following example, Kore will load the config file config_2.txt at a random time between 3600 seconds (1 hour) and 5400 seconds (1.5 hour), and when the character is currently a Thief class:

autoConfChange control\config_2.txt {
	minTime 3600
	varTime 1800
	isJob Thief
}