RPTools.net

Discussion and Support

Skip to content

It is currently Mon Oct 23, 2017 10:31 am 






Reply to topic  [ 5 posts ] 

Previous topic | Next topic 

  Print view

Author Message
 Offline
Kobold
 
Joined: Wed Sep 20, 2017 8:24 pm
Posts: 15
 Post subject: What Macro is being run?
PostPosted: Mon Sep 25, 2017 5:41 pm 
Hi,

Is there a way of determining what macro is being run?

e.g. If I have a Macro on the Campaign Window called "Heal" that heals a character with an output like: "HP healed to 25"
and a player has an exact duplicate macro on his Global window.
Is there a way to know which one has been run?

Templar


Top
 Profile  
 
User avatar  Offline
Kobold
 
Joined: Tue Apr 16, 2013 7:19 am
Posts: 23
Location: Netherlands
 Post subject: Re: What Macro is being run?
PostPosted: Mon Sep 25, 2017 6:32 pm 
The simple way is: You can add an hidden line to the end of both macro's that will display a messages that only the game master can see?

Code:
<!-- Your entire macro -->
[G, R: "This is macro 1"]

more complex method is by creating a "Text Output" function and use that to display a message to the game master.


btw, there is a Macro help section under the Maptools Subforum: viewforum.php?f=20

_________________
My own 5th d&d character sheet framework (preview)


Top
 Profile  
 
 Offline
Kobold
 
Joined: Wed Sep 20, 2017 8:24 pm
Posts: 15
 Post subject: Re: What Macro is being run?
PostPosted: Mon Sep 25, 2017 7:26 pm 
Oops, thanks for that. I will use that if future.


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 7888
Location: Bay Area
 Post subject: Re: What Macro is being run?
PostPosted: Mon Sep 25, 2017 8:30 pm 
You use Wiki: getMacroLocation() to determine where a macro is being run from as well.

_________________
Downloads:


Top
 Profile  
 
User avatar  Offline
TheBard
 
Joined: Tue Mar 21, 2006 7:26 pm
Posts: 3482
Location: Austin, Tx
 Post subject: Re: What Macro is being run?
PostPosted: Tue Sep 26, 2017 5:29 am 
There's also Wiki: getMacroName().

_________________
ImageImage ImageImageImageImage
Support RPTools by shopping
Image
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 5 posts ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: No registered users and 1 guest





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman