ID:1608268
 
(See the best response by GhostAnime.)
Is there a way for input() to ask for two different things from the player?

Like password and username. If not, is there an tutorial/resource of how to do this laying around somewhere?
It is easy to have it in succession but at the same time? Nope - although this could be solved by making an interface or an HTML browser with two input boxes.

For the HTML thing, you will need to know the basics (or have a web editor to take care of the designing... and knowing CSS is a boon) in addition to researching how client/Topic() works in conjunction with HTML. [Upon clicking links, you can have parameters submitting information from the browser --> client/Topic())
Seems like too much work as I wanted to apply this knowledge on a recluse verb that would be seldom used. Seeing as how the knowledge will be transferable to other things though I'm going to pick it up. You have any material you'd recommend for starters?
Best response
I will admit that it took some time learning how BYOND works with HTML (more specifically, interaction between browser() and BYOND) and it came in handy for small things like making an HTML create/edit box where you can SEARCH for something specific instead of going through a list() via input() manually (/shameless plug).


If you do not know HTML, look it up through a search engine. There are a lot of resources out there :) I, myself, am used to W3Schools but be warned that they tend to show examples that may not be the best way to go about...

This looks like a great place to start learning how to make HTML interact with BYOND:
http://www.byond.com/forum/?post=34078

I will try to look for some other tutorials but a great place to start off is looking at the entries of browse() and Topic()


Note that there are three Topic() procedures:
  1. client/Topic() = called on the client when they click/call a URL by a link like with byond://?... like "< a href="byond://?var1=value1&var2=value2">Link</a>"
  2. datum/Topic = This is like the above but called on a datum instead (ex: /obj, /mob, etc.) It is important that the src is specified and done via \ref (see the entry)
  3. world/Topic() = Not needed for what you will be attempting here. This is the interaction with one server to another... by learning the associated world.Import()/Export(), you can make the server communicate with websites!