ID:140633
 
Code:
if(M.level < 100)
world.SetMedal("Splendid Warrior", M, hub=Xorbah.BleachTheFinalStand, hub_password=Xorbah.mypassword)


Problem description:
It keeps saying Bad Argument Definition. Help, people?

Format:
SetMedal(medal, player, hub=world.hub, hub_password=world.hub_password)

I'm fairly sure I've seen a lot of others around here tell you to read the guide, I too, am going to do the same thing.

The error here is obvious, the parameters hub and hub_password are auto-set to world.hub_password and world.hub by default, if you have these set (which you obviously do), you don't need to supply them under SetMedal().

So, in your case:
world
hub = "tiberath.myhub"
hub_password = "myhubpassword"

//-- blahblah --//

if(M.level < 100)
world.SetMedal("Splendid Warrior", M)


For the record, the more times you ask for help with simple and basic things like this, the less people are going to be willing to help you.

Simply reading the reference entry would have been enough to get your answer.

(Also, the hub_password is sensitive information, don't post it on the forums...)

[edit] -- I suppose I should explain a bit more.

BYOND supports what is known as named arguments in procs, which means if you specify the argument name in a proc call.

proc
test(a,b,c,d)
world << "The value of a is: [a]"
world << "The value of b is: [b]"
world << "The value of c is: [c]"
world << "The value of d is: [d]<br><br>"

mob
verb
omg()
test("a", "b", "c", "d") // Positional Parameter
test("a", "b", d = "d", c = "c") // Positional AND Named Parameters.
test(d = "d", c = "c", b = "b", a = "a") // Named Parameter
test(b = "b", c = "c", a = "a", d = "d") // Named Parameter


Note that not all inbuilt procedures take named arguments (according to the reference entry on Named Arguments). Consult the reference if you're unsure whether a proc does or does not take named arguments.

Your exact error was the fact you didn't supply your hub or hub_password as strings.
world.SetMedal("Splendid Warrior", M, "tiberath.myhub", "myhubpassword")
world.SetMedal("Splendid Warrior", M, hub="tiberath.myhub", hub_password="myhubpassword")
world.SetMedal("Splendid Warrior", M, hub_password="myhubpassword", hub="tiberath.myhub")