• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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] Need Help With Script

6
Posts
7
Years
    • Seen Nov 25, 2017
    This Script I Worked For Choosing Your Starter. When You Choose Your Pokemon The Game As Far As I Can See, It Freezes. Its A Person Event & Can Someone Fix It?

    Heres The Script:
    #dynamic 0x80000
    #org @start
    lock
    faceplayer
    checkflag 0x201
    compare LASTRESULT 0x1
    if 0x1 goto @arh
    msgbox @t1 0x5
    compare LASTRESULT 0x1
    if 0x1 goto @t2
    msgbox @t5 0x6
    release
    end

    #org @t5
    = Thats To Bad.

    #org @arh
    msgbox @arh2 0x6
    release
    end

    #org @arh2
    = [black_fr]Pokemon Freak:You All Ready/nGot A Pokemon [player]!

    #org @t1
    = [black_fr]Pokemon Freak:Do You Want A\nPokemon, [red_fr][player][grey_fr]?

    #org @t2
    msgbox @t2-1 0x5
    compare LASTRESULT 0x1
    if 0x1 goto @t2y
    msgbox @t3 0x5
    compare LASTRESULT 0x1
    if 0x1 @t3y
    msgbox @t4 0x5
    compare LASTRESULT 0x1
    if 0x1 @t4y
    msgbox @t5 0x6
    release
    end

    #org @t2-1
    = [black_fr]Pokemon Freak:Do You Want Azurill?

    #org @t3
    = [black_fr]Pokemon Freak:Do You Want Hoppip?

    #org @t4
    = [black_fr]Pokemon Freak:Do You Want Magby?

    #org @t2y
    givepokemon 0x350 0x5 0x139 0x0 0x0 0x0
    setflag 201
    release
    end

    #org @t3y
    givepokemon 0x187 0x5 0x139 0x0 0x0 0x0
    setflag 201
    release
    end

    #org @t4y
    givepokemon 0x240 0x5 0x139 0x0 0x0 0x0
    setflag 0x201
    release
    end
     
    352
    Posts
    7
    Years
    • Seen Mar 10, 2022
    This Script I Worked For Choosing Your Starter. When You Choose Your Pokemon The Game As Far As I Can See, It Freezes. Its A Person Event & Can Someone Fix It?

    Heres The Script:
    Spoiler:

    Well, you don't need "compare" for flags, and you've placed 2 adresses with the same condition, use it as your @start:

    lock
    faceplayer
    checkflag 0x201
    if 0x1 goto @arh (enabled flag)
    (disabled flag)
    ...
    ...
    ...
     
    10
    Posts
    7
    Years
    • Seen Aug 20, 2023
    I'm no scripting God myself, but just a two things which seem out of place to me:

    - In @t2y and @t3y you've set the flags as 201, in @t4y you've used 0x201. Should all be 0x201, if I'm correct (as your checkflag also points to 0x201).
    - I'm not quite sure if @t2-1 is a valid name, really. Wouldn't it be easier for yourself if you just named those sequences differently, as you've already used an @t1 and @t2 before.

    Hope this fixes it.
     
    Back
    Top