Difference between revisions of "disabled"

From OpenKore Wiki
Jump to navigation Jump to search
(Created page with '; disabled [<boolean flag>] : Set this option to '''1''' to temporarily disable the block completely. Example useSelf_item White Potion { hp > 10% disabled 1 } * Even if…')
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
; disabled [<boolean flag>]
+
== [[:Category:Self Condition|Self Condition]] from [[config.txt]]: ==
 +
; disabled <[[boolean]]>
 
: Set this option to '''1''' to temporarily disable the block completely.
 
: Set this option to '''1''' to temporarily disable the block completely.
  
Line 9: Line 10:
  
 
* Even if you have White Potion in your inventory and your hp is bellow 10% you won't use White Potions.
 
* Even if you have White Potion in your inventory and your hp is bellow 10% you won't use White Potions.
 +
 +
== [[EventMacro#Parameters|Parameter]] of the automacro eventMacros: ==
 +
{{Template:Disabled}}
 +
 +
 +
[[Category:Self Condition]]
 +
[[Category:EventMacro_Automacros]]
 +
[[Category:EventMacro_Parameters]]

Revision as of 21:34, 3 July 2019

Self Condition from config.txt:

disabled <boolean>
Set this option to 1 to temporarily disable the block completely.
Example
useSelf_item White Potion {
	hp > 10%
	disabled 1
}
  • Even if you have White Potion in your inventory and your hp is bellow 10% you won't use White Potions.

Parameter of the automacro eventMacros:

disabled <boolean>
  • disabled is an optional parameter.
  • disabled defines if the automacro is active of not.
  • If not used in the automacro the default value will be used, which is: 0.
  • When it's value is 1 the automacro won't activate ever, when it's 0 it can activate normally.
automacro MyAuto1 {
    <automacro conditions and parameters (and only them)>
    disabled 1
    call myMacro1
}
macro myMacro1 {
    <macro instructions (and only them, as this is regular macro)>
    log This macro will never be called by MyAuto1
}

automacro MyAuto2 {
    <automacro conditions and parameters (and only them)>
    disabled 0
    call myMacro2
}
macro myMacro2 {
    <macro instructions (and only them, as this is regular macro)>
    log This macro will be called by MyAuto2 normally
}