ID:176126
 
Whenever i use alerts in my game i get all these little OK messages in DS. Is there any way to fix this.
Show the code, and maybe someone can help you.
In response to Bischoff
ok for example i use the code

mob/verb/test()
usr << alert("THis is an alert!")


it will say OK in the text box
In response to Jinjo21
Well if there was no OK, then your alert wouldn't go away, so the yare there for a reason, although you can get rid of it if you add options.

Example:

mob/verb/AlertTest()
switch(alert("Test","Testing Alert","Yes","No"))
if("Yes")
alert("You are Correct! We are indeed testing Alert!")
if("No")
alert("Of Course You Are!")
In response to Bischoff
you dont get what i mean. You know where you use your say verbs at? well it says OK there no matter what the options are.
In response to Jinjo21
Maybe you aren't explaining it right. It sounds like it's doing exactly what you're telling it to. It's sending usr an alert with a message and an "OK" option to make it go away.
In response to Garthor
No No No....

its like i made a verb that does this:
mob/verb/test1()
usr << alert("HEY THIS WILL SEND AN OK!")
usr << "OK"
But i dont tell it to to that i tell it to do this.
mob/verb/test1()
usr << alert("HEY THIS WILL SEND AN OK!")

In response to Jinjo21
That's because you are outputting the return value of the alert() to the usr. The alert() returns "OK", which is output to usr.
In response to OneFishDown
try putting return 0 at the end of the alert