Square Brackets in Properties

Discuss macro implementations, ask for macro help (to share your creations, see User Creations, probably either Campaign Frameworks or Drop-in Resources).

Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice

Post Reply
welovekah
Kobold
Posts: 10
Joined: Mon Feb 14, 2011 2:37 pm

Square Brackets in Properties

Post by welovekah »

I'm importing a lot of text that uses square brackets and storing it in a token's properties.

This immediately causes issues because any macro that attempts to call a property containing square brackets attempts to parse the contents of the brackets. Even the replace function does not work because it attempts to parse the text in the brackets before replacing it.

Is there a way to tell Maptool to treat this text as literal and not parse the square brackets when reading the property?

Example Text:

Code: Select all

Melee [one-action] fist +32 (lawful, magical, reach 10 feet)

User avatar
wolph42
Winter Wolph
Posts: 9999
Joined: Fri Mar 20, 2009 5:40 am
Location: Netherlands
Contact:

Re: Square Brackets in Properties

Post by wolph42 »

you could probably parse it in a html text box in mt, but if you do that you can as easy just cram that stuff in a text editor first and s/r the []

Post Reply

Return to “Macros”