{"__v":18,"_id":"55083e4e31eeba2d00d66a2d","category":{"__v":8,"_id":"543b9ef065bf840e00b473e0","project":"543b9b0065bf840e00b473d5","version":"543b9b0065bf840e00b473d8","pages":["543b9f11b1479b1400c42f58","548a78adb77bb70b00ac8c10","55082e75c79a211900a8de1b","55083e4e31eeba2d00d66a2d","550bfa9022ccb01700a79466","550c312a5fdefb19003d1201","554f015d1bc7d20d00458588","554f03de1bc7d20d0045858c"],"reference":false,"createdAt":"2014-10-13T09:44:16.284Z","from_sync":false,"order":4,"slug":"pvp-battles","title":"PvP Battles"},"project":"543b9b0065bf840e00b473d5","user":"543b9aa865bf840e00b473d1","version":{"__v":11,"_id":"543b9b0065bf840e00b473d8","project":"543b9b0065bf840e00b473d5","createdAt":"2014-10-13T09:27:28.467Z","releaseDate":"2014-10-13T09:27:28.467Z","categories":["543b9b0065bf840e00b473d9","543b9ef065bf840e00b473e0","54890012f291f61400c02d36","54890902f291f61400c02d3e","54890c43f291f61400c02d44","54890d71c178b40b00aa3086","5508125c0c4d8c19008a5f83","55094050961f17170070abbd","550945111c38c50d006118ad","550a4c2e42fff40d00ae6049","55221c074801a40d00a77610"],"is_hidden":false,"is_beta":false,"is_stable":false,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"createdAt":"2015-03-17T14:46:38.386Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"auth":"required","params":[],"url":""},"order":3,"body":"[block:callout]\n{\n  \"type\": \"success\",\n  \"title\": \"Available Only in the Complete Kit\",\n  \"body\": \"For more information, please see the [kit package list](https://www.citybuildingkit.com/#pricing).\"\n}\n[/block]\n\n[block:html]\n{\n  \"html\": \"\"\n}\n[/block]\nThe Chimera is a special feature exclusive to our Complete Kit. We thought we needed something technological, dark and spooky for the war theme. \n\nShe's a cross between a live battle debugging console tool and a real-time strategy (RTS) guide you've seen in games like Starcraft 2 or Command & Conquer: Red Alert.\n\nWhile you play, the Chimera in-game console visually confirms each order, combat AI in-game events, and specific details regarding your requests. Chimera also serves a development purpose to identify possible problems with PvP's AI and squad control through debug messages you can customize yourself throughout your functions.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://www.filepicker.io/api/file/NfeKYWC3Q1yj1vTcN2ml\",\n        \"mapa.jpg\",\n        \"800\",\n        \"295\",\n        \"\",\n        \"\"\n      ],\n      \"caption\": \"Live console output during gameplay\"\n    }\n  ]\n}\n[/block]\nYou can create your own Chimera console messages by editing the **Helios.cs** file. For example:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"// Helios.cs Demo Script\\n// Example Custom Message Scenarios \\n\\nif (((Relay)relay).deploying) // Deploying first troop set\\n{\\n\\tTalk (\\\"Deploying Squad 1.\\\"); \\n}\\nelse\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// If a troop set is already deployed\\n\\tTalk (\\\"Chimera to Squad 1.\\\");\\n\\nif(battleOver)\\t\\t\\t\\t\\t\\t\\t// Otherwise, if game over\\n\\tTalk (\\\"Return to base.\\\");\\t\\t\\n\\nif(GroupO.Count<1)\\t\\t\\t\\t\\t// If all troops in a group die.\\n{\\n\\tTalk (\\\"Sorry, sir. Squad 1 has been lost. Disabling controls.\\\");\\n}\",\n      \"language\": \"csharp\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Special feature: EMP Signal Loss\"\n}\n[/block]\nFor RTS gameplay like Starcraft 2 or Command & Conquer: Red Alert, the Chimera guide includes a connection loss setting that disrupts gameplay after a building is destroyed called an **EMP Communication Blackout** (seen in the screenshot below)\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://www.filepicker.io/api/file/fBWERU2wR9WziG8WYVKy\",\n        \"emp-effect.jpg\",\n        \"800\",\n        \"600\",\n        \"#c28438\",\n        \"\"\n      ],\n      \"caption\": \"EMP Communication Blackout example\"\n    }\n  ]\n}\n[/block]\n**Reference code from Helios.cs for EMP** \n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"\\tprivate IEnumerator GarbleMessage()\\t//EMP in progress\\n\\t{\\n\\t\\tyield return new WaitForSeconds (2.5f);\\t\\t// Delay\\n\\t\\t((Messenger)heliosMsg).GarbleMessage ();\\t// Garble message\\t\\n\\t}\\n\\nvoid Update () \\n\\t{\\n  \\t// When a building is destroyed\\n  \\t// distrupt gameplay visual signals to the attacker\\n\\n  \\tTalk(\\\"Target destroyed. Incoming EMP shockwave.\\\\n Retreat to a safe distance.\\\\n Expect brief communications blackout.\\\");\\n  \\n  \\t// Fade Chimera halfway\\n\\t  ((Dissolve)heliosDiss).FadeHalfOut();\\n  \\n  \\t// Garble Chimera's text\\n\\t\\tStartCoroutine(\\\"GarbleMessage\\\");\\n  \\n \\t  // Make damage bars invisible during the blackout\\n\\t\\tDamageBars[i].GetComponent<UIPanel>().alpha = 0; \\n}\",\n      \"language\": \"csharp\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Get More Chimera Characters\"\n}\n[/block]\nLike the art? We give a shoutout to Blue for releasing an awesome example to the community free for commercial use. You can purchase Blue's entire AI art set [available here]( https://www.assetstore.unity3d.com/en/#!/content/9054)","excerpt":"The Complete Kit comes with Chimera, a female in-game debug console.","slug":"chimera-pvp-ai-guide","type":"basic","title":"Chimera - Live PvP Debugger"}

Chimera - Live PvP Debugger

The Complete Kit comes with Chimera, a female in-game debug console.

[block:callout] { "type": "success", "title": "Available Only in the Complete Kit", "body": "For more information, please see the [kit package list](https://www.citybuildingkit.com/#pricing)." } [/block] [block:html] { "html": "" } [/block] The Chimera is a special feature exclusive to our Complete Kit. We thought we needed something technological, dark and spooky for the war theme. She's a cross between a live battle debugging console tool and a real-time strategy (RTS) guide you've seen in games like Starcraft 2 or Command & Conquer: Red Alert. While you play, the Chimera in-game console visually confirms each order, combat AI in-game events, and specific details regarding your requests. Chimera also serves a development purpose to identify possible problems with PvP's AI and squad control through debug messages you can customize yourself throughout your functions. [block:image] { "images": [ { "image": [ "https://www.filepicker.io/api/file/NfeKYWC3Q1yj1vTcN2ml", "mapa.jpg", "800", "295", "", "" ], "caption": "Live console output during gameplay" } ] } [/block] You can create your own Chimera console messages by editing the **Helios.cs** file. For example: [block:code] { "codes": [ { "code": "// Helios.cs Demo Script\n// Example Custom Message Scenarios \n\nif (((Relay)relay).deploying) // Deploying first troop set\n{\n\tTalk (\"Deploying Squad 1.\"); \n}\nelse\t\t\t\t\t\t\t\t\t\t\t\t// If a troop set is already deployed\n\tTalk (\"Chimera to Squad 1.\");\n\nif(battleOver)\t\t\t\t\t\t\t// Otherwise, if game over\n\tTalk (\"Return to base.\");\t\t\n\nif(GroupO.Count<1)\t\t\t\t\t// If all troops in a group die.\n{\n\tTalk (\"Sorry, sir. Squad 1 has been lost. Disabling controls.\");\n}", "language": "csharp" } ] } [/block] [block:api-header] { "type": "basic", "title": "Special feature: EMP Signal Loss" } [/block] For RTS gameplay like Starcraft 2 or Command & Conquer: Red Alert, the Chimera guide includes a connection loss setting that disrupts gameplay after a building is destroyed called an **EMP Communication Blackout** (seen in the screenshot below) [block:image] { "images": [ { "image": [ "https://www.filepicker.io/api/file/fBWERU2wR9WziG8WYVKy", "emp-effect.jpg", "800", "600", "#c28438", "" ], "caption": "EMP Communication Blackout example" } ] } [/block] **Reference code from Helios.cs for EMP** [block:code] { "codes": [ { "code": "\tprivate IEnumerator GarbleMessage()\t//EMP in progress\n\t{\n\t\tyield return new WaitForSeconds (2.5f);\t\t// Delay\n\t\t((Messenger)heliosMsg).GarbleMessage ();\t// Garble message\t\n\t}\n\nvoid Update () \n\t{\n \t// When a building is destroyed\n \t// distrupt gameplay visual signals to the attacker\n\n \tTalk(\"Target destroyed. Incoming EMP shockwave.\\n Retreat to a safe distance.\\n Expect brief communications blackout.\");\n \n \t// Fade Chimera halfway\n\t ((Dissolve)heliosDiss).FadeHalfOut();\n \n \t// Garble Chimera's text\n\t\tStartCoroutine(\"GarbleMessage\");\n \n \t // Make damage bars invisible during the blackout\n\t\tDamageBars[i].GetComponent<UIPanel>().alpha = 0; \n}", "language": "csharp" } ] } [/block] [block:api-header] { "type": "basic", "title": "Get More Chimera Characters" } [/block] Like the art? We give a shoutout to Blue for releasing an awesome example to the community free for commercial use. You can purchase Blue's entire AI art set [available here]( https://www.assetstore.unity3d.com/en/#!/content/9054)