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

XSE Scripting Tutorial

Status
Not open for further replies.

Lukeyjohnno

Hacker-In-Training ;)
76
Posts
16
Years
    • Seen Jun 1, 2013
    I think you must've mistakenly put in 0x252 into the script. Since 252 in HEX equals 594 in DEC, and there are only 411 pokemon in the game (including the 25 unused ones). So fix that and it'll work.

    Oh! Thanks so much!!
    Now, can anyone help me, lol, again?
    Say after she's given the pokémon, make it so you can't see her sprite anymore?
    I dunno where to put the hidesprite...
     
    Last edited:
    12
    Posts
    16
    Years
    • Seen Feb 22, 2010
    Oh! Thanks so much!!
    Now, can anyone help me, lol, again?
    Say after she's given the pokémon, make it so you can't see her sprite anymore?
    I dunno where to put the hidesprite...

    If your problem is: after fighting the pokemon, the spite did vanish, but if you take just one step then it will appear again, then open up Advance Map, type in 0200 for Person ID. (0200 is the value of the flag you used in the script, if you change this value, then change Person ID as well).
     

    Lukeyjohnno

    Hacker-In-Training ;)
    76
    Posts
    16
    Years
    • Seen Jun 1, 2013
    If your problem is: after fighting the pokemon, the spite did vanish, but if you take just one step then it will appear again, then open up Advance Map, type in 0200 for Person ID. (0200 is the value of the flag you used in the script, if you change this value, then change Person ID as well).

    I put 0200 into the AMap, and it didn't change anything.
    What I really need is:
    Person to give the pokémon.
    Then say "I have to leave now."
    Then make it fade the screen, and the person is gone.
     
    12
    Posts
    16
    Years
    • Seen Feb 22, 2010
    I put 0200 into the AMap, and it didn't change anything.
    What I really need is:
    Person to give the pokémon.
    Then say "I have to leave now."
    Then make it fade the screen, and the person is gone.

    OK, try this:

    #dynamic 0x800000

    #org @give
    lock
    faceplayer
    msgbox @poke 0x6
    givepokemon 0x192 0x1e 0x1 0x0 0x0 0x0
    msgbox @received 0x6
    fanfare 0x13e
    waitfanfare
    msgbox @leave 0x6
    fadescreen 0x1
    hidesprite LASTTALKED
    fadescreen 0x0
    setflag 0x1000
    release
    end

    #org @received
    = \v\h01 RECEIVED A POKEMON!

    #org @leave
    = I have to leave now.

    #org @poke
    = I've got something for you.

    I've already tested this on my FireRed rom, and it worked. Remember to change the Person ID into 1000.
     

    Lukeyjohnno

    Hacker-In-Training ;)
    76
    Posts
    16
    Years
    • Seen Jun 1, 2013
    OK, try this:

    #dynamic 0x800000

    #org @give
    lock
    faceplayer
    msgbox @poke 0x6
    givepokemon 0x192 0x1e 0x1 0x0 0x0 0x0
    msgbox @received 0x6
    fanfare 0x13e
    waitfanfare
    msgbox @leave 0x6
    fadescreen 0x1
    hidesprite LASTTALKED
    fadescreen 0x0
    setflag 0x1000
    release
    end

    #org @received
    = \v\h01 RECEIVED A POKEMON!

    #org @leave
    = I have to leave now.

    #org @poke
    = I've got something for you.

    I've already tested this on my FireRed rom, and it worked. Remember to change the Person ID into 1000.

    Thanks so much bro.
    You're helping me out alot, I'll just stick this into my ROM now..

    EDIT: Okay, so it worked, but I need it to activate the pokémon menu, how do I do this?

    EDIT2: Nevermind I sorted it, thanks a bunch ;D

    EDIT3: After testing it out completely. I left the house after obtaining the pokemon.
    I walked back in the house, and he was back there again...
     
    Last edited:
    12
    Posts
    16
    Years
    • Seen Feb 22, 2010
    Thanks so much bro.
    You're helping me out alot, I'll just stick this into my ROM now..

    EDIT: Okay, so it worked, but I need it to activate the pokémon menu, how do I do this?

    EDIT2: Nevermind I sorted it, thanks a bunch ;D

    EDIT3: After testing it out completely. I left the house after obtaining the pokemon.
    I walked back in the house, and he was back there again...

    That can't be! When I first made a script of this hidesprite kind, I also had the same problem of the sprite reappearing like that. But then, I discovered that if I gave the sprite's PERSON ID the same value of the flag I used in the script (thanks to HackMew's built-in Guide in XSE), the problem would be solved.
    It's possible that you've got an older version of XSE. If so, update it and see if it works.

    EDIT: It's also possible that the flag you set in the script was already cleared. In that case just use another flag.
     
    Last edited:

    Lukeyjohnno

    Hacker-In-Training ;)
    76
    Posts
    16
    Years
    • Seen Jun 1, 2013
    That can't be! When I first made a script of this hidesprite kind, I also had the same problem of the sprite reappearing like that. But then, I discovered that if I gave the sprite's PERSON ID the same value of the flag I used in the script (thanks to HackMew's built-in Guide in XSE), the problem would be solved.
    It's possible that you've got an older version of XSE. If so, update it and see if it works.

    EDIT: It's also possible that the flag you set in the script was already cleared. In that case just use another flag.
    Well, what I have found out, is that i'll go back into the house, and he'll still be there, i'll take the pokémon off him and leave the house again. I go back in and he's gone for good.
    I did edit the script a little bit, to fit my needs. I'll repost it to see if I have change something I shouldn't have:
    Spoiler:
     
    35
    Posts
    15
    Years
    • Seen Sep 20, 2011
    can some one give me a script for a 16,15 gym with 5 or 6 pokemon and sript for a in game clock or tut for these plz i need help
     

    Xatoku

    Game Developer
    451
    Posts
    15
    Years
  • Umm whenever I click "compile" it says that "Too less paremeters on line 6. The correct number is 2"

    The script is,
    #Dynamic 0x800000

    #ORG @Main
    Lock
    FacePlayer
    Message @Speak
    BoxSet 0x6
    Release
    End

    #ORG @Speak
    = This is a message!

    What do I need to fix?
     

    Benzee

    I got your number, on the wall
    41
    Posts
    15
    Years
  • Hey, first let me say that this is a cool tutorial and I look forward to using it. When I tried to make a script for a test sign, I followed your steps. Here is my script.

    Spoiler:


    Now I hit compile script, but I don't know how to insert it into the game. I tried setting the offset number in advance-map to $800426, but then whenever I open it, it's a different one. I've been trying to figure it out for a while, but I have yet to figure out what I am doing wrong. Any help would be appreciated.

    Edit: Just figured out the problem. Great guide.
     
    Last edited:

    Chibi Robo

    of the entire epoch!
    854
    Posts
    15
    Years
  • Ive made my script and compiled but how do I put it on advance map into a person?
     
    Last edited:

    Zanny77

    I'm back, baby!
    259
    Posts
    15
    Years
  • Erm, I am not sure what's going on. I have XSE up and I tried to run this on the fat guy in front of Prof. Oak's lap.

    Spoiler:


    I also went into Advance Map and changed his script offset to 800000, but it's not working. What's wrong?

    (Also, I'm not sure if this does anything, but I moved him into in front of the house and changed his position to "look up."
     
    5
    Posts
    15
    Years
    • Seen Oct 9, 2016
    Whats wrong with this:



    #org $16B0000
    lock
    faceplayer
    checkflag 0x1000
    if b_true goto $alredygot
    message $getitem
    $getitem 1 = Your pokedex is upgradet
    boxset 6
    giveitem 0xD 0x5
    setflag 0x1000
    release
    end

    #ORG $alredygot
    lock
    faceplayer
    message $onlyone
    $onlyone 1 = Do you like your new pokedex
    boxset 6
    release
    end
     

    thetribemaster

    Pokemon: Brink of Oblivion
    25
    Posts
    16
    Years
    • Seen Mar 30, 2009
    @AL_91

    Try this, I even went to the trouble of fixing your grammar :D
    DONT COPY AND PASTE

    Spoiler:


    @Zanny77

    Try this one, same as above

    Spoiler:


    @HFI

    Seriously, did you read the thread, or just post, type in the offset XSE gave you into the "Script offset" field (by default it will have $000000 in it) type it like this, say the offset was 800000, then it would say $800000.
     
    Last edited:
    5
    Posts
    15
    Years
    • Seen Oct 9, 2016
    now i learned how to use FSF
    but..

    #dynamic 0x9C0B20
    #org @start
    lock
    faceplayer
    checkflag 0x923
    if 0x1 goto @alredygot
    msgbox @getitem 0x6 <-?
    giveitem ?????? <------ what sould i put here??
    setflag 0x923
    release
    end

    #ORG @alredygot
    msgbox @onlyone 0x6
    release
    end

    #org @getitem
    = Your pokedex is upgraded.

    #org @onlyone
    = Do you like your new pokedex?


    ------------------------------------------

    pkmnhackersonline says
    [F301] = Emerald national dex
     

    thetribemaster

    Pokemon: Brink of Oblivion
    25
    Posts
    16
    Years
    • Seen Mar 30, 2009
    That depends on what you want to give, the script you gave me would give you 5 potions.
    Oh, you want to give the national dex, thats a special.

    Replace giveitem xxx xxx xxx with

    special 0x1F3
     
    Last edited:
    5
    Posts
    15
    Years
    • Seen Oct 9, 2016
    ...
    if 0x1 goto @alredygot
    msgbox @getitem 0x6
    special 0x1F3
    setflag 0x923
    release
    ...
    Like this??

    #Dynamic 0x800000

    #org 0xE3CF65
    lock
    faceplayer
    checkflag 0x10B
    if 0x1 jump 0xE3CF8B
    setflag 0x10B
    special 0x1F3
    msgbox 0x8E3CF97
    callstd 0x6
    fanfare 0x13E
    msgbox 0x8E3CFB3
    callstd 0x6
    release
    end

    #org 0xE3CF8B
    lock
    faceplayer
    msgbox 0x8E3CFC6
    callstd 0x6
    release
    end

    #org 0xE3CF97
    = text
    #org 0xE3CFB3
    = Pokedex Upgradet
    #org 0xE3CFC6
    = Like your new pokedex?

    game works with this but very slowly (and sorry for my bad english)

    i fixed it. thanx for help
     
    Last edited:

    Southparkerstan

    Beggining ROM hacker- mapper
    26
    Posts
    15
    Years
    • Seen May 29, 2014
    Hi, I have a problem with XSE. Whenever i hit the compile button, i get a message that says "Too les parameters on line 6. The correct number is 2." Whats the problem?
    Here's the script:
    #Dynamic 0x800000
    #ORG @Main
    Lock
    FacePlayer
    Message @Speak
    BoxSet 0x6
    Release
    End
    #ORG @Speak
    = This is a test script.
     
    5
    Posts
    15
    Years
    • Seen Oct 9, 2016
    for national dex i used


    '-----------------------
    #org 0x869630
    lock
    faceplayer
    checkflag 0x10A
    if 0x1 call 0x8869652
    special 0x1F3
    setflag 0x10A
    fanfare 0x13E
    msgbox 0x8869678 '"Your POKéDEX was upgraded!"
    callstd 0x6
    waitfanfare
    release
    end

    '-----------------------
    #org 0x869652
    msgbox 0x886965E '"Like your new POKéDEX?"
    callstd 0x6
    release
    end


    '---------
    ' Strings
    '---------
    #org 0x869678
    = Your POKéDEX was upgraded!

    #org 0x86965E
    = Like your new POKéDEX?
     
    Status
    Not open for further replies.
    Back
    Top