ID:1593811
 
(See the best response by Super Saiyan X.)
According to the guide, you can set a hub path using an argument, but it doesn't really show what exactly I need to throw in there as input..

Does anyone know what I'm gonna have to use in setMedal or GetMedal for it to take medals from a certain hub?

Thanks!
the hub path.
That is as in.. Make a variable holding the hub's link, and just calling hubvariable.SetMedal(furtherstuff) or what?
Best response
could be a variable. like. the same as world.hub

Like, the hub path for http://www.byond.com/games/SuperSaiyanX/balls

is

SuperSaiyanX.balls

In the argument, you'd put "SuperSaianX.balls" or a variable containing that string.

GetMedal(medal, player, "SuperSaiyanX.balls")
Super Saiyan X gets all the credit here but I'll just elaborate on what he is saying.

The DMGuide states this:

Security note: You can specify a different hub path and hub_password by adding these as extra arguments, but this is not recommended for security reasons. If you use this feature, it should only be on games that cannot be downloaded by the public.


But you are probably wondering how?

First let me explain what an argument is.

say I have a proc like so

proc/example()


and within that proc's ()'s would be the arguments like so

proc/example(argument1,argument2,argument3)


which are separated by commas.



So put into practice, you would end up with something like this for what you want.

var/_hub_path="SuperSaiyanX.balls"
var/_hub_password="example123"
var/_medal="Example"
var/_player=src
world.GetMedal(medal=_medal,player=_player,hub=_hub_path,hub_password=_hub_password)


but writing all those

medal=_medal,player=_player,hub=_hub


stuff could be pretty redundant if they are already in the correct order, so you could just do this:

world.GetMedal(_medal,_player,_hub,_hub_password)


I know what an argument is, I just didn't really have an idea on how to use it in this context as it wasn't really explained anywhere. Good to know it's this simple :D

Thanks!