{"action":"created","issue":{"url":"https://api.github.com/repos/SFTtech/openage/issues/640","repository_url":"https://api.github.com/repos/SFTtech/openage","labels_url":"https://api.github.com/repos/SFTtech/openage/issues/640/labels{/name}","comments_url":"https://api.github.com/repos/SFTtech/openage/issues/640/comments","events_url":"https://api.github.com/repos/SFTtech/openage/issues/640/events","html_url":"https://github.com/SFTtech/openage/pull/640","id":182942598,"number":640,"title":"[WIP] doc: Nyan types","user":{"login":"castilma","id":17392981,"avatar_url":"https://avatars.githubusercontent.com/u/17392981?v=3","gravatar_id":"","url":"https://api.github.com/users/castilma","html_url":"https://github.com/castilma","followers_url":"https://api.github.com/users/castilma/followers","following_url":"https://api.github.com/users/castilma/following{/other_user}","gists_url":"https://api.github.com/users/castilma/gists{/gist_id}","starred_url":"https://api.github.com/users/castilma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/castilma/subscriptions","organizations_url":"https://api.github.com/users/castilma/orgs","repos_url":"https://api.github.com/users/castilma/repos","events_url":"https://api.github.com/users/castilma/events{/privacy}","received_events_url":"https://api.github.com/users/castilma/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SFTtech/openage/labels/documentation","name":"documentation","color":"0032cc"},{"url":"https://api.github.com/repos/SFTtech/openage/labels/improvement","name":"improvement","color":"84b6eb"},{"url":"https://api.github.com/repos/SFTtech/openage/labels/nyan","name":"nyan","color":"006b75"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-10-14T01:25:39Z","updated_at":"2016-10-16T21:54:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/SFTtech/openage/pulls/640","html_url":"https://github.com/SFTtech/openage/pull/640","diff_url":"https://github.com/SFTtech/openage/pull/640.diff","patch_url":"https://github.com/SFTtech/openage/pull/640.patch"},"body":"I started a list of all base types that need to be implemented in the engine. Add your thoughts and make changes."},"comment":{"url":"https://api.github.com/repos/SFTtech/openage/issues/comments/254077847","html_url":"https://github.com/SFTtech/openage/pull/640#issuecomment-254077847","issue_url":"https://api.github.com/repos/SFTtech/openage/issues/640","id":254077847,"user":{"login":"timohaas","id":10377071,"avatar_url":"https://avatars.githubusercontent.com/u/10377071?v=3","gravatar_id":"","url":"https://api.github.com/users/timohaas","html_url":"https://github.com/timohaas","followers_url":"https://api.github.com/users/timohaas/followers","following_url":"https://api.github.com/users/timohaas/following{/other_user}","gists_url":"https://api.github.com/users/timohaas/gists{/gist_id}","starred_url":"https://api.github.com/users/timohaas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timohaas/subscriptions","organizations_url":"https://api.github.com/users/timohaas/orgs","repos_url":"https://api.github.com/users/timohaas/repos","events_url":"https://api.github.com/users/timohaas/events{/privacy}","received_events_url":"https://api.github.com/users/timohaas/received_events","type":"User","site_admin":false},"created_at":"2016-10-16T21:54:09Z","updated_at":"2016-10-16T21:54:09Z","body":"How will this Stuff be implemented in the Engine? In my opinion, this should be implemented as Triggers:\r\n\r\nTrigger:\r\ntype: always, once\r\nconditions = expression\r\nactions = [ list of action]\r\nexpression: True|False|condition and|or|xor True|False|condition\r\n\r\ncondition:\r\n\r\n- unit x is killed (e.g. king)\r\n- all military building of player x destroyed\r\n- all reliquiens captured\r\n- unit of player x discovers area x\r\n- first blood\r\n- first player researched tech x\r\n- building x destroyed\r\n\r\naction:\r\n\r\n- change unit attribute to x\r\n- remove tech x\r\n- research tech x\r\n- send message to player/team\r\n- add food/wood to player x\r\n- create unit x\r\n- kill unit x\r\n- victory for team x\r\n- create other trigger\r\n- only limited to your imagination\r\n\r\nexample: player klicks tech Y research\r\n\r\nnew trigger 1:\r\ntype: once\r\ncondition: building x destroyed\r\naction: [remove tech research, delete trigger 2]\r\n\r\nnew trigger 2:\r\ntype: once\r\ncondition: research Y finished\r\naction: [ delete trigger 1, update units]"}}
{"actor":{"display_login":"timohaas"}}