autoSwitch

From OpenKore Wiki
Revision as of 20:34, 15 December 2009 by Mushrom (talk | contribs) (Created page with 'Automatically switch weapons, shields and/or arrows when certain monsters are engaged. == Syntax == autoSwitch [<monster names>] { rightHand [<equipment name>] leftHand [<e…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

Syntax

autoSwitch [<monster names>] {
	rightHand [<equipment name>]
	leftHand [<equipment name>]
	arrow [<arrow name>]
	distance [<number>]
	useWeapon [<boolean flag>]
}

Attribute definitions


autoSwitch [<monster names>]
This option specifies a comma-separated list of monster names which, when encountered, will trigger the auto-switch.


rightHand [<equipment name>]
This option specifies the weapon to automatically equip in the right hand slot.
Note. To attack with bare hands, specify [NONE].


leftHand [<equipment 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 [<arrow 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 flag>]
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.


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 High Orc {
    	rightHand +7 VVS Ice Flamberge
}