Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

NPC Chatter and Merchants

Heyas! I'm looking for ways to recreate the functionalities shown in this video: <a href="https://www.youtube.com/watch?v=W6z0pMUBAz8" rel="nofollow">https://www.youtube.com/watch?v=W6z0pMUBAz8</a> Specifically... NPC Chatter: When a token set up for this is clicked, a pop-up displays a randomized line of text (or just the default if there's only one line). Although intended for random NPC lines such as "Tabaxi has wares, if you have coin..." or "Bree-yark!" it could also be used to create interactive maps or distribute items from a rumor table. (I'm currently using Nick Olivo's interactive maps macros, and they work, but this would be a lot faster and simpler from the players' POV.) Loot Sheet: Allows players to drag-and-drop money and items from an NPC's inventory into their own or vice-versa, such as looting slain foes. When used with the "merchant" option, it automatically buys/sells the item, transferring the appropriate amount of funds. There is an API script out there called "PurseStrings," but to be honest I couldn't figure out how to make it work, and there aren't any tutorial vids as far as I can tell. ( Trigger Happy: A helper scripts that makes these other two work. I don't know enough about scripting in Roll20 to know if it would be needed.) Any recommendations? :) Thanks!
1651767989
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
The Purse Strings script is similar to the loot sheet. It allows you to set up shops and delete funds as items are purchased. I do not recall if it auto-adds the item to inventory, though. There is a script floating around that does something similar to NPC Chatter using emojis, but if I were going to create one, I would probably just use the new Tooltip function. It would not be difficult to read a list of phrases off of a section of the token notes and display them randomly in the tooltip field. Such a script would need to be built, though. I don't think anything like that currently exists.
Oh dang, that tooltip function is a good start! I never even noticed it. Thanks for the heads-up!