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

[Other] CANNOT get Applymovement commandsto work.

12
Posts
10
Years
    • Seen Feb 27, 2024
    Can anybody give me some key things that you need to do to get it to work in a firered ROM?

    #dynamic 0x800001
    #org @start
    msgbox @talk 0x6
    playsong 0x011A 0x0
    applymovement 4 @walk
    waitmovement 4
    applymovement 0xFF @jump
    waitmovement 0xFF
    msgbox @talk2 0x6
    giveitem 0x103 0x1 0x0
    msgbox @talk3 0x6
    applymovement 4 @walk3
    waitmovement 4
    hidesprite 4
    setvar 0x6001 0x1
    setflag 0x1201
    fadesong 0x12C
    release
    end
    #org @talk
    = Hey! Wait!
    #org @talk2
    = You Don't Have a Bike.
    #org @talk3
    = Good Luck!
    #org @walk
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0x12
    #raw 0x12
    #raw 0x12
    #raw 0x12
    #raw 0x4A
    #raw 0xFE
    #org @jump
    #raw 0x63
    #raw 0x55
    #raw 0xFE
    #org @walk3
    #raw 0x13
    #raw 0x13
    #raw 0x13
    #raw 0x13
    #raw 0x11
    #raw 0x11
    #raw 0x11
    #raw 0x11
    #raw 0x11
    #raw 0x11
    #raw 0x11
    #raw 0xFE

    was the script i used. Nothing happened when i stepped on the spot.
     
    Last edited by a moderator:

    daniilS

    busy trying to do stuff not done yet
    409
    Posts
    10
    Years
    • Seen Jan 29, 2024
    #dynamic 0x800001
    #org @start
    msgbox @talk 0x6
    playsong 0x011A 0x0
    applymovement 4 @walk
    waitmovement 4
    applymovement 0xFF @jump
    waitmovement 0xFF
    msgbox @talk2 0x6
    giveitem 0x103 0x1 0x0
    msgbox @talk3 0x6
    applymovement 4 @walk3
    waitmovement 4
    hidesprite 4
    setvar 0x6001 0x1
    setflag 0x1201
    fadesong 0x12C
    release
    end
    #org @talk
    = Hey! Wait!
    #org @talk2
    = You Don't Have a Bike.
    #org @talk3
    = Good Luck!
    #org @walk
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0x12
    #raw 0x12
    #raw 0x12
    #raw 0x12
    #raw 0x4A
    #raw 0xFE
    #org @jump
    #raw 0x63
    #raw 0x55
    #raw 0xFE
    #org @walk3
    #raw 0x13
    #raw 0x13
    #raw 0x13
    #raw 0x13
    #raw 0x11
    #raw 0x11
    #raw 0x11
    #raw 0x11
    #raw 0x11
    #raw 0x11
    #raw 0x11
    #raw 0xFE

    was the script i used. Nothing happened when i stepped on the spot.

    If it's a script tile, did you use the correct var number & set the correct var value?
     
    46
    Posts
    10
    Years
    • Seen Mar 4, 2018
    You may have already used var 6001 somewhere else, also did you set the unknowns in advanced map to 3? I have also found that these scripts can mess up if you have two people with the same event number on the map, sometimes AM glitches and does this. You may have two people as event 4.

    However if literally nothing is happening when you step on it, you probably have the var set somewhere (try another number) or don't have it put in properly somehow.
     

    daniilS

    busy trying to do stuff not done yet
    409
    Posts
    10
    Years
    • Seen Jan 29, 2024
    You may have already used var 6001 somewhere else, also did you set the unknowns in advanced map to 3? I have also found that these scripts can mess up if you have two people with the same event number on the map, sometimes AM glitches and does this. You may have two people as event 4.

    However if literally nothing is happening when you step on it, you probably have the var set somewhere (try another number) or don't have it put in properly somehow.

    STOP. The unknown value in advance map can be either 0 or 3 for the same effect. Since it is 0 by default, there is absolutely no need to change it to 3.
     
    12
    Posts
    10
    Years
    • Seen Feb 27, 2024
    okay, so I took your advice, set the var number to 4011, and unknown to 3, using this script:

    #dynamic 0x3B4D85
    #org @start
    applymovement 0xFF @walk
    setvar 0x4011 0x1
    release
    end
    #org @walk
    #raw 0x13
    #raw 0xFE

    And when I stepped on the spot, the game froze.
     

    destinedjagold

    You can contact me in PC's discord server...
    8,593
    Posts
    16
    Years
    • Seen Dec 23, 2023
    okay, so I took your advice, set the var number to 4011, and unknown to 3, using this script:

    #dynamic 0x3B4D85
    #org @start
    applymovement 0xFF @walk
    waitmovement 0
    setvar 0x4011 0x1
    release
    end
    #org @walk
    #raw 0x13
    #raw 0xFE

    And when I stepped on the spot, the game froze.

    Fix in red.
     
    287
    Posts
    11
    Years
  • Herp Derp, can't believe I didn't see it.
    The problem in the first one might have been the var and var value, and in the second one it must have been that you're not using free space.
    Be sure to always use 0x800000, xse will find free space.
     
    12
    Posts
    10
    Years
    • Seen Feb 27, 2024
    okay, so I just needed to set BOTH the unknowns to 3. It worked, but whend I Tried this script, Everything functioned properly except the OW #7 Didn't move. Help?

    #dynamic 0x7316D9
    #org @start
    checkflag 0x254
    if 0x1 goto @begin
    release
    end
    #org @begin
    checkflag 0x1211
    if 0x1 goto @done
    applymovement 0xFF @1
    applymovement 7 @2
    waitmovement 0x0
    msgbox @3 0x6
    trainerbattle 0x1 0x00E 0x0 @before @after @later
    release
    end
    #org @later
    msgbox @4 0x6
    setflag 0x82F
    fanfare 0x13E
    msgbox @5 0x6
    waitfanfare
    msgbox @6 0x6
    applymovement 7 @7
    waitmovement 0x0
    setflag 0x1211
    setvar 0x6010 0x1
    release
    end
    #org @before
    = We're Both Trainers So...
    #org @after
    = .....
    #org @1
    #raw 0x1
    #raw 0xFE
    #org @2
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0xFE
    #org @3
    = Hey. I'm Brendan. Who Are You? \p..................... \pOh. You're \v\H01.
    #org @4
    = Hm. Didn't See That Coming. \nHey, These Shoes Are Too Big. \pWill They Fit You?
    #org @5
    = \v\H01 Recieved \nThe Running Shoes!
    #org @6
    = Well, I Think I need To \nTrain More.
    #org @7
    #raw 0x11
    #raw 0x11
    #raw 0x11
    #raw 0x11
    #raw 0x11
    #raw 0x11
    #raw 0x11
    #raw 0x11
    #raw 0x11
    #raw 0x11
    #raw 0xFE
    #org @done
    release
    end
     

    destinedjagold

    You can contact me in PC's discord server...
    8,593
    Posts
    16
    Years
    • Seen Dec 23, 2023
    okay, so I just needed to set BOTH the unknowns to 3. It worked, but whend I Tried this script, Everything functioned properly except the OW #7 Didn't move. Help?

    Code:
    #dynamic 0x7316D9
    #org @start
    checkflag 0x254
    if 0x1 goto @begin
    release
    end
    #org @begin
    checkflag 0x1211
    if 0x1 goto @done
    applymovement 0xFF @1
    applymovement 7 @2
    waitmovement 0x0
    msgbox @3 0x6
    trainerbattle 0x1 0x00E 0x0 @before @after @later
    release
    end
    #org @later
    msgbox @4 0x6
    setflag 0x82F
    fanfare 0x13E
    msgbox @5 0x6
    waitfanfare
    msgbox @6 0x6
    applymovement 7 @7
    waitmovement 0x0
    setflag 0x1211
    setvar 0x6010 0x1
    release
    end
    #org @before
    = We're Both Trainers So...
    #org @after
    = .....
    #org @1
    #raw 0x1
    #raw 0xFE
    #org @2
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0x10
    #raw 0xFE
    #org @3
    = Hey. I'm Brendan. Who Are You? \p..................... \pOh. You're \v\H01.
    #org @4
    = Hm. Didn't See That Coming. \nHey, These Shoes Are Too Big. \pWill They Fit You?
    #org @5
    = \v\H01 Recieved \nThe Running Shoes!
    #org @6
    = Well, I Think I need To \nTrain More.
    #org @7
    #raw 0x11
    #raw 0x11
    #raw 0x11
    #raw 0x11
    #raw 0x11
    #raw 0x11
    #raw 0x11
    #raw 0x11
    #raw 0x11
    #raw 0x11
    #raw 0xFE
    #org @done 
    release
    end

    NPC number 7 is too far away from the area where the event is taking place...
    From the Player's position, only NPC's which are 1 to 8(or 9) tiles horizontally away and 1 to 6(or 7) tiles vertically away from the Player can participate in a script event.

    Spoiler:
     
    Back
    Top