{"action":"created","issue":{"url":"https://api.github.com/repos/Masuzu/ZooeyBot/issues/821","repository_url":"https://api.github.com/repos/Masuzu/ZooeyBot","labels_url":"https://api.github.com/repos/Masuzu/ZooeyBot/issues/821/labels{/name}","comments_url":"https://api.github.com/repos/Masuzu/ZooeyBot/issues/821/comments","events_url":"https://api.github.com/repos/Masuzu/ZooeyBot/issues/821/events","html_url":"https://github.com/Masuzu/ZooeyBot/issues/821","id":326595470,"number":821,"title":"re: Is it possible to check in combat .lua script if you are on the last battle stage","user":{"login":"xerance","id":16266200,"avatar_url":"https://avatars1.githubusercontent.com/u/16266200?v=4","gravatar_id":"","url":"https://api.github.com/users/xerance","html_url":"https://github.com/xerance","followers_url":"https://api.github.com/users/xerance/followers","following_url":"https://api.github.com/users/xerance/following{/other_user}","gists_url":"https://api.github.com/users/xerance/gists{/gist_id}","starred_url":"https://api.github.com/users/xerance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xerance/subscriptions","organizations_url":"https://api.github.com/users/xerance/orgs","repos_url":"https://api.github.com/users/xerance/repos","events_url":"https://api.github.com/users/xerance/events{/privacy}","received_events_url":"https://api.github.com/users/xerance/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-25T16:49:34Z","updated_at":"2018-05-27T19:47:38Z","closed_at":null,"author_association":"NONE","body":"re: https://github.com/Masuzu/ZooeyBot/issues/814\r\n\r\nstill not solved. \r\n\r\nWhat I'm asking for is a way to detect the last battle stage without presetting it to a specific number in the combat.lua\r\n\r\nan an example:\r\n\r\n```\r\nif battle == 3 then\r\n stuff\r\n```\r\nthis works well and good except assuming I queue(raid scheduling) up 2 or more different quests with different numbers of \"waves\".\r\nfor example \"Playing Cat and Mouse\" with 2 \"waves of battle\" paired with \"Antiquarian Troubles\" with 5 \"waves\".\r\n\r\nWhat I'm asking is if there is a condition to ask if you are on the last stage? as zooeybot already seems to be able to do this as it can read battle (1/3) and so on when it runs.\r\n\r\nas an example\r\n```\r\nif battle == last_stage then\r\n stuff\r\n```\r\n\r\nThis would be quite handy if you create a fairly well polished battle.lua instead of making multiple copies for specific quests and use the customized raid scheduling function \"SetLuaScript(\"Scripts/XXXX.lua\")\" or for just generic usage to clean up the combat.lua folder.\r\n\r\nHope I was more clear in explaining what I'm asking. Made a new post as I'm not sure how github treats closed issues? Sorry for any inconvenience.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Masuzu/ZooeyBot/issues/comments/392361318","html_url":"https://github.com/Masuzu/ZooeyBot/issues/821#issuecomment-392361318","issue_url":"https://api.github.com/repos/Masuzu/ZooeyBot/issues/821","id":392361318,"user":{"login":"xerance","id":16266200,"avatar_url":"https://avatars1.githubusercontent.com/u/16266200?v=4","gravatar_id":"","url":"https://api.github.com/users/xerance","html_url":"https://github.com/xerance","followers_url":"https://api.github.com/users/xerance/followers","following_url":"https://api.github.com/users/xerance/following{/other_user}","gists_url":"https://api.github.com/users/xerance/gists{/gist_id}","starred_url":"https://api.github.com/users/xerance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xerance/subscriptions","organizations_url":"https://api.github.com/users/xerance/orgs","repos_url":"https://api.github.com/users/xerance/repos","events_url":"https://api.github.com/users/xerance/events{/privacy}","received_events_url":"https://api.github.com/users/xerance/received_events","type":"User","site_admin":false},"created_at":"2018-05-27T19:47:38Z","updated_at":"2018-05-27T19:47:38Z","author_association":"NONE","body":"Yah, as I wrote thats what I'm using atm, was simply asking if there was such a function as it would make the script folder more organized and you could potentially use the same script for multiple different quests/raids with various number of \"waves\"."}}
{"actor":{"display_login":"xerance"}}