How to Create Macros and Change Text Formats

Gameplay Mechanics Explained and Helpful Advice on Technical Issues

Moderator: Moderator

breteas
Posts: 1444
Joined: Mon Jan 31, 2011 4:15 am

Re: How to Create Macros and Change Text Formats

Unread post by breteas »

////
Italic: <i> </i>
Bold: <b> </b>

Blues:
<C=aliceblue> </c>
<C=azure> </c>
<C=honeydew> </c>
<C=lightcyan> </c>
<C=powderblue> </c>
<C=paleturquoise> </c>
<C=lightsteelblue> </c>
<C=lavender> </c>
<C=lightblue> </c>
<C=lightskyblue> </c>
<C=skyblue> </c>
<C=cornflowerblue> </c>
<C=steelblue> </c>
<C=cadetblue> </c>
<C=teal> </c>
<C=dodgerblue> </c>
<C=deepskyblue> </c>
<C=aqua> </c>
<C=darkturquoise> </c>
<C=aquamarine> </c>
<C=mediumaquamarine> </c>
<C=turquoise> </c>
<C=mediumturquoise> </c>
<C=blue> </c>
<C=mediumblue> </c>
<C=darkblue> </c>
<C=navy> </c>
<C=midnightblue> </c>

Yellows / Reds:
<C=moccasin> </c>
<C=tan> </c>
<C=lightyellow> </c>
<C=lightgoldenrodyellow> </c>
<C=lemonchiffon> </c>
<C=palegoldenrod> </c>
<C=khaki> </c>
<C=wheat> </c>
<C=darkkhaki> </c>
<C=sienna> </c>
<C=saddlebrown> </c>
<C=peru> </c>
<C=chocolate> </c>
<C=salmon> </c>
<C=lightcoral> </c>
<C=coral> </c>
<C=tomato> </c>
<C=sandybrown> </c>
<C=lightsalmon> </c>
<C=darksalmon> </c>
<C=palevioletred> </c>
<C=indianred> </c>
<C=yellow> </c>
<C=gold> </c>
<C=orange> </c>
<C=darkorange> </c>
<C=orangered> </c>
<C=red> </c>
<C=crimson> </c>
<C=firebrick> </c>
<C=brown> </c>
<C=darkred> </c>
<C=maroon> </c>

Purples:
<C=hotpink> </c>
<C=deeppink> </c>
<C=mediumvioletred> </c>
<C=fuchsia> </c>
<C=violet> </c>
<C=orchid> </c>
<C=mediumorchid> </c>
<C=blueviolet> </c>
<C=darkorchid> </c>
<C=darkviolet> </c>
<C=purple> </c>
<C=rosybrown> </c>
<C=thistle> </c>
<C=lavenderblush> </c>
<C=mistyrose> </c>
<C=pink> </c>
<C=lightpink> </c>
<C=plum> </c>
<C=mediumpurple> </c>
<C=mediumslateblue> </c>
<C=slateblue> </c>
<C=darkslateblue> </c>
<C=indigo> </c>

Greens:
<C=lightseagreen> </c>
<C=mediumseagreen> </c>
<C=seagreen> </c>
<C=lightgreen> </c>
<C=limegreen> </c>
<C=mediumspringgreen> </c>
<C=springgreen> </c>
<C=palegreen> </c>
<C=lime> </c>
<C=chartreuse> </c>
<C=yellowgreen> </c>
<C=greenyellow> </c>
<C=green> </c>
<C=darkgreen> </c>
<C=olive> </c>
<C=olivedrab> </c>
<C=darkolivegreen> </c>
<C=darkseagreen> </c>
<C=forestgreen> </c>

Whites:
<C=white> </c>
<C=whitesmoke> </c>
<C=seashell> </c>
<C=oldlace> </c>
<C=snow> </c>
<C=linen> </c>
<C=ivory> </c>
<C=antiquewhite> </c>
<C=beige> </c>
<C=blanchedalmond> </c>
<C=papayawhip> </c>
<C=bisque> </c>
<C=peachpuff> </c>
<C=cornsilk> </c>
<C=floralwhite> </c>
<C=ghostwhite> </c>
<C=mintcream> </c>
<C=burlywood> </c>

Grays:
<C=silver> </c>
<C=lightgrey> </c>
<C=gainsboro> </c>
<C=gray> </c>
<C=dimgray> </c>
<C=lightslategray> </c>
<C=slategray> </c>
<C=darkslategray> </c>
<C=darkgray> </c>
<C=black> </c>
\\\\
breteas
Posts: 1444
Joined: Mon Jan 31, 2011 4:15 am

