MPNAME$ simply gets the name of whatever device you want
In the SmileBASIC tutorials, these assigned MPLOCAL values are called Terminal IDs
More code examples:
PRINT "Server created by "+MPNAME$(MPHOST)
PRINT "Your name is "+MPNAME$(MPLOCAL)
MPSEND "HI EVERYBODY!"
MPRECV OUT tid,message$
PRINT MPNAME$(tid)+" said "+message$
'which will print out "Squidy said HI EVERYBODY!" to every device
2そうだね プレイ済み