Reay Posted 9 hours ago Posted 9 hours ago I’m currently trying to reverse-engineer the mechanics and probabilities of combination effects for donuts in the Pokémon Legends: Z-A DLC. However, this approach requires a very large sample size. The only way I’ve been able to record this sample data so far is by manually noting down the results one by one in the game. I noticed that PKHeX can read save files and export donut data, but as far as I can tell, it only allows exporting one donut at a time. I’m wondering if there’s a way to export data for all donuts at once? Having just the effect data would be enough, but it would be even better if other attribute values could be included as well. Ideally, the exported data should be in a format that’s easy to work with in Python or Excel. If anyone knows of a method like this, I’d really appreciate the help. Thank you in advance!
Kaphotics Posted 9 hours ago Posted 9 hours ago NuGet Gallery | PKHeX.Core 25.12.21 You can write your own C# scripts and run them with LINQPad; you can aggregate all the donuts as you see fit with a dozen or so lines of code: const string path = @"D:\main"; var data = File.ReadAllBytes(path); var sav = new SAV9ZA(data); var donuts = sav.Donuts; for (int i = 0; i < DonutPocket9a.MaxCount; i++) { var donut = donuts.GetDonut(i); // interact with the Donut9a object }
Reay Posted 1 hour ago Author Posted 1 hour ago 7 hours ago, Kaphotics said: NuGet Gallery | PKHeX.Core 25.12.21 你可以编写自己的 C# 脚本,并使用 LINQPad 运行它们;你可以用十几行代码,根据你的需要聚合所有甜甜圈: Thank you. I don’t have much coding background, so I had no idea this was possible. Glad you pointed it out—I’ll definitely give it a try.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now