ID:165382
 
this may be a stupid question but how do u make a box where u can click buttons in it.
example: Do you wish to do this?
options: yes, no
do u use an input or sumthing?
mob
NPC
Shop_Dude
verb
Buy()
set src in oview(1)
switch(input("What do you wish to buy","Shop") in list ("Diamond","Cancel"))
if("Diamond")
switch(alert("Are you sure?","Shop","Yes","No"))
if("Yes")
usr << "You buy."
if("No")
return
if("Cancel")
return

This may acomplish the options and for the options use alerts.

- Miran94
In response to Miran94
mob
verb
option()
switch(alert("do you want a or b?",,"A","B"))
if("A")
src << "You've selected a"
if("B")
src << "You've selected b"

// very simple just plug it in and modify :)
In response to CplxShadow
CplxShadow wrote:
> mob
> verb
> option()

That really dosent have anything to do with wat he wants, thats a verb he needed to know how to use alerts.
In response to Miran94
i know i posted it on accident without knowing.. it didn't post the entire message :)
In response to CplxShadow
No need to add a cancel, just do
as null|anything in list