PF - Request for Macro Help - How to restrict "Mod Report"

Show off your RPG maps, campaigns, and tokens. Share your gaming experiences and stories under General Discussion and save this forum for things you've created that may help others run their own games. Use the subforums when appropriate.

Moderators: dorpond, trevor, Azhrei, Gamerdude

Post Reply
Glock-9mm
Giant
Posts: 178
Joined: Fri Jan 05, 2007 7:53 pm
Location: Wgtn, New Zealand

PF - Request for Macro Help - How to restrict "Mod Report"

Post by Glock-9mm »

Hey team

I want to restrict the Mod report that players can get, at the moment with the below code the player can mod report and NPC/PC

Code: Select all

[MACRO("ConditionReport@Lib:libDnD35Pathfinder"): ""]
With the below I can restrict the Mod Report to GM only

Code: Select all

[H: assert( isGM(), "<b>" + getMacroName() + "</b> is a GM only macro.", 0 )]
[MACRO("ConditionReport@Lib:libDnD35Pathfinder"): ""]
How do I restrict the players version of the Mod Report so they can only report on a token if it has the Tag "PC" rather than "NPC"?

Thanks in advance :)

G-9mm
---
Glock-9mm (Wgtn, NZ)
Shooting from the hip... Never the lip!

Dorn
Cave Troll
Posts: 55
Joined: Sat Mar 30, 2013 8:59 am

Re: PF - Request for Macro Help - How to restrict "Mod Repor

Post by Dorn »

Basically the same macro.

Code: Select all

[H: assert( isPC(getSelected()), "<b>" + getMacroName() + "</b> can only be used on PC tokens.", 0 )]

Glock-9mm
Giant
Posts: 178
Joined: Fri Jan 05, 2007 7:53 pm
Location: Wgtn, New Zealand

Re: PF - Request for Macro Help - How to restrict "Mod Repor

Post by Glock-9mm »

Works like a dream

ur a legend :)
---
Glock-9mm (Wgtn, NZ)
Shooting from the hip... Never the lip!

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

Re: PF - Request for Macro Help - How to restrict "Mod Repor

Post by lmarkus001 »

Alternately, if you want to restrict it to Owners or GMs only (I am incorporating this into a lot of the functions for the next release):

Code: Select all

[H: assert( isOwner() || isGM(), getMacroName() + ": Not your token!" ) ] 

Post Reply

Return to “User Creations”