Maruno
Lead Dev of Pokémon Essentials
- 5,286
- Posts
- 17
- Years
- Seen May 3, 2024
I think the first problem is that we don't know what this "new system" is like. Do you really expect us to be able to help you with something we need to look at and analyse when we can't see it? Okay, you may not want to reveal your secrets, but what you've described is easy to do, so you might as well reveal the part of your script that changes which switch is on depending on the number.Now this is interesting... I'm trying out a new system that allows you to let a pokemon follow you. Now I'm using a new script that stores the species number in a variable. I'm also using a series of switches that rely on the species. If the species returns true, then the switch specified(one of 493) turns on. Now I don't know what happened, but everything is set up perfectly, but the switch is not turning on. The variables are reading right, and the scripts are going good, but no switches. What might be the problem?
My vague guess is that there's either an error in the code, or that you're not actually running it over and over to make sure the switches are up to date. Both are stupid mistakes, yes, but we can't offer anything better if we don't know what's going on.
As an aside, are the nearly 500 switches really necessary? One variable can have the same result (since it can store any of those numbers), with much less mess. In fact, you're already doing this, so why bother with the switches?