{"action":"created","issue":{"url":"https://api.github.com/repos/SquidDev-CC/CCTweaks/issues/102","repository_url":"https://api.github.com/repos/SquidDev-CC/CCTweaks","labels_url":"https://api.github.com/repos/SquidDev-CC/CCTweaks/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/SquidDev-CC/CCTweaks/issues/102/comments","events_url":"https://api.github.com/repos/SquidDev-CC/CCTweaks/issues/102/events","html_url":"https://github.com/SquidDev-CC/CCTweaks/issues/102","id":164434982,"number":102,"title":"/trigger command queues events on command computers","user":{"login":"KingofGamesYami","id":3802881,"avatar_url":"https://avatars.githubusercontent.com/u/3802881?v=3","gravatar_id":"","url":"https://api.github.com/users/KingofGamesYami","html_url":"https://github.com/KingofGamesYami","followers_url":"https://api.github.com/users/KingofGamesYami/followers","following_url":"https://api.github.com/users/KingofGamesYami/following{/other_user}","gists_url":"https://api.github.com/users/KingofGamesYami/gists{/gist_id}","starred_url":"https://api.github.com/users/KingofGamesYami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KingofGamesYami/subscriptions","organizations_url":"https://api.github.com/users/KingofGamesYami/orgs","repos_url":"https://api.github.com/users/KingofGamesYami/repos","events_url":"https://api.github.com/users/KingofGamesYami/events{/privacy}","received_events_url":"https://api.github.com/users/KingofGamesYami/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SquidDev-CC/CCTweaks/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/SquidDev-CC/CCTweaks/labels/will%20not%20implement","name":"will not implement","color":"bfdadc"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-08T00:13:47Z","updated_at":"2016-07-27T16:02:37Z","closed_at":"2016-07-27T12:33:25Z","body":"The [trigger command](http://minecraft.gamepedia.com/Commands#trigger) is used to set or increment a [trigger scoreboard objective](http://minecraft.gamepedia.com/Scoreboard#Objectives).  It's only accessible to non-players unless explicitly allowed.  In fact, it has to be re-allowed each time they use it, as demonstrated by commenting out [line 30](https://github.com/KingofGamesYami/CCJam-2016/blob/debug/ghost.lua#L30) of my CC-Jam 2016 project.\r\n\r\nAs for the event it would fire, I imagine it would look something like this:\r\n\r\n```lua\r\nlocal event, player, objective, newvalue, oldvalue = os.pullEvent( \"trigger_command\" )\r\n```"},"comment":{"url":"https://api.github.com/repos/SquidDev-CC/CCTweaks/issues/comments/235633520","html_url":"https://github.com/SquidDev-CC/CCTweaks/issues/102#issuecomment-235633520","issue_url":"https://api.github.com/repos/SquidDev-CC/CCTweaks/issues/102","id":235633520,"user":{"login":"KingofGamesYami","id":3802881,"avatar_url":"https://avatars.githubusercontent.com/u/3802881?v=3","gravatar_id":"","url":"https://api.github.com/users/KingofGamesYami","html_url":"https://github.com/KingofGamesYami","followers_url":"https://api.github.com/users/KingofGamesYami/followers","following_url":"https://api.github.com/users/KingofGamesYami/following{/other_user}","gists_url":"https://api.github.com/users/KingofGamesYami/gists{/gist_id}","starred_url":"https://api.github.com/users/KingofGamesYami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KingofGamesYami/subscriptions","organizations_url":"https://api.github.com/users/KingofGamesYami/orgs","repos_url":"https://api.github.com/users/KingofGamesYami/repos","events_url":"https://api.github.com/users/KingofGamesYami/events{/privacy}","received_events_url":"https://api.github.com/users/KingofGamesYami/received_events","type":"User","site_admin":false},"created_at":"2016-07-27T16:02:37Z","updated_at":"2016-07-27T16:02:37Z","body":"From the Lua side, it's actually rather annoying.  The only way to identify the value is\r\n```lua\r\ncommands.scoreboard( \"players test\", playerName, objectiveName, lower, upper )\r\n```\r\n...which is tedious if you have, for example, 100 different values.  You can cut the number of commands down by doing halves (is it between 1 & 50, 1-25, etc.), but you're still guessing.  Even if you can't detect when the scoreboard has changed, it'd be great if you could add something to get the value directly (that way I could simply test if it's non-nil)."}}
{"actor":{"display_login":"KingofGamesYami"}}