IceYGO / windbot

A C# bot for ygopro, compatible with the ygosharp server.
MIT License
80 stars 103 forks source link

Adding a new updated bot for Voiceless Voice #193

Open owenshi2 opened 4 months ago

owenshi2 commented 4 months ago

My attempt at programming a modern deck. Checked the documentation but had some issues with running windbot after adding the executors. Please let me know if there's any errors with the formatting or bot itself encountered as I haven't been able to run or test the bot locally.

mercury233 commented 3 months ago

As you can see, the codes you posted are incomplete.

owenshi2 commented 3 months ago

Thank you for the fixes, mercury! Is this version able to be run in the bot? If so, do I copy the files from the repo into the EDOPro Windbot folder to test it?

Wind2009-Louse commented 3 months ago

There's still many errors in scripts. Even if grammar errors are fixed, there are still many cards that cannot be activated. Like: Prayers of the Voiceless Voice Trias Hierarchia and so on

owenshi2 commented 3 months ago

Hi Louse,

Thank you for taking a look at my code! How do you suggest I correct the issues brought up? If I remove the cards mentioned from being able to be activated altogether, would the bot figure it out when given the prompt?

Wind2009-Louse commented 3 months ago

Hi Louse,

Thank you for taking a look at my code! How do you suggest I correct the issues brought up? If I remove the cards mentioned from being able to be activated altogether, would the bot figure it out when given the prompt?

You can check https://github.com/IceYGO/windbot/wiki/How-to-create-your-WindBot-AI. Bot will activate a card only when you defind it with AddExecutor(ExecutorType.Activate, _id[, func]), or with AddExecutor(ExecutorType.Activate[, func])(if you use the latter one, bot will activate any card it can do, so it's not recommended).

owenshi2 commented 3 months ago

Ok; I checked which cards don't have an activated and added some functions for the unique ones. Do let me know if there's other things to be fixed!

(I also really liked how in-depth the activation functions for SP and Chaos Angel from the Lab Executor you made, @Wind2009-Louse, so I added some of the functions in as well; hope it's alright)