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

destinedjagold

You can contact me in PC's discord server...
8,593
Posts
16
Years
    • Seen Dec 23, 2023
    How would you script a custom trainer battle? (with custom names, sprites, pokemon, etc..)

    Script - read scripting tutorials. - Documents and Tutorials.
    Custom name - use HackMew's Advance Trainer tool. - Toolbox section.
    Custom sprites - use EliteMap's Unlz-GBA, or Wichu's sprite editor tool. - Toolbox section.
    Custom PKMN - use HackMew's Advance Trainer tool. - Toolbox section.
     

    Binary

    え?
    3,977
    Posts
    16
    Years
    • Seen Apr 7, 2014
    @Fr0z3n: I meant put a script tile/event in front of the OW and put the offset for the script in the script tile.
     
    20
    Posts
    14
    Years
    • Seen Apr 24, 2010
    eXtreme Script Editor - problem

    Hello. I have a problem. How to disable Script after its use? (eXtreme Script Editor).
     
    10,078
    Posts
    15
    Years
    • UK
    • Seen Oct 17, 2023
    Hello. I have a problem. How to disable Script after its use? (eXtreme Script Editor).


    include

    checkflag 0xYYYY
    if 0x1 goto @End

    At the beginning of the script

    setflag 0xYYYY
    At the end.

    #org @End
    release
    end

    As an extra string.

    Where YYYY is a unique flag assigned to that script.
     
    6
    Posts
    14
    Years
    • Seen Apr 12, 2010
    this is my first time using xse so can you tell me why this script isnt working...
    #dynamic 0x71A334

    #org @start
    lock
    faceplayer
    message @order
    boxset 6
    release
    end

    #org @order
    = Buy Chimecho's!
    givepokemon 0x441 0x5 0x13 0x0 0x0 0x0
    paymoney 0x1000 0x0
    All i want is to be able to buy pokemon... i dont need another script when the pokemon has been given

    Oh and one other thing i wanted to make a pokemon game that was a replica of the origianl pokemon special pikacu addition with some of my own ideas, but to do so i was looking for a script that would make pikachu follow you.
     
    Last edited:

    Binary

    え?
    3,977
    Posts
    16
    Years
    • Seen Apr 7, 2014
    this is my first time using xse so can you tell me why this script isnt working...
    #dynamic 0x71A334

    #org @start
    lock
    faceplayer
    message @order
    boxset 6
    release
    end

    #org @order
    = Buy Chimecho's!
    givepokemon 0x441 0x5 0x13 0x0 0x0 0x0
    paymoney 0x1000 0x0
    All i want is to be able to buy pokemon... i dont need another script when the pokemon has been given

    Oh and one other thing i wanted to make a pokemon game that was a replica of the origianl pokemon special pikacu addition with some of my own ideas, but to do so i was looking for a script that would make pikachu follow you.



    Spoiler:

    Ok. This is the script you were trying to make. I'll explain it for you.
    the '0x5' after 'msgbox @1' If you pick yes then the value stored in LASTRESULT will be 0x1. It checks wether LASTRESULT is '0x1' i.e. if you picked yes. If you picked yes the script will continue to @take. If you pick no, the script will continue in the same header and display msgbox @2.
    At @take Chimecho is given (I also converted the numbers into hex for you). Fanfare 0x13E produces a jingle sound while displaying msgbox @3. It waits for the fanfare to complete and closes the msgbox on pressing A.

    I don't know wether your second question is possible. You could always make an OW including Pikachu.
     
    6
    Posts
    14
    Years
    • Seen Apr 12, 2010
    It works except that you are givin the pokemon and money is taken away without the messages appearing.
     
    Last edited:

    Zeffy

    g'day
    6,402
    Posts
    15
    Years
    • Seen Feb 7, 2024
    Hey guys, im having a problem with giving the item town map..
    here the code:

    Spoiler:


    it says im missing something in the "giveitem 0x169 0x1 part

    [jq]giveitem 0x169 0x1 MSG_OBTAIN[/jq]

    Change your giveitem line to that then remove those fanfare, msgbox, closeonkeypress thing that's related to the giveitem command. I'll just rewrite the script for you:

    Spoiler:

    That should work now. I also edited out some of the wrong things you inputted.[SIZE=-5]like those faceplayer commands randomly everywhere[/SIZE]
     
    53
    Posts
    15
    Years
    • Seen May 14, 2010
    From the looks of map I guess you want to activate the script as soon as player goes outside.
    But yours is not gonna work ;)
    You have to use level script for this :)

    Oh, well could you possibly re-write it or show me where to make one?
     
    62
    Posts
    14
    Years
    • Seen Oct 24, 2013
    Oh, well could you possibly re-write it or show me where to make one?

    Level scripts are almost exatcly the same. The script isn't working because you put the var value to 3 and the script will only work if you set var 4050 with value 3. Try changing the var value to 0000.
     
    32
    Posts
    14
    Years
    • Age 38
    • Seen Dec 16, 2010
    I'm really sorry, I have no idea how to put this in a spoiler button. I made a script to trade the starter pokemon with a different pokemon. Everything works fine before I obtain the pokemon, but after I get it, I can't trade it. It just acts like I setflag 0x1000 when that shouldn't happen until the trade is complete. Please can anyone help me.

    #dynamic 0x801952

    #org @start
    lock
    faceplayer
    checkflag 0x1000
    if 0x1 goto @Alreadydone
    checkflag 0x1001
    if 0x1 goto @Toolate
    msgbox @Ask 0x5
    compare LASTRESULT 0x1
    if 0x1 goto @Remove
    compare LASTRESULT 0x1
    if 0x1 goto @Take
    msgbox @Deny 0x6
    release
    end

    #org @Remove
    call @menu
    special2 LASTRESULT 0x84
    compare LASTRESULT 0x1
    if 0x2 goto @cant
    compare 0x8004 0x6
    if 0x4 goto @goback
    special2 0x8005 0xBA
    bufferpokemon 0x0 0x8005
    goto @continue

    #org @menu
    special 0x9F
    waitstate
    lock
    faceplayer
    copyvar 0x800A 0x8004
    return

    #org @cant
    msgbox @add MSG_NORMAL
    release
    end

    #org @goback
    msgbox @no 0x5
    compare LASTRESULT 0x1
    if 0x1 goto @Nothanks
    goto @Remove

    #org @Nothanks
    msgbox @Deny MSG_NORMAL
    release
    end

    #org @continue
    special 0x176
    cmdc3 0x2F
    goto @release

    #org @release
    msgbox @bye MSG_NORMAL
    fanfare 0x101
    waitfanfare
    release
    end

    #org @Take
    givepokemon 0x161 0x5 0x0 0x0 0x0 0x0
    fanfare 0x13E
    msgbox @Recieve 0x4
    waitfanfare
    closeonkeypress
    setflag 0x1000
    msgbox @Nickname 0x5
    compare LASTRESULT 0x1
    if 0x1 gosub @Givenickname
    compare LASTRESULT 0x1
    if 0x1 goto @Pleasetakecareof 0x6
    release
    end

    #org @Givenickname
    call 0x1A74EB
    return

    #org @Alreadydone
    msgbox @Alreadygot 0x6
    release
    end

    #org @Toolate
    msgbox @Sorry 0x6
    release
    end

    #org @Ask
    = This Pikachu is very special.\nHe can learn water type attacks.\pThe only down side is\nthat he doesn't have the\lability to evolve.\pWe are trying to get a hold of\none of the POK\h1AMON in\lProf. Young's office\pIf you have one, I would\ntrade this Pikachu for it.

    #org @Sorry
    = This Pikachu is very special.\nHe can learn water type attacks.

    #org @Deny
    = That's ok.\nI'm sure we will get our hands on\lanother POK\h1AMON somehow.

    #org @Recieve
    = \c[red_fr]You recieved a Pikachu!

    #org @Nickname
    = Would you like to give a\nnickname to Pikachu?

    #org @Pleasetakecareof
    = please take good care of\nthat Pikachu.

    #org @Alreadygot
    = Thanks for [buffer1]!\pWe can make him into a very\nunique POK\h1AMON now!

    #org @add
    = I'm sorry.\nYou don't have any POK\h1AMON we\lcould use.

    #org @no
    = Come on.\nAre you sure you don't want to\lhelp us out?

    #org @bye
    = \c[navyblue_fr]Goodbye, [buffer1].\pDon't worry, we will take good care of [buffer1].
    /sp"
     
    Last edited:

    The Noob Hacker

    Praise the sun.
    559
    Posts
    14
    Years
    • Seen Jul 16, 2016
    Okay, you know how at the beginning of any Pokemon game there is no Pokemon spot on the start screen? Well, how do you make that slot appear?
     
    Status
    Not open for further replies.
    Back
    Top