Difference between revisions of "autoSwitch"

From OpenKore Wiki
Jump to navigation Jump to search
Line 7: Line 7:
 
  arrow <[[References#Item_Names|item name]]>
 
  arrow <[[References#Item_Names|item name]]>
 
  distance <[[number]]>
 
  distance <[[number]]>
  useWeapon <[[boolean]]>
+
  useWeapon <boolean>
 
  }
 
  }
  
Line 34: Line 34:
  
  
; useWeapon <boolean>
+
; 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.
  

Revision as of 20:57, 6 July 2019

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.