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

[Scripting Question] RE-RE-Vising the Addition of the Triple-Type

sonicfan7895

Just a dude, I guess
  • 120
    Posts
    14
    Years
    So yet another thread regarding to the subject has been killed.

    This thread is a continuation of the thread linked below:
    Re-Visintg the Addition of the Triple-Type, started by Black Temple Guardian.

    So to address the points that you, Black Temple Guardian, made in the very last posts of that thread:

    "pbDexDataOffset(dexdata,@species,10)" should be some number other than 10 as that's already taken
    The Compiler script lists a number of free bytes that are used. One of them is 17, which is what I used, I believe. So if you use 17, that should at least fix that issue.
    Your summary code also doesn't work right; with just two types it still shows the third type. This should address that:

    [...]
    There may have been a typo on my part, so I apologize if that was the case. I did however correct it later, but without posting it the day after. So again, my apologies.

    EDIT: I have solved the problem I was having! It was with the compiler code I was back then blindly copying. It was wrong.
    Instead it should be this:
    Code:
            if !lastsection["Type3"] || lastsection["Type3"]==""
              if !lastsection["Type2"] || lastsection["Type2"]==""
                if !lastsection["Type1"] || lastsection["Type1"]==""
                  raise _INTL("No Pokémon type is defined in section {2} (PBS/pokemon.txt)",key,sectionDisplay) if hash==requiredtypes
                  next
                end
                lastsection["Type2"]=lastsection["Type1"].clone
            end
              lastsection["Type3"]=lastsection["Type2"].clone
            end

    It's amazing what a break and some experience can do.

    This doesn't appear to work either. When I went and copied it into my Compiler script (thinking it really was the right one), I got errors upon moves being used in battle. And I didn't just test this on White Kyurem; I went in and changed Genesect to add the types based on what Drive it holds, and they all do the same errors. Even on normal Pokemon with only two types. They get errors too.

    Even with my old scripts in the Compiler every damaging move is broken. So we need to come up with a fix for this. Have you come up with a fix in the last six months your last thread has been dead?
     
    So yet another thread regarding to the subject has been killed.

    This thread is a continuation of the thread linked below:
    Re-Visintg the Addition of the Triple-Type, started by Black Temple Guardian.

    So to address the points that you, Black Temple Guardian, made in the very last posts of that thread:


    The Compiler script lists a number of free bytes that are used. One of them is 17, which is what I used, I believe. So if you use 17, that should at least fix that issue.

    There may have been a typo on my part, so I apologize if that was the case. I did however correct it later, but without posting it the day after. So again, my apologies.



    This doesn't appear to work either. When I went and copied it into my Compiler script (thinking it really was the right one), I got errors upon moves being used in battle. And I didn't just test this on White Kyurem; I went in and changed Genesect to add the types based on what Drive it holds, and they all do the same errors. Even on normal Pokemon with only two types. They get errors too.

    Even with my old scripts in the Compiler every damaging move is broken. So we need to come up with a fix for this. Have you come up with a fix in the last six months your last thread has been dead?

    No, because it's working perfectly for me O.o

    While not perfect, I even made a tutorial for it. (Which I really should get around to refining.)
     
    No, because it's working perfectly for me O.o

    While not perfect, I even made a tutorial for it. (Which I really should get around to refining.)
    Alrighty, well maybe you can help me out with something; I'm still getting errors; the program says where the problem is happening is in PokeBattle_Move, right around my line 434, which is this line:
    Code:
        return mod1*mod2*mod3

    So it has to be something beforehand. If you don't mind taking a look at my scripts so you can help me out, then by all means. The link for it is right here:
    Scripts.rxdata
     
    Back
    Top