Instrumentwechsel Makro

Aus Arindal Wiki

Wechseln zu: Navigation, Suche
// collection of simple instrument switching macros
// /inst <name>  : equip instrument "<name>", remove it from the box first if necessary
//                 you don't have to enter the full name, e.g. "/inst harp" is enough
// /instr <name> : put instrument "<name>" back into the box
// /instrall     : put all instruments back in the box (uncomment instruments you actually have first)
//
// If you have song macros, you can include these commands to select your instruments, for example:
//
// /playme
// {
//   // remember item in right hand
//   set righthand @my.right_item
//
//   // equip Harperte, even if it's in the box
//   set iname "Harperte"
//   call inst
//
//   // play song
//   "/use ceg+C \r"
//
//   // remove instrument
//   call instr
//
//   // re-equip your right hand
//   "/equip " righthand "\r"
// }
//
// Note, however, that this will unequip the instrument immediatedly after the song *started* playing.
// To prevent this from happening, use this simple version, which will clutter your inventory
// with instruments, though, unless you put them back in the box yourself:
//
// /playme
// {
//   // equip Harperte, even if it's in the box
//   set iname "Harperte"
//   call inst
//
//   // play song
//   "/use ceg+C \r"
// }

inst
{
  $ignore_case
  if @my.right_item <= iname 
  else
    "/equip " iname " \r"
    if @my.right_item <= iname 
    else
      "/equip Instrumenten-Box \r"
      "/use /remove " iname " \r"
      "/equip " iname " \r"
    end if
  end if
}

instr
{
  "/equip Instrumenten-Box \r"
  "/use /add " iname " \r"
}

"/inst"
{
  set iname @text
  call inst
}

"/instr"
{
  set righthand @my.right_item
  set iname @text
  call instr
  "/equip " righthand "\r"
}

"/instrall"
{
  set righthand @my.right_item
  "/equip Instrumenten-Box \r"
  "/use /add Harperte \r"
  "/use /add Fluote \r"
  "/use /add Dodelmuzak \r"
//"/use /add Violine \r"
//"/use /add Ocarina \r"
//"/use /add Gitor \r"
//"/use /add Orgadrom \r"
//"/use /add Trifluote \r"
//"/use /add Konshell \r"
//"/use /add Xylo \r"
//"/use /add Vibra \r"
//"/use /add Tuborn \r"
  "/equip " righthand "\r"
}
Persönliche Werkzeuge