{"action":"created","issue":{"url":"https://api.github.com/repos/pennmush/pennmush/issues/1002","labels_url":"https://api.github.com/repos/pennmush/pennmush/issues/1002/labels{/name}","comments_url":"https://api.github.com/repos/pennmush/pennmush/issues/1002/comments","events_url":"https://api.github.com/repos/pennmush/pennmush/issues/1002/events","html_url":"https://github.com/pennmush/pennmush/issues/1002","id":74223411,"number":1002,"title":"uarg()","user":{"login":"HarryCordewener","id":5649138,"avatar_url":"https://avatars.githubusercontent.com/u/5649138?v=3","gravatar_id":"","url":"https://api.github.com/users/HarryCordewener","html_url":"https://github.com/HarryCordewener","followers_url":"https://api.github.com/users/HarryCordewener/followers","following_url":"https://api.github.com/users/HarryCordewener/following{/other_user}","gists_url":"https://api.github.com/users/HarryCordewener/gists{/gist_id}","starred_url":"https://api.github.com/users/HarryCordewener/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HarryCordewener/subscriptions","organizations_url":"https://api.github.com/users/HarryCordewener/orgs","repos_url":"https://api.github.com/users/HarryCordewener/repos","events_url":"https://api.github.com/users/HarryCordewener/events{/privacy}","received_events_url":"https://api.github.com/users/HarryCordewener/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-08T04:15:11Z","updated_at":"2015-05-08T04:23:09Z","closed_at":"2015-05-08T04:23:09Z","body":"Is this a command or @function?\r\nFunction\r\n\r\nWhat will the permission restrictions be?\r\nSame as u()\r\n\r\nWhat will this do?\r\nAllow u() arguments to be named\r\n\r\nCan this be done in softcode?\r\nMaybe? \r\n\r\n---\r\n\r\nI mainly fear that this one might simply be impossible without some kind of huge change to the codebase. But I am putting this forward anyhow.\r\n\r\n```\r\n  uarg([<object>/]<attribute>[, <name0>, <arg0>[, ... , <name29>,<arg29>]]])\r\n\r\n  uarg() evaluates <attribute> on <object> (or on the caller, if no <object>\r\n  is given), and returns the result. Up to 30 <arg>s can be passed, available\r\n  to the attribute as %0, %1, up to %9, and v(10) to v(29). This can be used \r\n  to create \"user defined functions\". The names are handed off to be used as\r\n  a reference in r(name,args)\r\n```"},"comment":{"url":"https://api.github.com/repos/pennmush/pennmush/issues/comments/100097536","html_url":"https://github.com/pennmush/pennmush/issues/1002#issuecomment-100097536","issue_url":"https://api.github.com/repos/pennmush/pennmush/issues/1002","id":100097536,"user":{"login":"HarryCordewener","id":5649138,"avatar_url":"https://avatars.githubusercontent.com/u/5649138?v=3","gravatar_id":"","url":"https://api.github.com/users/HarryCordewener","html_url":"https://github.com/HarryCordewener","followers_url":"https://api.github.com/users/HarryCordewener/followers","following_url":"https://api.github.com/users/HarryCordewener/following{/other_user}","gists_url":"https://api.github.com/users/HarryCordewener/gists{/gist_id}","starred_url":"https://api.github.com/users/HarryCordewener/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HarryCordewener/subscriptions","organizations_url":"https://api.github.com/users/HarryCordewener/orgs","repos_url":"https://api.github.com/users/HarryCordewener/repos","events_url":"https://api.github.com/users/HarryCordewener/events{/privacy}","received_events_url":"https://api.github.com/users/HarryCordewener/received_events","type":"User","site_admin":false},"created_at":"2015-05-08T04:23:09Z","updated_at":"2015-05-08T04:23:09Z","body":"```\r\n<Hardcode> Holland Mercutio says, \"&myattr obj=add(%0,%1)\"\r\n<Hardcode> Holland Mercutio says, \"&myattr_arg obj=add(r(DEX,args),r(ATHLETICS,args))\"\r\n<Hardcode> Holland Mercutio says, \"u(myattr,<dexvalue>,<athleticsvalue>)\"\r\n<Hardcode> Holland Mercutio says, \"uarg(myattr_arg,DEX,<dexvalue>,ATHLETICS,<athleticsvalue>)\"\r\n<Hardcode> Holland Mercutio says, \"Do you see what I am aiming for now, Mike?\"\r\n<Hardcode> Holland Mercutio says, \"More work for the coder, but basically making it easier to look at a function-attribute and knowing what it does. Making for more self-documenting code.\"\r\n<Hardcode> [({<>})] Mike says, \"Ahh. Yes, that would be quite trivial to do.\"\r\n<Hardcode> Holland Mercutio says, \"I think that'd be an amazing addition.\"\r\n```"}}