• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • It's time to vote for your favorite Pokémon Battle Revolution protagonist in our new weekly protagonist poll! Click here to cast your vote and let us know which PBR protagonist you like most.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Error] setTempSwitchOn error [SOLVED]

  • 5
    Posts
    6
    Years
    • Seen Jan 27, 2022
    I am having a problem with timed events, specifically making an apricorn tree.

    Whenever I enter a map connected to the map where the tree is, I get a no method error for setTempSwitchOn, after the cooledDown? expires. However I don't get this error if the map is refreshed, or warped to. I could put all of my apricorn trees behind warp events but I don't really want to break up the immersion of an outdoor space just to pick an apricorn. Is there anything I can do to fix this?

    Spoiler:
     
    Last edited:
    Check (broken link removed).
     
    Thank you for linking the thread to me, however I am already following that thread, and have the animations and functionality of the tree working as described. My issue is that the map is calling an error on the temp switch code, meaning that the tree can't reset properly, despite my doing as described.
     
    Although I don't have a fix, I did experience this issue as well, but not in the same manner as you.
    Not to mention that my maps were not even connected.
    The crash was random and I never really got a chance to troubleshoot it as I decided to simply replace the Apricorn system.

    I think it would help if you posted images of your event pages.
     
    i.imgur.com/0cyXqOr.png
    i.imgur.com/9glmkIv.png
    i.imgur.com/JgdiyRF.png

    I'm not allowed to post links yet so I can't properly embed the images. Also I only have the common event for the animations for the Green Apricorn at the moment, but this is affecting all of them, regardless of animation, so I've gone for one that is much more barebones to demonstrate.
     
    See if making the 3rd page trigger on "Autorun" instead of a "Parallel Process" fixes it.
    Also, what is your s:cooledDown? set to (variable 99)?
     
    s:cooledDown?(20) at the moment for testing purposes. I will change over to autorun to see if that helps, thanks.
     
    See if making the 3rd page trigger on "Autorun" instead of a "Parallel Process" fixes it.
    Also, what is your s:cooledDown? set to (variable 99)?

    This seems to have fixed it thanks! I now have a lot of trees to change.
     
    That's great!
    However, I feel like an experienced scripter should take a deeper look at this problem as there may be an unrelated event problem.
    Whenever the crash occurred for me, my data would basically corrupt, causing me to start over.
    If I find my crash file, I'll edit it into this post.
     
    Back
    Top