I want a sample of a code where text would come up on a box with the "OK" buttom under it. I have no idea on how to make it.
Meh, this makes me feel odd.
ID:172039
Jul 6 2004, 8:57 am
|
|
In response to Konamix
|
|
And then from there, you can define choices by making the alert a switch:
switch(alert("Who's the coolest?","Cool message","Rippy!","Rippy","Rippy I guess...")) if("Rippy!") usr << "Great choice!" if("Rippy") usr << "Good choice." if("Rippy I guess...") usr << "Everyone hates you. :D" |
In response to Rippy
|
|
lol rippy,did u make the happy pill demo o.O?,anyway Well next time say somthing besides text.I thought u ment like when u use say and world say it would poup in a alert window..I was gonna say that would get annoying...
|
In response to Snowfox
|
|
lmao, I can't believe someone actually looked at that demo. Did the map actually work, or was it annoying black and white letters instead of atoms? I was having problems with that >.>
|
In response to Rippy
|
|
Lol i collect demo's and stuff for some reason lol.The letters thing i have had porblems with but it didnt happen on yours.I only got that when i moved all the codes and icons to this new comp and now i cant play the demos or write or edit them without moving to a new enviroment.Must be cuz i burned to a disc..oh well..And as for icons.i edit them and save but it wont let me save so ..blah.
|
The alert function does that, look it up in the help file. Alert can have up to three buttons, and it returns the text on the button selected. Try out this code:
mob/verb/test_alert() |
In response to Snowfox
|
|
lol. I tested it out and it worked fine. I think it's because I tried to zip the files manually rather than package them through DM.
But I think this is drifting a little off-topic. o.o |
the first "" is the message, the second is the Title and the lasr one is whats on the button you can also just do
alert("Hello there")
and the button will be just OK.