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

[Script Request] Dialogue Choices in Chat

I don't know if this has been brought up or not, I can't seem to find anything in the forums. I use a modified version of the "Morality" script (love it) where I can specify two choices or answers. Would there be a way to make clickable API buttons in chat tied to those choices? Or would that be like a huge rewrite of the script? I envision an old "Zork" like setup (if you remember those!) for some aspects where the party feels like their choice really matters and is not decided by the DM alone. Say for instance I'd have an old seer asks the party two questions. I then present two choices from which they could decide a course of action and have predetermined answers for each choice? Is this a bit much? I usually handle everything verbally but last session the group really responded to the "Morality" issues I presented. Maybe this is something I can accomplish with macros?
1429590409
The Aaron
Pro
API Scripter
Not sure about hacking that into Morality, but in general that can totally be done. I've mentioned in the past that now I can write Zork in the Chat with the advent of API buttons. Stephen uses the heck out of them.
1429590922

Edited 1429592288
Ya I'm reading up on how to do it now. I really need to get that Javascript book you recommended! *edit- On second thought, too far beyond me! I'll stick with what I can handle...
Yes it can be done. Morality is a relatively simple script, markup doesn't translate when arriving via the script interface so you'll have to resolve that. For your case I'm guessing you want dialog choices where you click one and there's a response which is completely doable. You might want to devise a method so your players don't end up just pushing all of the buttons such as invalidating old decisions once one is made.
The script writing is beyond me. I can barely get other peoples scripts to work let alone write my own or re-write someone else's. What I envisioned would be an alteration of Morality or another script altogether where you could input a block of text and then input two possible "answers" (or more) that which would be tied to other blocks of text. The "answer" API buttons pop up when a macro triggers the initial text. When clicked the API buttons produce another block of text. Or something like that. Unless one of the scriptomancers write something like this I guess I'll be SOL. I don't have the skills!