• 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!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Red, Hilda, Paxton, or Kellyn - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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.

[Script✓] Why is the level script assigned to other maps?

ScizorBlade

Sup Dogg
  • 39
    Posts
    5
    Years
    So I made a level script, inserted in a map(say, 3.0 in Fire Red BPRE). The script works wonderfully. Then I added another level script to another map(in this case, 4.1), but when I tested it out, the level script from the previous map started to run. Then I quickly went to map 4.1, and saw that the script offset was the same as the script offset in map 3.0. If I try to change the script offset of one map, the offset of the other map becomes the same as this map. Why is this happening, and is there a fix?
     
    Last edited:
    So I made a level script, inserted in a map(say, 3.0 in Fire Red BPRE). The script works wonderfully. Then I added another level script to another map(in this case, 4.1), but when I tested it out, the level script from the previous map started to run. Then I quickly went to map 4.1, and saw that the script offset was the same as the script offset in map 3.0. If I try to change the script offset of one map, the offset of the other map becomes the same as this map. Why is this happening, and is there a fix?

    Hmm... this has never happened to me. I would also love the answer.
     
    FIX!
    So what I did was:
    Step 1: Remove all the level scripts. I noted the offsets before hand.
    Step 2: Inserted level script in map 1.
    Step 3: Saved the ROM and closed Advance Map.
    Step 4: Reopened Advance Map and opened up the ROM.
    Step 5: Inserted the other script in map 2.
    Step 6: Saved the ROM and tested it out.
    Thankfully it works now. The rest of the flaws is from my own scripting(i.e. a few bugs).
     
    FIX!
    So what I did was:
    Step 1: Remove all the level scripts. I noted the offsets before hand.
    Step 2: Inserted level script in map 1.
    Step 3: Saved the ROM and closed Advance Map.
    Step 4: Reopened Advance Map and opened up the ROM.
    Step 5: Inserted the other script in map 2.
    Step 6: Saved the ROM and tested it out.
    Thankfully it works now. The rest of the flaws is from my own scripting(i.e. a few bugs).

    I see.
    After looking at individual scripts for quite a while, I saw in every script that one was connected to the other at such a point that if you wanted to write a game like the original one (that is to connect every script with another), it would be near impossible for one person to create.
    I was trying to search a fix for your problem, but I guess you did it! It seems dumb, but works alright. Good job!
     
    Back
    Top