I think I broke something can someone take a look at my coding please. RPG MAKER MV TENT CRAFTING

so you need certain items/material to upgrade a run down tent to be a fully functional tent that you can cook and sleep in. . .
well my tester reported that it took the rope BUT the event never progressed and I dont know why

ALSO PLEASE IS THERE AN EASIER WAY TO DO THIS!!
Your 4th page has two conditions. Self Switch C, and switch 41, tent construction stage 2.

You don't appear to ever turn switch 41 on.

I'm not sure why they're both there (or why you have two conditions on page 2 since you turn those both on at the same time).
i sent it to my testing.... should be fixed. hopfully
also on page 5, you turn selfswitch D ON, while it was on page 4 as well.
you should check those carefully as well, so selfSwitch D ON page 5 is
useless though.

if you use YEP_SelfSwVar or Eli_SelfSwitches and make A to Z
you dont need the other global switches 🙂
so you need certain items/material to upgrade a run down tent to be a fully functional tent that you can cook and sleep in. . .
well my tester reported that it took the rope BUT the event never progressed and I dont know why

ALSO PLEASE IS THERE AN EASIER WAY TO DO THIS!!
Since the first part was answered, allow me to answer the second: An easier way to do that would be to set a variable. If the variable is ≥ 0, Page 1. ≥ 1, Page 2. ≥ 2, Page 3. And of course as part of the script after you feed it resources, it then increases said variable by 1.
Alternatively, you could simply use just Self Switches and limit yourself to 5 pages instead of 6.
Finally, you could just make a single Switch that is "Tent Complete?" and then use Self-Switches A through D for marking progress.
  • Page 1: No Self-Switch
  • Page 2: Self-Switch A
  • Page 3: Self-Switch B
  • Page 4: Self-Switch C
  • Page 5: Self-Switch D
  • Page 6: Self-Switch D and "Tent Complete?" = ON
It highly condenses the amount of Switches you're involving so that you aren't wasting them on this. Additionally, with just 2 Switches you already have 4 outcomes:
  • Both Off
  • Switch 1 On; Switch 2 Off
  • Switch 2 On; Switch 1 Off
  • Both On
You don't need to overuse switches like that. When you are using a bunch for the same thing, try to find ways you can condense them to keep things tidy. And while you can't have 3 Switches active at the same time, even adding a 3rd to the mix still grants you:
  • All Off
  • Switch 1 On; Switch 2 & 3 Off
  • Switch 2 On; Switch 1 & 3 Off
  • Switch 3 On; Switch 1 & 2 Off
  • Switch 1 Off; Switch 2 & 3 On
  • Switch 2 Off; Switch 1 & 3 On
  • Switch 3 Off; Switch 1 & 2 On
In other words, you still get 7 results from 3 Switches. Needless to say, this gives you more than what you need. And when you can make use of a Self-Switch as one of those Switches, that gives you a good deal of flexibility.
also on page 5, you turn selfswitch D ON, while it was on page 4 as well.
you should check those carefully as well, so selfSwitch D ON page 5 is
useless though.
Pretty sure the redundancy there is just to make sure it stays on in case something goes wrong. Precautionary thing there. I do that occasionally. It's messier; however, I don't have to worry that a Switch is still set. The only issue there is if you're using variables and you create an accidental redundancy that adds a value to it instead of sets a value and the specific value stored there matters.
thank you : o hopefully i fixed it perm this time haha thank you for taking your time ^^

Original thread: https://forums.rpgmakerweb.com/threads/i-think-i-broke-something-can-someone-take-a-look-at-my-coding-please-rpg-maker-mv-tent-crafting.160206/