This one is stumping me:
I have a link displayed as an HTML image. The link calls a macro called SHEET@LIB:Controls and passes the calling Token ("Marco Polo" in this example) as it's parameter. Here is what the link is (when I print it using the broadcast(Link) command for debugging purposes):
[H: Link = macroLinkText("SHEET@LIB:Controls", "", "Marco Polo", "Marco Polo")]
[H: broadcast(Link)]
Result with: macro://SHEET@LIB:Controls//Marco Polo?Marco+Polo
When I click on this image (link) it goes to the SHEET@LIB:Controls macro. So far everything is good and dandy.
However, no parameters are noticed and even the getName() function results in an error???
Here's my first line of code in the SHEET@LIB:Controls macro:
[H: broadcast("Params: " + macro.args)]
Result with: Params:
Notice the missing parameters.
Why oh why? I've done this so many times in the past and I've never run into this issue. What am I missing?
TIA.
Link not passing parameters or token issue
Thoughts, Help, Feature Requests, Bug Reports, Developing code for...
Moderators: dorpond, trevor, Azhrei
Forum rules
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior.
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior.
Jump to
- General
- ↳ Announcements
- ↳ Ideas for New Applications
- ↳ General Discussion
- ↳ Developer Notes
- ↳ Java Programming Info
- ↳ User Creations
- ↳ Requests for HELLLLP!
- ↳ Tilesets, Token Libraries, and Complete Maps
- ↳ Token Libraries
- ↳ Tilesets/Graphics for Map-making
- ↳ Complete Maps
- ↳ Campaign Frameworks
- ↳ D&D 5e Frameworks
- ↳ D&D 4e Frameworks
- ↳ D&D 3.5/Pathfinder 1e Campaign Macros
- ↳ D&D 3.5 & PF1e Framework
- ↳ Shadowrun 4e Frameworks
- ↳ Savage Worlds Frameworks
- ↳ Published Module Support
- ↳ Tutorials
- ↳ Graphics, Images, Tokens, Maps
- ↳ Drop-In Macros and Scripts
- ↳ Campaign Frameworks
- ↳ Drop-In Macro Resources
- ↳ Links & External Resources
- ↳ Looking For Group
- ↳ "Living" Campaigns
- ↳ Dungeons and Dragons
- ↳ Savage Worlds
- ↳ WoD
- ↳ Wargaming
- ↳ Documentation Requests/Discussion
- ↳ Session Report-Back
- Tools
- ↳ MapTool
- ↳ How To
- ↳ Macros
- ↳ Feature Requests
- ↳ Resolved
- ↳ Bug Reports
- ↳ Resolved
- ↳ WIP - User FAQ
- ↳ Testing
- ↳ MapTool 1.4
- ↳ TokenTool
- ↳ DiceTool
- ↳ InitiativeTool
- ↳ CharacterTool
- ↳ Support: d20 D&D
- ↳ Support: D&D 4e
- ↳ Support: Hero System
- ↳ Support: Savage Worlds
- ↳ Support: GURPS
- Other
- ↳ RPTools Sightings
- ↳ Running Campaigns
- ↳ Thiera's College of Adventurers
- ↳ Age of Might
- ↳ Scales of War
- ↳ Renwold
- ↳ Dead Men Walking
- ↳ Dark Sun - 4th Edition
- ↳ Warhammer Fantasy Roleplay
- ↳ Return of Uchly Namen
- ↳ Insert Campaign Here
- ↳ Antium
- ↳ The Mystic Moon
- ↳ World of Lagal
- ↳ GangerRun
- ↳ FB Scales of War
- ↳ Sellswords of Eberron
- ↳ Archive
- ↳ Orbs of Chaos
- ↳ World of Omegus
- ↳ Keep on the Shadowfell - 4E
- ↳ Rise of the Runelords
- ↳ Aurith In The Age Of Steam
- ↳ Widdershins
- ↳ Nos's Pathfinder Campaign
- ↳ Falcons Hollow
- ↳ Verwirrte Welten
- ↳ With it or on it
- ↳ Starter Set - Jeff