easiest way is to select the orb in one action then
Code: Select all
actiontrycastbyidontarget[2101,wobjectgetselection[]]
in another action.
for casting BD on your dagger you may have to try a number of things to get it selected.
first pull its template type by manually selecting and using
/vt mexec wobjectgettemplatetype[wobjectgetselection[]]
then using that # try
Code: Select all
actiontryselect[wobjectfindininventorybytemplatetype[InputTemplateNumberHere]]
then if that allows you to select it
Code: Select all
actiontrycastbyidontarget[2101,wobjectgetselection[]]
another option that is a bit more clunky is to manually save the dagger into a variable. by selecting it then
Code: Select all
setvar[Dagger,wobjectgetselection[]]
then
Code: Select all
actiontrycastbyidontarget[2101,getvar[Dagger]]
i remember doing this automatically once by reacting off testvar[Dagger]==0 and chat message for hitting something so i know it is out then using the object class for the weapon to select the nearest one using
Code: Select all
actiontryselect[wobjectfindnearestbyobjectclass[1]]
(1 is objectclass for melee weapons) then in another rule
Code: Select all
All testvar[Dagger]==0 and wobjectgetobjectclass[wobjectgetselection[]]==1
the first conditon makes sure that the variable hasnt been set yet and second confirms that selected item is a melee weapon
then for the action
Code: Select all
setvar[Dagger, wobjectgetselection[]]