{"action":"opened","issue":{"url":"https://api.github.com/repos/endless-sky/endless-sky/issues/47","labels_url":"https://api.github.com/repos/endless-sky/endless-sky/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/endless-sky/endless-sky/issues/47/comments","events_url":"https://api.github.com/repos/endless-sky/endless-sky/issues/47/events","html_url":"https://github.com/endless-sky/endless-sky/issues/47","id":89135948,"number":47,"title":"IF/ELSE IF evaluations for mission scripting conditions?","user":{"login":"Expack3","id":5042911,"avatar_url":"https://avatars.githubusercontent.com/u/5042911?v=3","gravatar_id":"","url":"https://api.github.com/users/Expack3","html_url":"https://github.com/Expack3","followers_url":"https://api.github.com/users/Expack3/followers","following_url":"https://api.github.com/users/Expack3/following{/other_user}","gists_url":"https://api.github.com/users/Expack3/gists{/gist_id}","starred_url":"https://api.github.com/users/Expack3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Expack3/subscriptions","organizations_url":"https://api.github.com/users/Expack3/orgs","repos_url":"https://api.github.com/users/Expack3/repos","events_url":"https://api.github.com/users/Expack3/events{/privacy}","received_events_url":"https://api.github.com/users/Expack3/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-17T21:53:24Z","updated_at":"2015-06-17T21:53:24Z","closed_at":null,"body":"I'm currently building a series of pre-war Republic cargo missions, and the first one starts by obtaining the PC's first civilian contract with the Republic Navy. I am planning on having the act of actually learning about the contract be split into two possibilities:\r\n\r\n1. While in the spaceport of a Republic world, the player learns of a contract opportunity with one of the Navy's engineering squads on Chiron.\r\n2. The player, not having heard of the opportunity already, learns of the opportunity from a sponsored hail while landing on Chiron.\r\n\r\nWhat I want to be able to do is have the mission representing the player actually acquiring the contract have an \"if/else if\" evaluation in the \"to offer\" section. If the player accepted the contract in possibility 1, then the mission is offered; otherwise, the player has a random chance of being offered the mission; furthermore, there would be different dialogue via branching so the player can actually decline the mission if this is their first time hearing of the contract opportunity. \r\n\r\nDoes the mission scripting language support this kind of logic? The mission scripting documentation seems to say it doesn't."}}