Okay, I was wondering. How to get something like when you use a verb, the browser opens a form that you fill out for your information in-game.
And I also want to know how to create a verb that when used, creates something like a drop down box so that you can choose one to do a specfic thing.
Thanks in advance.
ID:169665
May 15 2005, 4:23 pm
|
|
In response to DaGoat787
|
|
Thanks a lot. I'll try that.
Okay, now under the code would I put //the options here ? |
In response to DaGoat787
|
|
DaGoat787 wrote:
For the broswer go to your Dream Maker and press F1 and search broswe proc. Then learn about that. For the drop down menu here's a good tutor that you can learn a bunch of stuff on html. http://htmldog.com/guides/htmlbeginner/forms/ > <select> Okay, I started to read the html forms and whatnot. When I added the code I got an error: TestVerbs.dm:275:error: missing left-hand argument to <. This is my code: mob |
In response to Jay1
|
|
You're not supposed to put the HTML directly into your code like that. You need to build a text string which represents your HTML page, and send it out to a player via browse(). Bear in mind, the <select> tag needs to go inside a <form> tag as well, like so:
<form action="byond://" method=get> Lummox JR |
In response to Lummox JR
|
|
Okay, so how would I get it so that when the person clicks submit, something specific happens?
Once again I ask, would it be? mob/verb/TestSelect1() And I still get that same error about the left hand argument to > |
In response to Jay1
|
|
Jay1 wrote:
Okay, so how would I get it so that when the person clicks submit, something specific happens? mob/verb/TestSelect1() Gads no. I just told you, the HTML code does not go directly into DM. That's not a DM command. It's part of a text string that gets sent out by browse() as an HTML page. HTML and DM are not the same thing. Lummox JR |
In response to Lummox JR
|
|
okay then, back to the original question.
Does anyone know how to do it? |
In response to Jay1
|
|
I think you need to check out this BYONDscape column, which describes exactly what you need to set up this sort of system in BYOND:
Dream Tutor: What Good is the Browser? It requires a subscription to BYONDscape, which is definitely worth it even for a short time. Lummox JR |
The stuff on the drop down box is like in the middle of the page. Looks like this: