• 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 Help Thread (DO NOT REQUEST SCRIPTS)

Status
Not open for further replies.

Pokepal17

More cowbell~
1,519
Posts
15
Years
  • Okay, I tryed that, and now he dosen't move at all.

    Then try this.

    ---------------
    #org 0x71BBE4
    lock
    compare PLAYERFACING 0x3
    if 0x1 goto 0x871BC3E
    compare PLAYERFACING 0x4
    if 0x1 goto 0x871BC63
    end

    '---------------
    #org 0x71BC3E
    applymovement 0x11 0x871BC70
    waitmovement 0x0
    release
    end

    '---------------
    #org 0x71BC63
    applymovement 0x11 0x871BC73
    waitmovement 0x0
    release
    end


    '-----------
    ' Movements
    '-----------
    #org 0x71BC70
    #raw 0x12 'Step Left (Normal)
    #raw 0xFE 'End of Movements

    #org 0x71BC73
    #raw 0x13 'Step Right (Normal)
    #raw 0xFE 'End of Movements
     

    /Circa

    a face in the clouds.
    881
    Posts
    16
    Years
  • In one of my maps, as soon as I take a left or right onto the script tiles the game freezes.

    Code:
    '---------------
    #org 0x298D2A
    checkflag 0x202
    if 0x1 goto 0x8298D6F
    lock
    faceplayer
    showsprite 0x4
    msgbox 0x8298D90 MSG_NORMAL '"Hold on kiddo!"
    applymovement MOVE_PLAYER 0x8298D72
    waitmovement 0x0
    applymovement 0x4 0x8298D75
    waitmovement 0x0
    msgbox 0x8298DA1 MSG_NORMAL '"Where the hell did you come from?\..."
    applymovement 0x4 0x8298D83
    waitmovement 0x0
    hidesprite 0x4
    setflag 0x202
    release
    end
    
    '---------------
    #org 0x298D6F
    release
    end
    
    
    '---------
    ' Strings
    '---------
    #org 0x298D90
    = Hold on kiddo!
    
    #org 0x298DA1
    = Where the hell did you come from?\nI saw that statue glow,\pthen you just pop out of nowhere!\nHmph... Ill figure it out.
    
    
    '-----------
    ' Movements
    '-----------
    #org 0x298D72
    #raw 0x2 'Face Left
    #raw 0xFE 'End of Movements
    
    #org 0x298D75
    #raw 0x20 'Step Right (Fast)
    #raw 0x20 'Step Right (Fast)
    #raw 0x20 'Step Right (Fast)
    #raw 0x20 'Step Right (Fast)
    #raw 0x20 'Step Right (Fast)
    #raw 0x20 'Step Right (Fast)
    #raw 0x20 'Step Right (Fast)
    #raw 0x20 'Step Right (Fast)
    #raw 0x20 'Step Right (Fast)
    #raw 0x20 'Step Right (Fast)
    #raw 0x20 'Step Right (Fast)
    #raw 0x55 'Jump in Place (Facing Right)
    #raw 0xFE 'End of Movements
    
    #org 0x298D83
    #raw 0x1F 'Step Left (Fast)
    #raw 0x1F 'Step Left (Fast)
    #raw 0x1F 'Step Left (Fast)
    #raw 0x1F 'Step Left (Fast)
    #raw 0x1F 'Step Left (Fast)
    #raw 0x1F 'Step Left (Fast)
    #raw 0x1F 'Step Left (Fast)
    #raw 0x1F 'Step Left (Fast)
    #raw 0x1F 'Step Left (Fast)
    #raw 0x1F 'Step Left (Fast)
    #raw 0x1F 'Step Left (Fast)
    #raw 0xFE 'End of Movements

    I don't know if it's the script or if it's my rom.

    Reposting..
     

    NarutoActor

    The rocks cry out to me
    1,974
    Posts
    15
    Years
  • Then try this.

    ---------------
    #org 0x71BBE4
    lock
    compare PLAYERFACING 0x3
    if 0x1 goto 0x871BC3E
    compare PLAYERFACING 0x4
    if 0x1 goto 0x871BC63
    end

    '---------------
    #org 0x71BC3E
    applymovement 0x11 0x871BC70
    waitmovement 0x0
    release
    end

    '---------------
    #org 0x71BC63
    applymovement 0x11 0x871BC73
    waitmovement 0x0
    release
    end


    '-----------
    ' Movements
    '-----------
    #org 0x71BC70
    #raw 0x12 'Step Left (Normal)
    #raw 0xFE 'End of Movements

    #org 0x71BC73
    #raw 0x13 'Step Right (Normal)
    #raw 0xFE 'End of Movements
    I already had the persons ID converted to hex (his number in advance map is 23) and from a script before this event his movements worked. But I tried it anyway and as I thought no change. I am going to try a new person event, some new offsets or compile it with pksv. Sometimes that fixes the problem.
     

    Satoshi Ookami

    Memento Mori
    14,254
    Posts
    15
    Years
  • Cirnos Servant : It might have something to do with showsprite command... since if OW is hidden in FR it might sometimes be very buggy.

    Anyways here's my problem.
    After I patched ROM with Shinyzer I wanted to make trainer battle with trainer who has shiny pokemon but nothing happens when I talk to NPC and also freeze the game.

    Code:
    #dynamic 0xA000000
    #org @start
    setvar 0x8003 0xC05 (It's same llike HackMew has in his tut)
    trainerbattle 0x0 0x1 0x0 @before @in 
    msgbox @after
    callstd 0x6
    release
    end
     
    219
    Posts
    16
    Years
  • Hi,does any one know that how to make a script happens when a moving(walking around) OW see you?
    And the "Green S" script won't sutable for me ,because it can't get to know whether the OW see you.
    It's just like a trainerbattle script ,but I don't want to have a battle.Something like this writing to a trainer will be crash:
    Code:
    #org @1
    message @2 0x2
    warp 0x1 0x7B 0xFF 0x2d 0x1c
     
    #org @2
    = blablabla...
     

    Pokepal17

    More cowbell~
    1,519
    Posts
    15
    Years
  • Hi,does any one know that how to make a script happens when a moving(walking around) OW see you?
    And the "Green S" script won't sutable for me ,because it can't get to know whether the OW see you.
    It's just like a trainerbattle script ,but I don't want to have a battle.Something like this writing to a trainer will be crash:
    Code:
    #org @1
    message @2 0x2
    warp 0x1 0x7B 0xFF 0x2d 0x1c
     
    #org @2
    = blablabla...

    Hmm, I don't believe there is so I think you'd have to use ASM.
     

    BlitŻ1

    guahh my dog is so cute
    472
    Posts
    15
    Years
  • Hmm, I don't believe there is so I think you'd have to use ASM.

    Actually there is no ASM involved actually. On advance map, simply check the trainer box, specify how many spaces should the trainer be able to see you, and insert your script. So whenever the trainer sees you... I'm not sure after that. I haven't tested it out yet, because just thought it up in theory. I'm going to do a lot of testing today, so I'll edit this post when I've found out..
     

    Pokepal17

    More cowbell~
    1,519
    Posts
    15
    Years
  • Actually there is no ASM involved actually. On advance map, simply check the trainer box, specify how many spaces should the trainer be able to see you, and insert your script. So whenever the trainer sees you... I'm not sure after that. I haven't tested it out yet, because just thought it up in theory. I'm going to do a lot of testing today, so I'll edit this post when I've found out..

    Doesn't work, been there and tried it. So again, ASM would be the way to go.
     

    Pokepal17

    More cowbell~
    1,519
    Posts
    15
    Years
  • Oh, I see.. but why wouldn't it work, would it be that there' has to be a trainer battle in the script? Or maybe for the fact that the event comes to you..

    The trainerbattle has to be there first, I think the trainer box was designed only for trainerbattles, so normal scripts won't work. I remeber what happens, your game will either freeze or reset.
     

    HackMew

    Mewtwo Strikes Back
    1,314
    Posts
    17
    Years
    • Seen Oct 26, 2011

    Anyways here's my problem.
    After I patched ROM with Shinyzer I wanted to make trainer battle with trainer who has shiny pokemon but nothing happens when I talk to NPC and also freeze the game.

    Code:
    #dynamic 0xA000000
    #org @start
    setvar 0x8003 0xC05 (It's same llike HackMew has in his tut)
    trainerbattle 0x0 0x1 0x0 @before @in 
    msgbox @after
    callstd 0x6
    release
    end

    What happens if you remove the setvar?


    The trainerbattle has to be there first, I think the trainer box was designed only for trainerbattles, so normal scripts won't work. I remeber what happens, your game will either freeze or reset.

    The Trainer checkbox should be used for actual trainers only, indeed. Otherwhise the game won't make it work properly.
     

    HackMew

    Mewtwo Strikes Back
    1,314
    Posts
    17
    Years
    • Seen Oct 26, 2011
    It's okay now :)
    I found a way to get it to work :)

    I guess you used a walkable script tile. Anyway, it would nice if you edit your post so that if someone is having the same problem, he/she could see your reply and solve the problem as well.
     

    ~Teh Panda~

    Back in hacktion
    918
    Posts
    16
    Years
    • Seen Jul 20, 2022
    SOLVED

    Spoiler:
     
    Last edited:

    Pokepal17

    More cowbell~
    1,519
    Posts
    15
    Years
  • Cirnos Servant : It might have something to do with showsprite command... since if OW is hidden in FR it might sometimes be very buggy.

    Anyways here's my problem.
    After I patched ROM with Shinyzer I wanted to make trainer battle with trainer who has shiny pokemon but nothing happens when I talk to NPC and also freeze the game.
    Code:
    #dynamic 0xA000000
    #org @start
    setvar 0x8003 0xC05 (It's same llike HackMew has in his tut)
    trainerbattle 0x0 0x1 0x0 @before @in 
    msgbox @after
    callstd 0x6
    release
    end

    You should update your version of XSE, since you are using a version that has been outdatet since Christmas. I can tell because the "msgbox" command now has the "callstd" value as a third parameter. Please read the first post next time as it clearly states that you need to be using the latest version of XSE. :3
     

    ~Teh Panda~

    Back in hacktion
    918
    Posts
    16
    Years
    • Seen Jul 20, 2022
    @Ash493

    Your offset A000000 is not an ingame offset.
    The hex in the GBA rom is from 000000 to FFFFFF
    You might be wanting A00000
     
    Status
    Not open for further replies.
    Back
    Top