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

[Other] "Counter" scripting

  • 14
    Posts
    10
    Years
    • Seen Jul 14, 2018
    Hi guys. I'm progressing slowly on my hack,but it's going well so far. Now, I have a question about scripting. In the picture in the attachments you can see the map of SEADRALINES. SEADRALINES is a ferry company that operates in the Kanto region. Now,I'm trying to make some scripts for these three ladies. The middle one should only give some info about SEADRALINES. The left one is supposed to offer the player to go to Cinnabar Island(if the player has 6 badges),and the right one is supposed to offer a ride to every Sevii Island(if the player beat the Pokemon League). Now,the problem is that I don't know how to do it. I tried something,but every script I use can't be activated because there is a counter between the lady and the player. Besides from that I don't know how to write a script that would take the player to certain places if certain conditions are met.

    I don't expect someboy to write me a script,because it's too much to ask for. I only need some advice on what to do,what to look at,etc.
     
    Hi guys. I'm progressing slowly on my hack,but it's going well so far.be Now, I have a question about scripting. In the picture in the attachments you can see the map of SEADRALINES. SEADRALINES is a ferry company that operates in the Kanto region. Now,I'm trying to make some scripts for these three ladies. The middle one should only give some info about SEADRALINES. The left one is supposed to offer the player to go to Cinnabar Island(if the player has 6 badges),and the right one is supposed to offer a ride to every Sevii Island(if the player beat the Pokemon League). Now,the problem is that I don't know how to do it. I tried something,but every script I use can't be activated because there is a counter between the lady and the player. Besides from that I don't know how to write a script that would take the player to certain places if certain conditions are met.

    I don't expect someboy to write me a script,because it's too much to ask for. I only need some advice on what to do,what to look at,etc.
    Okay so, the info about seadralines should just be a dialogue script, for the left one, a flag event should be triggered off when the script checks to see if the player has 6 badges which will allow them to travel to and from cinnabar, the right one, there is also a flag that checks to see if the player has beaten the elite 4 similar to legendaries with certain items you have to get to places such as where ho-oh is, I don't know what these flags are just google list of flags used by pokemon fire red roms and look around. I hoped this helped :)
     
    Hi guys. I'm progressing slowly on my hack,but it's going well so far. Now, I have a question about scripting. In the picture in the attachments you can see the map of SEADRALINES. SEADRALINES is a ferry company that operates in the Kanto region. Now,I'm trying to make some scripts for these three ladies. The middle one should only give some info about SEADRALINES. The left one is supposed to offer the player to go to Cinnabar Island(if the player has 6 badges),and the right one is supposed to offer a ride to every Sevii Island(if the player beat the Pokemon League). Now,the problem is that I don't know how to do it. I tried something,but every script I use can't be activated because there is a counter between the lady and the player. Besides from that I don't know how to write a script that would take the player to certain places if certain conditions are met.

    I don't expect someboy to write me a script,because it's too much to ask for. I only need some advice on what to do,what to look at,etc.

    You can talk to an NPC over a counter if the tile between you has a behaviour byte of 80. You can see that some counter tiles in the PokeCentre and PokeMart tilesets have this behaviour in AdvanceMap's tile viewer.

    Whenever the player beats a gym leader/ the elite four you should be setting a flag. In Fire Red the sixth gym leader's flag is 0x825 while the elite four is 0x82C. To see if the player has beaten the sixth gym leader you can add a quick checkflag to your script like this in XSE:

    Code:
    ...
    checkflag 0x825
    if 0x1 goto @HaveSixthBadge
    msgbox @NotEnoughBadges 0x2
    release
    end

    The script will branch off to the @HaveSixthBadge pointer if the player has won the sixth badge but it will will read the @NotEnoughBadges text if they have not.

    I would also suggest looking at the scripts of the various ferry operator attendants in the Sevii Isles/ Vermilion City. You could get an idea of what to do by seeing what GameFreak has done, though their particular scripts are probably a bit too advanced for somebody starting out.
     
    Back
    Top