• 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!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • 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.

[Scripting Question] Question about event size

  • 73
    Posts
    4
    Years
    • Seen Apr 20, 2025
    In my game, I have a big forest separated by two maps with a connection that is almost 100 tiles wide. During the story there, I activate a parallel process when I go from the northern to the southern map with a switch. The problem is that the layout is like a maze and there are around 40 tiles where you can move between them. This means I would need the same amount events with player touch to activate it, which is a bit too many.
    That's why I would like to use the size function for events, but I'm using V18.1 and it's only available in V19+. I'm already too far into the creation of my game that I don't feel like upgrading downloaded custom scripts and more. I would like to ask if it is possible to migrate the code that defines that behavior from V19 to V18.1. I have already tried to experiment with the classes and trying to convert the code, but without success. Can I copy the entire Event, Player and Character classes to V18.1 without trouble as I see those three are connected? Maybe it's best I should cut my losses and use 40ish events or do you have other options I can use?
     
    I don't think I have explained my situation well enough. All I wanted to try is to implement the Size(x,x) event in V18.1 by copying some code from V19 and changing it a bit so it functions in that version.
    I expected this to be similar to the other functions you have described, but it is mentioned in different sections of the Event class, so it will be harder to change it without causing problems.
    The definition check_event_trigger_touch changes a lot between both versions using dir instead of x,y as arguments and I'm afraid I will mess too much with the three game classes involved.
    If it's really something I should not experiment with, I'll just copy 40ish events across the entire edge of the map to activate my parallel process and I hope it won't cause too much lag.
     
    No, no, I'm offering an alernative solution.
    as in, use Counter(X) instead of trying to port size(x,y). It sounded like all these events would be in a single line, and counter(x) can do that.

    I understand what you are suggesting now and I would have never considered using a trainer(x) event like that. I disguised it as part of the leftmost tree and I got it on through so it could see past other trees.
    So far it's not working perfectly, but with a bit of tweaking I should be able to remove the final troubles. I can also restoring the classes I changed to their previous states by copying from my back-up file.
     
    Back
    Top