Re: How to Create Macros and Change Text Formats

Unread post by breteas »

Hope this helps. If you are stuck while trying this, feel free to poke me IG for a demo/help .

Edit: In short, I don't memorize all this.. I copy paste the lot. Feel free to spread it around.
DM Ignotus
Posts: 131
Joined: Sun Feb 26, 2012 2:02 am

Re: How to Create Macros and Change Text Formats

Unread post by DM Ignotus »

This would be valuable stuff to go into BG Player wiki...
Cyber Troll
Posts: 3
Joined: Sun Mar 04, 2012 11:56 am

Re: How to Create Macros and Change Text Formats

Unread post by Cyber Troll »

Thanks alot all... Got it figured out....
Rainbow Prism
Posts: 400
Joined: Sun Jul 18, 2010 2:57 am

Re: How to Create Macros and Change Text Formats

Unread post by Rainbow Prism »

First of all, thank you for custom postures that richen RP. I liked emotes a lot.

But, it seems these new emotes do not work for characters of non-standard sizes, like gnomes.
When someone calls you elitist, he automatically admits that your RP is superior to his.
breteas
Posts: 1444
Joined: Mon Jan 31, 2011 4:15 am

Re: How to Create Macros and Change Text Formats

Unread post by breteas »

Not all races seem to have animations made for every emote.
yangfeng
Posts: 2
Joined: Sat May 11, 2013 2:54 am
Location: hefeifeicuilu
Contact:

Re: How to Create Macros and Change Text Formats

Unread post by yangfeng »

If these macros are lost each time we boot up the computer, then it somewhat defeats the purpose of them.




______________________________________________________________
-=The Dali
--== Unabashed Alex Lifeson Fan
Cheap Diablo 3 Gold
Buy Runescape Gold
breteas
Posts: 1444
Joined: Mon Jan 31, 2011 4:15 am

Re: How to Create Macros and Change Text Formats

Unread post by breteas »

You can redo macros in seconds. Also, they are being saved properly now.
RyzaJr
Posts: 25
Joined: Sat Sep 05, 2015 4:15 pm

Re: How to Create Macros and Change Text Formats

Unread post by RyzaJr »

breteas wrote:...
*Goes straight to the "inappropriate" stuff*

Hmm!..

Anyway, thanks for the examples on how to do these.
User avatar
Tsidkenu
Posts: 3962
Joined: Tue May 27, 2014 12:04 am
Location: Terra Nullis

Re: How to Create Macros and Change Text Formats

Unread post by Tsidkenu »

Taken unashamedly from the Client Extension Readme!

Casting Spells from Macros
The /cast command (usable both outside and inside of macros) allows you to cast a spell by name.

When naming a spell, you should use the spell's full display name. For spells with sub-spells (for example, Protection from Alignment), it is usually best to cast the specific sub-spell you want. (Many such spells will either do nothing or take a default behavior that you might not like when casting the main spell directly.)

For example, if you wanted to cast Protection from Alignment's Protectiom from Evil sub-spell, you could use the following command:

/cast Protection from Evil

Spells can also be given metamagic modifiers as a comma-separated list. The following are the metamagic modifier names that are accepted:

empower
extend
maximize
quicken
silent
still
persistent
permanent

You must have the appropriate feats and spell levels or readied spell memorizations available to successfully cast a spell. Otherwise, the spell casting attempt fails.

The /cast command always uses your current target, unless the spell in question can only be cast on yourself, in which cast your character is automatically used as the target.

It is currently not possible to cast spells on the ground with /cast.

Similarly to spells, the /feat <Feat-Name> command can be used to invoke a feat from a macro. Only feats that are activateable may be referenced via this command. For example, to activate the Racial Spell (Light) feat, one might use the following command:

/feat Racial Spell (Light)

Subradial feat selection is not currently supported.

Custom Hotbar Macros

Custom macro hotbar buttons are a new feature that the Client Extension adds to the game. Macros allow you to assign a set of text commands that run when you press a hotbar button.

This feature is particularly useful when you have a large number of repetitive actions that you would like to consolidate into just one keypress. For a familiar example, you could create a single hotbar button that, when pressed, would activate all of a Cleric's, or Wizard's buff spells.

To create a hotbar macro button, use the /setmacro command as follows:

/setmacro <hotbar button number> <command1>[;command2;commandN]

"Hotbar button number" indicates the hotbar button which will be turned into a macro-enabled hotbar button. Button 1 is the first hotbar button, on row 1. Button 13 is the first hotbar button on row 2, and buttom 15 is the third hotbar button on row 2, and so on.

