Code:
mob/var/nexttext=""
mob
Topic(href, list/href_list)
..()
var/action = href_list["action"]
var/value = href_list["value"]
switch(action)
if("Next")
src.nexttext = "[value]"
src << browse(src.nexttext, "window=Dialogue")
var/freddyd2="Example. Need Help."
mob/NPC
Freddy
name="Freddy Shoals"
icon='NPC.dmi'
icon_state="freddy"
density=1
verb/Talk()
set src in oview(1)
usr << browse_rsc('Freddy.png')
var/freddyd1= {"
<html>
<style>body {background-color: '#000000';color: '#ffffff'}</style>
<title> Freddy </title>
<p style="text-align:center;"><img src="Freddy.png" width="160px" height="160px" /><br>
<b><u>Freddy Shoals</u></b>:</p>
Insert Dialogue here.
<br><br>
- <a href=byond://?src=\ref[usr]&action=Next&value=[freddyd2]>Nice to meet you</a><br />
"}
usr << browse(freddyd1, "window=Dialogue")
Problem description:
I've been trying to find a way that lets me open an HTML browser window, click on one of the options, and opens another window of text options.
What's the best way to go about this? Maybe the answer is simple or maybe it can't be done, but I can't figure out a way to make "nexttext" an HTML window.
I'm a little unclear on the way you want dialogue to work, though. I mean if you just want the user to see text and click a link to respond, maptext can include links now.