I'm trying to remember what the command(s) are to basically say, "[player] has challenged you to a fight!","Accept","Decline"" but I forgot what to put in front of that to make it pop up on-screen
for the target of the verb, which is (Player as mob). I know one is alert, but i don't remember the other, can someone help?
~Vlad~
ID:168260
Nov 16 2005, 3:04 am
|
|
Nov 16 2005, 3:24 am
|
|
Look up input() and Lummox JR's AreYouSure library, useful to make sure the person recieving the question doesn't have the window up for too long.
|
In response to Mysame
|
|
Thx you kindly! That helped a bunch!
~Vlad~ |
In response to Mysame
|
|
Mysame wrote:
> switch(input("[usr] has challenged you. Would you like to accept?","Battle"/* "battle" here is the popup title*/) in list ("Yes","No") else if() is used when there is more then two arguments. For instance: switch(input("Choose something","Roah") in list("A","B","C","D","Cancel")) Normally it isn't needed, because the same script would work just fine as: switch(input("Choose something","Roah") in list("A","B","C","D","Cancel")) Well, I know thats how it works in Visual Basic. I'm not sure if DM uses else if() for more then one argument or not. But I imagine it would be the same. |