ID:178862
 
i need to switch input for the M to answer which will be another player, here is what i have so far but the usr is the one who will get both messages. I need the top to goto usr, the bottom to the M(second player).

if("Weapon")
if(usr.weapon=="none")
usr<<" You have no weapon."
else
switch(input("You wish to trade your weapon?","Trade")in list("Yes","No","Nevermind"))
if("Yes")
switch(input("You wish to accept [usr.weapon]?","Trade")in list("Yes","No"))
if("Yes")
M.weapon=usr.weapon
M<<"You recieve [M.weapon]."
usr<<"You have given [M] your [M.weapon]."
M.att=(usr.att-usr.str)+M.str
usr.att=usr.str
usr.weapon="none"
input()'s first default argument is actually:
User = usr
Meaning the player who gets the message is the usr by default, you can override this by simply providing the alternative:

input(M,"Message","blah") in list(blah)
In response to English (#1)
input()'s first default argument is actually:
User = usr
Meaning the player who gets the message is the usr by default, you can override this by simply providing the alternative:

The initial user argument is actually optional -- you can use input("Message","Title") too.