I'm trying to create a macro with a drop down list which is populated by the data in a token's property. This much I have completed and functioning.
Where I need the help is converting the numerical value of the selected option over to the string value
Example:
Token A has property called Spells. this property contains magic missile, fireball, and cloud kill.
When I click the cast spell macro, the dialog opens and I select fireball.
I want an output in chat that says "Token A casts fireball"
Converting selected list option from number to string
Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice
Re: Converting selected list option from number to string
in the input (assuming you use that) function, you can set the option: VALUE=STRING that will return a string instead of the numeric value
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS