11/26/2022 0 Comments Ygopro 2 vs aiYou can use any name for the card and even use Japanese or Chinese characters, however this can prove harder to work with and can confuse other people reading the script. Public const int KnightmareIblee = 10158145 Public const int WynnTheWindCharmerVerdant = 30674956 Public const int OldEntityHastorr = 70913714 Public const int HiSpeedroidChanbara = 42110604 Public const int DaigustoGulldos = 84766279 Public const int DaigustoSphreez = 29552709 Public const int StardustChargeWarrior = 64880894 Public const int WindwitchWinterBell = 14577226 Public const int ClearWingSynchroDragon = 82044279 Public const int CrystalWingSynchroDragon = 50954680 Public const int SolemnWarning = 84749824 Public const int SolemnStrike = 40605147 Public const int KingsConsonance = 24590232 Public const int SuperTeamBuddyForceUnite = 8608979 Public const int ForbiddenChalice = 25789292 Public const int EmergencyTeleport = 67723438 Public const int CosmicCyclone = 8267140 Public const int QuillPenOfGulldos = 27980138 Public const int ElShaddollWinda = 94977269 Public const int MonsterReborn = 83764719 Public const int SpeedroidRedEyedDice = 16725505 Public const int WindwitchSnowBell = 70117860 Public const int WindwitchGlassBell = 71007216 Public const int WindaPriestessOfGusto = 54455435 Public const int SpeedroidTaketomborg = 53932291 Public const int PilicaDescendantOfGusto = 71175527 Public const int WindwitchIceBell = 43722862 Public const int SpeedroidTerrortop = 81275020 To facilitate specifying the card name in the code, we create a CardId class and write each card name as a constant.Ĭreate a CardId class in the PureWindsExecutor class (not in the constructor) and define the ID of each card in the deck: public class CardId So now we have to write how to use each card in the deck. WindBot will only use the cards specified in the Executor of the AI script, and the other cards will not be done anything except to attack and use mandatory effects. This is because we have not specified how to use the cards. If the AI still does not tick ready, check the ydk file is listed in your decks folder and that the name matches the deck name listed in the Deck property.Īfter starting the game, you will find that the AI will not play any cards. If the AI does not tick ready, add the cards.cdb into your bin - debug folder on Windows Explorer and run again. If AI does not appear, please make sure that Windbot is started after the host is established. If everything is fine, you should see the AI join the room and tick that it is ready. You will find this by selecting on your VS: Project - Properties - Debug, and you should then have a screen with the picture below: Take a testĪfter creating a localhost room in your YGOPro client, use the following parameters to start in VS. The first parameter of the Deck property is the deck name (and also the AI name), and the second part is the deck ydk file name. It can be seen in .Decks that the PureWindsExecutor inherits the DefaultExecutor. Public PureWindsExecutor(GameAI ai, Duel duel) Public class PureWindsExecutor : DefaultExecutor (When you try to add this, PureWindsExecutor may have already been written, so change it to a name like NewPureWindsExecutor) Create ExecutorĮxecutor (not related to the Java one), is used to specify the use of each card for your deck.Ĭreate a new cs code file under Game\AI\Decks and name it PureWindsExecutor. Then you should add the deck to the project by right clicking the decks folder in VS -> add -> existing item, then selecting your ydk file in its folder and it should then appear in the folder. When making your deck, remember that the more uses each card has, and the more complicated the deck is, the harder it will be to write your AI.įor this example we will create the ydk file and call it AI_PureWinds and place it in the decks folder of windbot in VS. (please note, WindBot does not work with Percy LAN Mode)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |