/self & /broadcast in the same macro

We are always looking for new tools to create to help facilitate the table top gaming experience. Let us know if you have an idea for a new gaming tool you'd like to see. (Note: this is NOT for feature requests on existing tools!)

Moderators: dorpond, trevor, Azhrei

Post Reply
User avatar
hennebeck
Dragon
Posts: 394
Joined: Sun Jun 01, 2008 12:06 am
Location: THe City of Roses

/self & /broadcast in the same macro

Post by hennebeck »

Is there a command that we can use that will let us do /self that will only broadcast stuff to me and then another command that will tell place stuff in chat?

If I have a magic item, I may want to see a bunch of it's properties and bonuses and range and stuff, but not spam the window and then I also want an attack roll to show to the chat window.


Something like [G: secretstuff, showstuff]

User avatar
Arael
Cave Troll
Posts: 53
Joined: Tue Jul 01, 2008 9:32 pm

Post by Arael »

Why don't u use?

/self secretstuff
/say showstuff

User avatar
hennebeck
Dragon
Posts: 394
Joined: Sun Jun 01, 2008 12:06 am
Location: THe City of Roses

Post by hennebeck »

Doesn't work. The last time I tried that the /say was stuck in the secret part of the /self.
I want them in the same macro. But as soon as you put /self the rest of the macro is hidden.

ElCucuy
Cave Troll
Posts: 50
Joined: Thu Jul 03, 2008 7:30 pm

Post by ElCucuy »

I'm pretty sure we don't have a way to do that currently. I believe maptools only looks at that first slash command and doesn't properly register any others following it.

But I think that if the code that knizia.fan mentioned in another thread is ever implemented, it should allow something like that to work by letting you call that second slash command from another macro. Here is what I'm talking about from the above thread:
knizia.fan wrote:[MACRO: macro_name_string]
Runs the named macro, inserting its text into chat. The token, campaign, and global macros are searched for the given name.
Any variables already defined in the calling code are available to the macro.
Any variables changed by the called macro will be available to the calling code.
Example:

Code: Select all

<!-- "Attack" macro, which gets called by another macro -->
  Attack roll is [AtkRoll = 1d20+10]
  [h: DieRoll = AtkRoll - 10]

Code: Select all

<Calling>
  Here comes a big attack roll!<br>
  [MACRO: "Attack"]
  [if(DieRoll==20, " (it's a critical!)", " (it's not a critical)"
Example output wrote:Here comes a big attack roll!
Attack roll is 19 (it's not a critical)
El Cucuy

User avatar
palmer
Great Wyrm
Posts: 1367
Joined: Sat Sep 06, 2008 7:54 pm

Post by palmer »

A workaround (of sorts) is to have the macro broadcast as normal...

But to put the Self info into a string, and then use input() with the Label type to simply display it as an informational popup

User avatar
lmarkus001
Great Wyrm
Posts: 1867
Joined: Sat Mar 29, 2008 12:30 am
Location: Layfayette Hill, PA

Post by lmarkus001 »

I think the desired functionality "might" come available in the near future:

http://forums.rptools.net/viewtopic.php?t=5665

Post Reply

Return to “Ideas for New Applications”