![ygopro download tutorial ygopro download tutorial](https://i.ytimg.com/vi/8h-UWlN8tL4/hqdefault.jpg)
![ygopro download tutorial ygopro download tutorial](http://1.bp.blogspot.com/-LQTZ4yq1FWg/T5x0oYFZwyI/AAAAAAAAAI4/bEJLULu7Zwc/s1600/ygopro-1027-screenshot.jpg)
Most of them should be pretty obvious again, the others are explained in the comments. After the tips, we have a list of available AI functions you can call at any time: Starting at the top, we have a ton of comments, including version info, changelogs, some useful tips. So, we will open up this file, and have a look at it. It is a fully working AI file by itself, it is well documented and holds most of the available AI functions you can use. It is located in the "ai" subfolder of your YGOPro folder, and it is kind of the most basic of AIs you can get. In my opinion, the best starting point to get into AI scripting is a file called "a". If your IDE supports this already, great.įollow the instructions in the readme to add a syntax check to your Notepad++. More about that in the detailed breakdown of the aįor scripting AI files, it is always recommended to have some sort of syntax check to eliminate some errors before testing the script.
Ygopro download tutorial how to#
It also has comments and notes about how to use these functions. The template holds most of the important functions you can use to modify the AI's behavior. If you have programming experience yourself, you may of course use the IDE of your choice, as long as it supports Lua. There are other programs, like LuaEdit, but that is quite outdated and crashes on my system. It does not show up when you select the AI to play against, since it is only relevant for developing. If you want to get into AI scripting, the first thing I would recommend is taking a look at the "a" file in your "ai" folder. If you already have a working AI script, and only want to know, how to integrate your own deck into the standard AI script, Chapter 8: Adding new decks to the existing AI is the place for you.
Ygopro download tutorial free#
If you are not interested in the inner workings of these AI functions, or if you are already familiar with them, feel free to skip ahead to Chapter 5: Custom Functions. That is why I try to explain their inner workings and also give you a rundown of how to script their functionality in "raw" AI script.
![ygopro download tutorial ygopro download tutorial](https://i.ytimg.com/vi/-aTb01hvdOk/maxresdefault.jpg)
However, they also impose some limitations, and they might not always be useful for your specific problems. Using them can result in much shorter code, and they handle a lot of problems internally already.
![ygopro download tutorial ygopro download tutorial](https://i.ytimg.com/vi/yvXKKnk67bw/maxresdefault.jpg)
The first few chapters show you, how to use the basic AI functions by themselves, later chapters incorporate custom functions I added to make my life easier. This tutorial does have a couple of seemingly redundant chapters, the same functionality is coded in multiple different ways. Just like the Yugioh cards, the ai files are scripted in Lua, a fairly common scripting language: It is possible to rename or remove AI decks, so the random deck option does not use those decks. You may also select the "Random Deck" option, the AI will then use a random "AI_"- prefixed deck. These decks are prefixed with the "AI_" prefix to indicate, that the AI can use them. That is why there are specific decks scripted into the ai file. Target selection for effects will be random, so the AI will usually search or target the wrong cards with its effects. However, if any card is not specifically scripted into the AI, it will usually just be activated whenever possible. In theory, the AI can use any deck you make for it. As of the AI script version 0.26, this file is obsolete and can be deleted, the standard AI file handles the Exodia deck from now on. "a", an AI file to be used with the AI_Exodia deck. "a", the same as "ai.lua", except the AI gets some benefits The deck has to be located in your "deck" folder of YGOPro, the script file sits in the "ai" subfolder. Now you can select a deck and a script file for the AI to use. You can modify some rulings and duel settings in the following screen, then press "OK". You can play a game against the YGOPro AI by starting YGOPro, then selecting the "AI Mode (beta)" button. AI scripting isn't exactly user-friendly :D Prerequisites are rudimentary knowledge of Lua and/or programming languages in general, and a lot of patience. The first few sections are tailored towards beginners, while the later sections cover a little more in-depth stuff, as well as how to integrate your own deck into the standard AI. This tutorial explains, how to create or modify an AI script for YGOPro.