ID:179953
 
I was wondering how i would make it so if one user challenges another user to something the seccond user (the one challenged) gets the option to accept or decline, if the user accepts, him and the other user are then transported somewhere.
dbz73 wrote:
I was wondering how i would make it so if one user challenges another user to something the seccond user (the one challenged) gets the option to accept or decline, if the user accepts, him and the other user are then transported somewhere.

mob/verb
Challenge(M/mob in world)
switch(input("Who would you like to challenge?") in list([M.world]))
M << switch(input("[src] is trying to challenge you accept?)in list("Yes","No")
if("Yes")
//All the challenge stuff//

else
src << "Your challenge has been declined"
In response to BurningIce
thanks =)
In response to BurningIce
BurningIce wrote:
dbz73 wrote:
I was wondering how i would make it so if one user challenges another user to something the seccond user (the one challenged) gets the option to accept or decline, if the user accepts, him and the other user are then transported somewhere.

mob/verb
Challenge(M/mob in world)
switch(input("Who would you like to challenge?") in list([M.world]))
M << switch(input("[src] is trying to challenge you accept?)in list("Yes","No")
if("Yes")
//All the challenge stuff//

else
src << "Your challenge has been declined"


that didnt quite work....
In response to dbz73

that didnt quite work....

well what errors did you get?
In response to dbz73
dbz73 wrote:
BurningIce wrote:
dbz73 wrote:
I was wondering how i would make it so if one user challenges another user to something the seccond user (the one challenged) gets the option to accept or decline, if the user accepts, him and the other user are then transported somewhere.

mob/verb
Challenge(M/mob in world)
switch(input("Who would you like to challenge?") in list([M.world]))
M << switch(input("[src] is trying to challenge you accept?)in list("Yes","No")
if("Yes")
//All the challenge stuff//

else
src << "Your challenge has been declined"


that didnt quite work....

mob/verb/Challenge(mob/M in world)
M<<switch(input("Do you want to accept [usr]'s challange?")in list("Yes","No"))
if("Yes")
//Challenge stuff
if("No")
usr<<"[M] declined"
In response to BurningIce
BurningIce wrote:
well what errors did you get?

ATA.dm:50:error: [: expected )
ATA.dm:50:error: ): expected }
ATA.dm:50:error: location of top-most unmatched {
In response to dbz73
dbz73 wrote:
BurningIce wrote:
well what errors did you get?

ATA.dm:50:error: [: expected )
ATA.dm:50:error: ): expected }
ATA.dm:50:error: location of top-most unmatched {


Thats because Burningice forgot some punctuation like a "
In response to Nadrew
Nadrew wrote:
dbz73 wrote:
BurningIce wrote:
dbz73 wrote:
I was wondering how i would make it so if one user challenges another user to something the seccond user (the one challenged) gets the option to accept or decline, if the user accepts, him and the other user are then transported somewhere.

mob/verb
Challenge(M/mob in world)
switch(input("Who would you like to challenge?") in list([M.world]))
M << switch(input("[src] is trying to challenge you accept?)in list("Yes","No")
if("Yes")
//All the challenge stuff//

else
src << "Your challenge has been declined"


that didnt quite work....

> mob/verb/Challenge(mob/M in world)
> M<<switch(input("Do you want to accept [usr]'s challange?")in list("Yes","No"))
> if("Yes")
> //Challenge stuff
> if("No")
> usr<<"[M] declined"
>

i read that wrong....
In response to Nadrew
Nadrew wrote:
dbz73 wrote:
BurningIce wrote:
well what errors did you get?

ATA.dm:50:error: [: expected )
ATA.dm:50:error: ): expected }
ATA.dm:50:error: location of top-most unmatched {


Thats because Burningice forgot some punctuation like a "

fixing that didnt help....