Macroslot (Slash Command)

From Unofficial Homecoming Wiki
Revision as of 06:17, 13 October 2024 by BlackSpectre (talk | contribs)
Jump to navigation Jump to search

Slash Command

/macroslot macro-slot# name command

Creates a macro in a specified power tray slot

  • Macro-slot# is the number representing the specific power slot you would like the macro button to appear in.
  • Name is the name that will appear on the macro button. It will only accept text, and no images.
  • Command is the command string the macro will execute when clicked.
  • The macro-slot# is determined by counting in sequence from 0 starting on slot 1 of power tray 1, to 89 for slot 10 of power tray 9. For example, slot 10 of tray 1 is macro-slot# 9, slot 1 of tray 2 is macro-slot# 10, and slot 1 of tray 3 is macro-slot# 20.
  • A fast way to determine the macro-slot# you want is to use the tray number as the tens digit and the slot number as the ones digit, combine them, then subtract 11. For example: let's say you want to know the macro-slot# for tray 5, slot 8... 58 - 11 = 47.
  • A macro button created by /macroslot will replace or write over any macro button or power icon that is already in that power slot. If it replaces a macro button already in the power slot, the macro will be deleted. Power icons that are replaced are merely removed from the power tray slot, but can still be found in the Powerlist Window by clicking on the "Powers" menu item at the top of the Power Tray Window, and dragged back into the power tray.
  • The /macroslot command, because it can replace itself, allows macro buttons to utilize rotating text macros using the /bind_load_file command (see Macros for more info). This allows a macro button to do execute different actions on each mouse click.
Power Trays and Macro-slot Numbers
Tray 9 80 81 82 83 84 85 86 87 88 89
Tray 8 70 71 72 73 74 75 76 77 78 79
Tray 7 60 61 62 63 64 65 66 67 68 69
Tray 6 50 51 52 53 54 55 56 57 58 59
Tray 5 40 41 42 43 44 45 46 47 48 49
Tray 4 30 31 32 33 34 35 36 37 38 39
Tray 3 20 21 22 23 24 25 26 27 28 29
Tray 2 10 11 11 13 14 15 16 17 18 19
  Tray 1       0         1         2         3         4         5         6         7         8         9    
Slot # 1 2 3 4 5 6 7 8 9 10


Example

/macroslot 20 "Fly" "powexec_name Fly"