ID:178815
 
Ok I haven't coded in a looonnnggg time so I forgot mostly everything. But how do you make the alert pop-up. The one where you click OK. Just tell me the command for it(I have the blue book) or tell me what to lok up in reference.
alert("Hi")
In response to Justin Sun
O. I knew that was in HTML but I thought it would be something different in DM. And it's not in the blue book.
In response to Justin Sun
How do you make it not say OK in the text window.
In response to BurningIce
Ok
In response to BurningIce
BurningIce wrote:
How do you make it not say OK in the text window.

Read the Reference entry on alert().
In response to Spuzzum
No I mean in the window what ever you click it will say it in the text window. Here is my code

mob/proc/Open()
usr << alert("Hello. Welcome to Grand Armors")
usr << alert("This is a fighting robot game")
usr << alert("This is the training center where we will teach you the ropes.")
switch(alert("Would you like to begin?",,"Yes","No"))
if("Yes")
usr << alert("Great!")
if("No")
usr << alert("Ok take your time")

When you click OK it says OK in the text window or box or whatever it is on DS.
In response to BurningIce
When you click OK it says OK in the text window or box or whatever it is on DS.

That's because alert()s aren't supposed to be sent to usr:

alert("Blah")

will output Blah in a message box to user with no "OK" feedback.

alert() is designed to return whatever button was pressed -- for example, the following:

var/button = alert("Which button do you press?","#1","#2")
usr << "You push button [button]! ...Nothing happens."

Now try this:

usr << alert("Which button do you press?","#1","#2")
In response to Spuzzum
It still does it. The only one it doesn't do it on is the last one.
In response to Spuzzum
It still does it. The only one it doesn't do it on is the last one.