autoSwitch: Difference between revisions

From OpenKore Wiki
Jump to navigation Jump to search
(Created page with 'Automatically switch weapons, shields and/or arrows when certain monsters are engaged. == Syntax == autoSwitch [<monster names>] { rightHand [<equipment name>] leftHand [<e…')
 
m (Conversion script moved page AutoSwitch to autoSwitch: Converting page titles to lowercase)
 
(4 intermediate revisions by 3 users not shown)
Line 2: Line 2:


== Syntax ==
== Syntax ==
  autoSwitch [<monster names>] {
  autoSwitch <[[References#Monster_Names|monster names]]> {
  rightHand [<equipment name>]
  rightHand {<[[References#Item_Names|item name]]> | NONE}
  leftHand [<equipment name>]
  leftHand <[[References#Item_Names|item name]]>
  arrow [<arrow name>]
  arrow <[[References#Item_Names|item name]]>
  distance [<number>]
  distance <[[number]]>
  useWeapon [<boolean flag>]
  useWeapon <boolean>
  }
  }


=== Attribute definitions ===
=== Attribute definitions ===
----
; autoSwitch <monster names>
 
; autoSwitch [<[[References#Monster Names|monster names]]>]
: This option specifies a comma-separated list of monster names which, when encountered, will trigger the auto-switch.  
: This option specifies a comma-separated list of monster names which, when encountered, will trigger the auto-switch.  


 
; rightHand <item name>
; rightHand [<[[References#Equipment Names|equipment name]]>]
: This option specifies the weapon to automatically equip in the right hand slot.
: This option specifies the weapon to automatically equip in the right hand slot.


Line 23: Line 20:




; leftHand [<[[References#Equipment Names|equipment name]]>]
; leftHand <item name>
: This option specifies the equipment (weapon or shield) to automatically equip in the left hand slot.
: This option specifies the equipment (weapon or shield) to automatically equip in the left hand slot.


Line 29: Line 26:




; arrow [<arrow name>]
; arrow <item name>
: If you're using a bow class weapon, this option specifies the arrows to use.
: If you're using a bow class weapon, this option specifies the arrows to use.




; distance [<number>]
; distance <number>
: If this option is set, this will temporarily replace the value of [[attackDistance]] when auto-switch occurs. The original value is stored and will be reset when you encounter another monster not in the list specified in autoSwitch.
: If this option is set, this will temporarily replace the value of [[attackDistance]] when auto-switch occurs. The original value is stored and will be reset when you encounter another monster not in the list specified in autoSwitch.




; useWeapon [<boolean flag>]
; useWeapon <[[References#boolean_flag|boolean]]>
: If this option is set, this will temporarily replace the value of [[attackUseWeapon]] when auto-switch occurs. The original value is stored and will be reset when you encounter another monster not in the list specified in autoSwitch.
: If this option is set, this will temporarily replace the value of [[attackUseWeapon]] when auto-switch occurs. The original value is stored and will be reset when you encounter another monster not in the list specified in autoSwitch.


:'''Note.''' If you encounter a monster not listed in any of your autoSwitch blocks, Kore will equip the items specified in [[autoSwitch_default_rightHand]], [[autoSwitch_default_leftHand]], and [[autoSwitch_default_arrow]] if these options are set.
== Examples ==
 
Switch weapon to a +7 Very Very Strong Ice Flamberge when it encounters a High Orc, and switch back to +8 Triple Bloody Saber when attacking other monsters:
 
== Example ==
* Switch weapon to a +7 Very Very Strong Ice Flamberge when it encounters a High Orc, and switch back to +8 Triple Bloody Saber when attacking other monsters:
 
  autoSwitch_default_rightHand +8 Saber [Hydra*3] [3]
  autoSwitch_default_rightHand +8 Saber [Hydra*3] [3]
   
   
Line 52: Line 45:
  }
  }


== Notes ==
If you encounter a monster not listed in any of your autoSwitch blocks, Kore will equip the items specified in [[autoSwitch_default_rightHand]], [[autoSwitch_default_leftHand]], and [[autoSwitch_default_arrow]] if these options are set.


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

Latest revision as of 22:34, 26 April 2021

Automatically switch weapons, shields and/or arrows when certain monsters are engaged.

Syntax

autoSwitch <monster names> {
	rightHand {<item name> | NONE}
	leftHand <item name>
	arrow <item name>
	distance <number>
	useWeapon <boolean>
}

Attribute definitions

autoSwitch <monster names>
This option specifies a comma-separated list of monster names which, when encountered, will trigger the auto-switch.
rightHand <item name>
This option specifies the weapon to automatically equip in the right hand slot.
Note. To attack with bare hands, specify [NONE].


leftHand <item name>
This option specifies the equipment (weapon or shield) to automatically equip in the left hand slot.
Note. Leave this attribute blank if you are switching to a two-handed weapon.


arrow <item name>
If you're using a bow class weapon, this option specifies the arrows to use.


distance <number>
If this option is set, this will temporarily replace the value of attackDistance when auto-switch occurs. The original value is stored and will be reset when you encounter another monster not in the list specified in autoSwitch.


useWeapon <boolean>
If this option is set, this will temporarily replace the value of attackUseWeapon when auto-switch occurs. The original value is stored and will be reset when you encounter another monster not in the list specified in autoSwitch.

Examples

Switch weapon to a +7 Very Very Strong Ice Flamberge when it encounters a High Orc, and switch back to +8 Triple Bloody Saber when attacking other monsters:

autoSwitch_default_rightHand +8 Saber [Hydra*3] [3]

autoSwitch High Orc {
    	rightHand +7 VVS Ice Flamberge
}

Notes

If you encounter a monster not listed in any of your autoSwitch blocks, Kore will equip the items specified in autoSwitch_default_rightHand, autoSwitch_default_leftHand, and autoSwitch_default_arrow if these options are set.