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!
Jun 7 2014, 4:29 pm
|
|
the hub path.
|
That is as in.. Make a variable holding the hub's link, and just calling hubvariable.SetMedal(furtherstuff) or what?
|
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" 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) |