Blokus
08-22-2007, 10:25 AM
Had an idea. Not sure yet what I'm going to do with it, but it might be useful for someone. Others have probably already thought of this but I haven't seen it mentioned anywhere yet.
The idea is to have a way to set a switch in one macro and do something in a different (or maybe the same) macro based on the status of that switch. Using the various "equip" commands and options in macros could accomplish this.
/equip <item name>
will place the named item into its default slot on the character, so
/equip Brown Linen Shirt
would put on the Brown Linen Shirt.
Likewise
/cast Brown Linen Shirt
also puts on the shirt as well as takes it off. It does a toggle. /equip might also be a toggle, but I'm not sure and my PC setup is down for a day or two for repair so I can't test. However, I did test the /cast command briefly before I went down and it worked for taking the shirt off and on. So let's go with the /cast command for the rest of this.
Here are the commands for putting on / taking off the shirt:
Toggle shirt on/off (already mentioned but repeated here):
/cast Brown Linen Shirt
Make sure shirt is off:
/cast [equipped:shirt] Brown Linen Shirt
Make sure shirt is on:
/cast [noequipped:shirt] Brown Linen Shirt
So with this you can now make a decision in another macro based on whether or not you are wearing a shirt. Say you are a fire mage and normally have your keys setup for fire spells. But you are grinding on a few fire elementals in the Outlands for a bit and they are immune to fire. Use this:
/cast [equipped:shirt] fireball; frostbolt
Voila! You just made a decision on what to cast based on your wardrobe. Leave your shirt on, fireball, take it off, frostbolt. Ok, not a great example as you probably already have a handy key for frostbolt, but it still illustrates the point I think.
You could do the same thing with other equipment slots and possibly get some really wierd and wild "logic" going on between your macros.
Just a thought. If anyone comes up with a really good use for this, post it.
The idea is to have a way to set a switch in one macro and do something in a different (or maybe the same) macro based on the status of that switch. Using the various "equip" commands and options in macros could accomplish this.
/equip <item name>
will place the named item into its default slot on the character, so
/equip Brown Linen Shirt
would put on the Brown Linen Shirt.
Likewise
/cast Brown Linen Shirt
also puts on the shirt as well as takes it off. It does a toggle. /equip might also be a toggle, but I'm not sure and my PC setup is down for a day or two for repair so I can't test. However, I did test the /cast command briefly before I went down and it worked for taking the shirt off and on. So let's go with the /cast command for the rest of this.
Here are the commands for putting on / taking off the shirt:
Toggle shirt on/off (already mentioned but repeated here):
/cast Brown Linen Shirt
Make sure shirt is off:
/cast [equipped:shirt] Brown Linen Shirt
Make sure shirt is on:
/cast [noequipped:shirt] Brown Linen Shirt
So with this you can now make a decision in another macro based on whether or not you are wearing a shirt. Say you are a fire mage and normally have your keys setup for fire spells. But you are grinding on a few fire elementals in the Outlands for a bit and they are immune to fire. Use this:
/cast [equipped:shirt] fireball; frostbolt
Voila! You just made a decision on what to cast based on your wardrobe. Leave your shirt on, fireball, take it off, frostbolt. Ok, not a great example as you probably already have a handy key for frostbolt, but it still illustrates the point I think.
You could do the same thing with other equipment slots and possibly get some really wierd and wild "logic" going on between your macros.
Just a thought. If anyone comes up with a really good use for this, post it.