• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • Serena, Kris, Red - which Pokémon protagonist is your favorite? Let us know by voting in our bonus favorite protagonist poll! This poll will only last 24 hours!
  • 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] Make a long Script

  • 5
    Posts
    1
    Years
    • Seen Aug 21, 2024
    Hey i wanted to make a Pokemón Game in the middle age.
    So you cant buy Pokéballs. So you need to craft them by your own and let "Kurt" craft them for you.
    I got a Plug-In that you can craft items in a Event but the Event Scrips are to small for the different Items.
    Anyone knows how i can make it bigger or or how I connect several events together.

    I tried this but didnt work, each time he only took the last script.
    Spoiler:
     
    Well at the moment your code is repeatedly redefining this hash.
    One thing you can do, since this is really really long, is by defining it in a constant in the script editor, and just using that constant in the event.

    Another thing you can do is by adding new entries to the hash one by one
    conversion_hash[:APRICORNRED] = :LEVELBALL

    I'm not sure if a hash definition can cross over the boundary between script commands (I know they are automatically merged together before running the, though, so it could work).
     
    Back
    Top