After the hotbar button number, you may provide a list of text commands that are processed when the hotbar button is pressed. If you would like to run more than one text command, separate the commands with a semicolon.

Any Client Extension text command, and any text command supported by the game client itself may be used in a macro. You may also macro up simple chat text, if desired.

The most common use of macro hotbar buttons is to cast several spells in succession. There are two ways to do this: by spell name, and by referencing a different hotbar button.

Tutorial
Creating a hotbar button to cast several buffs at once via casting spells by name.

Let's say that you want to have a single hotbar button which casts several offensive spells, all in one go. (The spells would be enqueued up to be cast one after another, just as if you hit two hotbar buttons separately.)

For this example, we will create a hotbar button which casts a quickened version of Isaac's Lesser Missle Storm, followed by Flame Arrow.

This task can be easily automated by creating a hotbar button that casts both of these spells. We will use the /cast macro command, which looks up a spell by name, and casts it on your current target.

We can construct a sequence of /cast commands that will cast the spells that we want as follows:

/cast "Isaac's Lesser Missile Storm" quicken
/cast Flame Arrow

The first spell casts the lesser missle storm spell, with the "quicken" metamagic property. If you wanted to add other metamagic properties to a spell, you could specify them in a comma-separated list.

For instance, to cast a silent and still Magic Missle spell, you would use the following command:

/cast "Magic Missile" still, silent

Now, back to our example. We can create a hotbar button that will run both of the above macro commands with the /setmacro command. Here, we will assign the macro to hotbar button 1, which is the first button on the first hotbar row.

/setmacro 1 /cast "Isaac's Lesser Missile Storm" quicken ; /cast Flame Arrow

That's all there is to it. Now, the next time you press that hotbar button, all of the spells you have listed in the macro will be cast.

Tutorial
Creating a hotbar button to cast several buffs at once via hotbar buttons.

Let's consider that you want to cast several buff spells with one hotbar button. This task can be easily accomplished with the /setmacro command.

First, you must place the spells that you would like to cast on their own hotbar slots. We'll use hotbar buttons 2, 3, and 4 for this example, so drag the spells that you would like to cast onto those buttons (first hotbar row).

Now, for this example, we will turn the first hotbar button into a macro-enabled button which will use buttons 2, 3, and 4. After you have set up those three hotbar buttons, type the following command:

/setmacro 1 /hotbar 2 ; /hotbar 3 ; /hotbar 4

If everything worked out, you should see a couple of messages written to your combat log, along the lines of "Configuring macro command: /hotbar 2". You should also have a new hotbar button which has a "2D Missing Texture" icon in the button 1 slot. (Don't worry about the missing texture; the button will still work fine.)

That's it; you're done! Now, the next time you press the first hotbar button on row 1, the actions that you have assigned to buttons 2-4 will be carried out.
  • Tip: If you have buff spells that can buff an ally, select that ally before you push the macro-enabled hotbar button. Macros will use your currently selected target for their spell targets, for spells that may target a creature other than yourself.

User avatar
Babuguuscooties
Posts: 496
Joined: Tue Aug 01, 2017 8:20 pm

Re: How to Create Macros and Change Text Formats

Unread post by Babuguuscooties »

Is there a way to set a macro for an entire spellbook? Like, to swap out all your spells at once for different situations?
I play Nedrin <3
User avatar
Glowfire
Posts: 1814
Joined: Thu Jul 28, 2016 9:14 am

Re: How to Create Macros and Change Text Formats

Unread post by Glowfire »

Read the Client Extension text file. It has the information you ask for.
Power is the most persuasive rhetoric.
Friedrich von Schiller
User avatar
Babuguuscooties
Posts: 496
Joined: Tue Aug 01, 2017 8:20 pm

Re: How to Create Macros and Change Text Formats

Unread post by Babuguuscooties »

Thanks, found it.
I play Nedrin <3
Blackbird
Posts: 115
Joined: Thu Mar 29, 2012 11:54 pm

Re: How to Create Macros and Change Text Formats

Unread post by Blackbird »

Does anyone know if you can enable track/detect via a macro command? I'd like to make a macro to enable stealth/track/detect. I've checked the readme, but there's no reference to either and /track, /detect or /search and variations (like treating track as a feat) don't work.

EDIT: Managed to get it working using the hotbar button "workaround," but that creates a lot of hotbar clutter.
Hi, my name is Blackbird and I'm an altoholic.
Post Reply

Return to “Gameplay Guides”