• 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!
  • 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.

[Map✓] Question about type 3 level scripts.

Child Amnesiac

Ever changing
  • 341
    Posts
    6
    Years
    Is it unwise to add a type 3 level script to a map that didn't have one originally?
    Because in my experience of level scripting, whenever I add a type 3 level script to a map that didn't have one originally, it crashes the game, and might be a cause for the corruption of my ROM sometimes, (For anyone wondering, I'm using advancemap 1.9.2).

    So should I do something after adding a type 3 to a map, or should I only use type 3 level scripts on maps that already have a type 3 attached to them?
     
    Last edited:
    Well, from my experience, i use plenty of level 3 scripts...u just have to make sure u use free flags and vars so that it happens correctly...if they freeze up ur game try the level 5...i dont see a difference in use, they seem to both mean the same
     
    Well, from my experience, i use plenty of level 3 scripts...u just have to make sure u use free flags and vars so that it happens correctly...if they freeze up ur game try the level 5...i dont see a difference in use, they seem to both mean the same

    While they may have the same description, I'm not too sure if they have the same function.
    From what I've seen, type 5 is only used in Pokemon centers to do something with wireless connectivity.
    It's like type 4, I've only seen that used to set sprite behaviors before a map loads, even though it has the description of type 2.
     
    Last edited:
    Using type 5 or 3 may be different but i use them interchangeably, unless u give an example of the specifc script u are trying to make, further explanation is hard to make out
     
    Using type 5 or 3 may be different but i use them interchangeably, unless u give an example of the specifc script u are trying to make, further explanation is hard to make out

    Here's an example of a script that crashed my map every time:

    Code:
    #dynamic 0x7B0000
    
    #org @start
    setvar 0x40F6 0x1
    end

    (Yes it was supposed to run every time you enter the map)

    To fill you in more:
    I was using what was a map that was used for other maps (one of the house maps), I think that was a bad Idea
     
    Last edited:
    What were u trying to accomplish with that script? Because once u set a value to a var, u shouldnt re-set the same value, it would have no effect unless once u leave that map it resets back to 0
     
    What were u trying to accomplish with that script? Because once u set a value to a var, u shouldnt re-set the same value, it would have no effect unless once u leave that map it resets back to 0

    It's for Jambo51's ASM routine for class-based trainer music, for the regional music
    Link if your interested.
     
    Oh i see, i dont use his engine because im already deep into my hack and it would suck to start from scratch...then i guess i have no idea how to help u with ur problem im sorry
     
    Oh i see, i dont use his engine because im already deep into my hack and it would suck to start from scratch...then i guess i have no idea how to help u with ur problem im sorry

    I don't think it's a problem with the script, so much is it's a problem with the map.

    Also, you don't need to start over if you want to insert the routine.
    All you need is some free space, and if you for some reason don't have enough free space just expand your rom.
     
    Oh i see, ill look into it to see if if i can or cant do it
     
    Back
    Top