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

[TehTehTehTeh's] XSE Basic/Medium tutorial

Status
Not open for further replies.
248
Posts
15
Years
    • Seen Nov 22, 2014
    I'm not sure. That's why I'm asking if checkflag 0x16f also means checking if you've got the national dex. However, for running shoes, its a flag.. not a special.. so you just check the flag for the running shoes.
     
    5,814
    Posts
    16
    Years
    • Age 30
    • Seen May 19, 2021
    Well, I'm still a little confused and need an example script.
    I'm fairly new to scripting since XSE is the only scripting tool that works on my computer.
     
    248
    Posts
    15
    Years
    • Seen Nov 22, 2014
    @eeveon

    #org @start
    checkflag 0x82f
    if 1 goto @done
    setflag 0x82f
    message @received
    boxset 6
    end

    #org @done
    message @oh
    boxset 6
    end

    #org @received
    = You received running shoes.

    #org @oh
    = Oh, you already have a pair.
     

    ~Teh Panda~

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

    #org @start
    checkflag 0x82f
    if 1 goto @done
    setflag 0x82f
    message @received
    boxset 6
    end

    #org @done
    message @oh
    boxset 6
    end

    #org @received
    = You received running shoes.

    #org @oh
    = Oh, you already have a pair.

    thanks for showing the example mate, I am too tired to now XD
     

    Coral

    IceCharizard's brother
    60
    Posts
    15
    Years
  • Hm.
    I tried to use this script:

    Code:
    #dynamic 0x800000
    
    #org @givepokemon
    lock
    faceplayer
    Message @Char
    boxset 6
    givepokemon 4 5 0 0 0 0
    release
    end
    
    #org @Char
    = I'd better take my CHARMANDER with me!

    It works perfectly, but it doesn't make a sound and when I press START, there's no POKEMON (just BAG, [player], OPTIONS, SAVE, EXIT)

    Is there a special command to do this?
     

    Tropical Sunlight

    The Faltine
    3,476
    Posts
    16
    Years
  • Hey it's 0x828

    Try it like this:

    #dynamic 0x800000

    #org @givepokemon
    lock
    faceplayer
    Message @Char
    boxset 6
    givepokemon 4 5 0 0 0 0
    fanfare 0x13E
    setflag 0x828
    release
    end

    #org @Char
    = I'd better take my CHARMANDER with me!

    But then it doesn't disappear. Strange (or am I just a noob?)
     
    Last edited:

    chaotic_soma

    Chaotic little devil anyone?
    27
    Posts
    16
    Years
  • okay for both the charizards try this i just tested it and it works:

    #dynamic 0x2DD2BE

    #org @givepokemon
    checkflag 0x206
    if b_true goto @recieved
    lock
    faceplayer
    Message @give
    boxset 6
    setflag 0x206
    givepokemon 1 5 0 0 0 0
    fanfare 0x13E
    release
    end

    #org @give
    = Here is a Bulbasaur

    #org @recieved
    lock
    faceplayer
    message @cheap
    boxset 6
    release end

    #org @cheap
    = don't be cheap!

    enjoy :3
     
    Last edited:

    ~Teh Panda~

    Back in hacktion
    918
    Posts
    16
    Years
    • Seen Jul 20, 2022
    Beta 1 should be out soon enough like a week or two after my beta testers get it ready and bug reports flow in.... Than beta 1 than I hopefully continue this tut!
     

    chaotic_soma

    Chaotic little devil anyone?
    27
    Posts
    16
    Years
  • Hey i know that this is the wrong this is the wrong spot to ask this but i can't for the life of me find where i am supposed to put this i need a simple "don't go into the grass till you have a pokemon" script. obviously for XSE i never learnt it before so yeah help :)
     

    Charliezard

    A wild shroomish appeared!
    1,276
    Posts
    16
    Years
  • Ummm, I'm tired lol an yeh...maybe try something like

    Code:
    #Dynamic 0x80000
    
    #ORG @GrassMaybe
    
    lock
    checkflag 0x828
    if 0x0 goto @NoEntry
    release
    end
    
    #ORG @NoEntry
    ~Talking Script~
    ~Movement script~

    0x828 is the pokemon menu flag so yeh. Sorry, that's all I really know lol, I'm having problems with the movement myself. I got help from Hackmew, made the changes and well he said it worked for him -_- Just me lol. I'll be best to try when I'm not tired lol
     

    chaotic_soma

    Chaotic little devil anyone?
    27
    Posts
    16
    Years
  • Ummm, I'm tired lol an yeh...maybe try something like

    Code:
    #Dynamic 0x80000
    
    #ORG @GrassMaybe
    
    lock
    checkflag 0x828
    if 0x0 goto @NoEntry
    release
    end
    
    #ORG @NoEntry
    ~Talking Script~
    ~Movement script~
    0x828 is the pokemon menu flag so yeh. Sorry, that's all I really know lol, I'm having problems with the movement myself. I got help from Hackmew, made the changes and well he said it worked for him -_- Just me lol. I'll be best to try when I'm not tired lol

    Hey thanks *freaks out* I never learned movement either!!!
    so hmm maybe i should talk to Hackmew...
     

    Master_Track

    ROM Reaverz Scripter
    916
    Posts
    16
    Years
  • movements are easy.
    a basic don't go out script would look like this:

    #dynamic 0x[offset]

    #org @begin
    checkflag 0x828
    if B_true goto @done
    lock
    message @stop
    boxset 0x6
    applymovement 0xFF @1
    waitmovement 0
    release
    end

    #org @done
    release
    end

    #org @stop
    = I shouldn't go out without\na pokemon!

    #org @1
    #binary 0x10 0xFE

    This will make you go done 1 tile.
    Movement lists can be found in thethethethe's pokescript tutorial for both FR/BG and R/S/E.
     

    chaotic_soma

    Chaotic little devil anyone?
    27
    Posts
    16
    Years
  • movements are easy.
    a basic don't go out script would look like this:

    #dynamic 0x[offset]

    #org @begin
    checkflag 0x828
    if B_true goto @done
    lock
    message @stop
    boxset 0x6
    applymovement 0xFF @1
    waitmovement 0
    release
    end

    #org @done
    release
    end

    #org @stop
    = I shouldn't go out without\na pokemon!

    #org @1
    #binary 0x10 0xFE

    This will make you go done 1 tile.
    Movement lists can be found in thethethethe's pokescript tutorial for both FR/BG and R/S/E.


    hey omg thank you so much! *crash tackles master_track* you are my new friend!!!
     

    ~Teh Panda~

    Back in hacktion
    918
    Posts
    16
    Years
    • Seen Jul 20, 2022
    Beta 1 is progressing for underground about a week, I just need Mew_Ryn lol. Then Part 4, Flags!
     

    ZodiacDaGreat

    Working on a Mobile System
    429
    Posts
    17
    Years
  • #dynamic 0x800000

    #org @start
    applymovement 0x5 @move
    end

    #org @move
    #raw 0x08
    #raw 0x08
    #raw 0x08
    wrong, you should always end movements with #raw 0xFE, so the game knows when to stop, otherwise it'll crash.
     

    Darthatron

    巨大なトロール。
    1,152
    Posts
    18
    Years
  • movement is done in XSE almost the same way as rubikon except you use @(something)
    my example

    #dynamic 0x800000

    #org @start
    applymovement 0x5 @move
    end

    #org @move
    #raw 0x08
    #raw 0x08
    #raw 0x08
    In addition to what Zodiac said, you can also have all the movements on one line, which means less typing:
    Code:
    #dynamic 0x800000
     
    #org @start
    applymovement 0x5 @move
    end
     
    #org @move
    #raw 0x08 0x08 0x08 0xFE
     

    ~Teh Panda~

    Back in hacktion
    918
    Posts
    16
    Years
    • Seen Jul 20, 2022
    In addition to what Zodiac said, you can also have all the movements on one line, which means less typing:
    Code:
    #dynamic 0x800000
     
    #org @start
    applymovement 0x5 @move
    end
     
    #org @move
    #raw 0x08 0x08 0x08 0xFE

    Will this save any byes by putting them all on one line?
     
    Status
    Not open for further replies.
    Back
    Top