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

[Archive] Script help thread

Status
Not open for further replies.
67
Posts
15
Years
    • Seen Jan 24, 2015
    Load's o' Questions...
    1. How do you make an applymovement script (going to be necessary a whole lot for my hack...)
    2. How do you make a shiny battle script?
    3. How do you make a give shiny 100% of the time? (For the ShinyCelebi you team up with in PMD 2)
    4. How do you make a remove pokemon script? (To take away Grovyle and ShinyCelebi)
     

    Iken

    The OTHER other white meat.
    17
    Posts
    15
    Years
  • How can I edit this script so that It shows text when recieving the pokemon?
    Spoiler:

    O_o wow i know this one.

    Try:
    #Dynamic 0x800000

    #org @start
    lock
    faceplayer
    checkflag 0x828
    if 0x1 goto @gotit
    message @give
    boxset 6
    release
    givepokemon 0x7 0x5 0x0 0x0 0x0 0x0
    setflag 0x828
    message @have
    boxset 6
    release
    end

    #org @give
    = Here, have a squirtle.

    #ORG @gotit
    msgbox @speak
    boxset 0x6
    release
    end

    #ORG @speak
    = How's Squirtle doing?

    #org @have
    = Have a nice day
     

    KhaosKnight

    The 1 and only Khaotic Hacker
    355
    Posts
    16
    Years
    • Seen May 28, 2015
    Load's o' Questions...
    1. How do you make an applymovement script (going to be necessary a whole lot for my hack...)
    2. How do you make a shiny battle script?
    3. How do you make a give shiny 100% of the time? (For the ShinyCelebi you team up with in PMD 2)
    4. How do you make a remove pokemon script? (To take away Grovyle and ShinyCelebi)

    1-4. check thex4s tut

    2-3. i think there is a program for this but there is no 100% perfect shiny code availible i dont think
     

    OutOfOrder

    Saving you from yourself...
    34
    Posts
    15
    Years
    • Seen Oct 9, 2008
    help!!!

    how do you make a trainer battle script for XSE???

    i have only seen the ones for the pokescript and such...
     
    1,619
    Posts
    16
    Years
  • hey can you help me please cause when i walk in this script it freezes please help here it is could you maybe fix it

    here :

    #org 0x8000A3
    checkflag 0x828
    if 0x0 goto 0x88000B7
    if 0x1 goto 0x88000B4
    end

    #org 0x8000B7
    lock
    msgbox 0x88000CD '"oh i forgot i need a pokemon \nfrom..."
    callstd 0x6
    applymovement MOVE_PLAYER 0x880011A
    waitmovement 0x0
    release
    end

    #org 0x8000B4
    release
    end

    #org 0x80011A
    #raw 3 'Face Right

    #org 0x8000CD
    = oh i forgot i need a pokemon \nfrom proffeser elm i better \ngo and get one.

    im just a starter
     

    Iken

    The OTHER other white meat.
    17
    Posts
    15
    Years
  • i'm having almost the same problem as riolu 9.

    mine is '-----------------------
    #org 0x760108
    checkflag 0x828
    if 0x1 goto 0x876012B
    applymovement 0x1 0x876012E
    faceplayer
    msgbox 0x8760133 '"Oh honey, PROF. CLIFF wanted to\n s..."
    callstd 0x6
    release
    applymovement 0x1 0x876016A
    end
    '-----------------------
    #org 0x76012B
    release
    end

    '-----------
    ' Movements
    '-----------
    #org 0x76012E
    #raw 62 'Exclamation Mark (!)
    #raw 11 'Step Up (Normal)
    #raw 13 'Step Right (Normal)
    #raw FE 'End of Movements
    #org 0x76016A
    #raw 10 'Step Down (Normal)
    #raw 12 'Step Left (Normal)
    #raw FE 'End of Movements

    '---------
    ' Strings
    '---------
    #org 0x760133
    = Oh honey, PROF. CLIFF wanted to\n see you in his lab.


    also i have another one but its pretty much riolu's with different text :|
     

    X-aveon

    IS BACK!!!!!!!!!!!!!!!!!!!
    233
    Posts
    16
    Years
    • Seen Jun 25, 2012
    Hi. I'm learning how to script and the tutorials for xse aren't good enough.
    i know its not a request thread either.
    I'm trying to make a script. heres what i want it to be like. i just need an example.

    First the person faces you, then if you don't have a pokemon, they just say, get lost kid. then once you have a pokemon he says, what's your problem. want to battle? then you start a battle.
    just put 0x0 for the battle, i'll choose who i want.
    after the battle, an exclamation mark goes above his head,
    then he says: I need to get out of here!
    and then he turns right, and then runs down 8 steps and dissapears.

    thats the script i need.
    thanx in advanced.

    X-aveon.

    EDIT:
    Here is a script i made. I need it fixed. whenever i play it on the game, it shows the script before it.

    #dynamic 0x1C5A03

    #org @start
    lock
    faceplayer
    checkflag 0x828
    if B_true goto @done
    msgbox @no time
    boxset 0x6
    release
    end

    #org @done
    msgbox @battle
    trainerbattle 0x0 0x15f 0x0 0x0 0x0
    if B_true goto @finished
    msgbox @haha
    boxset 0x6
    release
    end

    #org @finished
    msgbox @won
    boxset 0x6
    release end.

    #org @no time
    = I don't have\ntime for you.

    #org @battle
    = Do you have a\nproblem?\pLets fight!

    #org @haha
    = Weakling.

    #org @won
    = Dang, your strong!
     
    Last edited:
    857
    Posts
    15
    Years
  • Hi. I'm learning how to script and the tutorials for xse aren't good enough.
    i know its not a request thread either.
    I'm trying to make a script. heres what i want it to be like. i just need an example.

    First the person faces you, then if you don't have a pokemon, they just say, get lost kid. then once you have a pokemon he says, what's your problem. want to battle? then you start a battle.
    just put 0x0 for the battle, i'll choose who i want.
    after the battle, an exclamation mark goes above his head,
    then he says: I need to get out of here!
    and then he turns right, and then runs down 8 steps and dissapears.

    thats the script i need.
    thanx in advanced.

    X-aveon.

    EDIT:
    Here is a script i made. I need it fixed. whenever i play it on the game, it shows the script before it.

    #dynamic 0x1C5A03

    #org @start
    lock
    faceplayer
    checkflag 0x828
    if B_true goto @done
    msgbox @no time
    boxset 0x6
    release
    end

    #org @done
    msgbox @battle
    trainerbattle 0x0 0x15f 0x0 0x0 0x0
    if B_true goto @finished
    msgbox @haha
    boxset 0x6
    release
    end

    #org @finished
    msgbox @won
    boxset 0x6
    release end.

    #org @no time
    = I don't have\ntime for you.

    #org @battle
    = Do you have a\nproblem?\pLets fight!

    #org @haha
    = Weakling.

    #org @won
    = Dang, your strong!
    I can't help you with the script, but I will fix this: release end.(in bold on the quote) should be:
    release
    end
     

    X-aveon

    IS BACK!!!!!!!!!!!!!!!!!!!
    233
    Posts
    16
    Years
    • Seen Jun 25, 2012
    I can't help you with the script, but I will fix this: release end.(in bold on the quote) should be:
    release
    end

    This is what it looks like compiled. Can anyone help me?

    '-----------------------
    #org 0x1C5AAA
    lock
    faceplayer
    checkflag 0x828
    if 0x1 goto 0x81C5AC0
    msgbox 0x81C5AF0 '"I don't have\ntime for you."
    callstd 0x6
    release
    end
    '-----------------------
    #org 0x1C5AC0
    msgbox 0x81C5B0D '"Do you have a\nproblem?\pLets fight..."
    trainerbattle 0x0 0x15F 0x0 0x0 0x0
    if 0x1 goto 0x81C5AE5
    msgbox 0x81C5B33 '"Weakling."
    callstd 0x6
    release
    end
    '-----------------------
    #org 0x1C5AE5
    msgbox 0x81C5B3E '"Dang, your strong!"
    callstd 0x6
    release
    end

    '---------
    ' Strings
    '---------
    #org 0x1C5AF0
    = I don't have\ntime for you.
    #org 0x1C5B0D
    = Do you have a\nproblem?\pLets fight!
    #org 0x1C5B33
    = Weakling.
    #org 0x1C5B3E
    = Dang, your strong!

    i need it to actually do the script.
    plz help me.
     
    Last edited:

    ckk

    23
    Posts
    15
    Years
    • Seen Aug 28, 2009
    #dynamic 0x800000

    #org @start
    checkflag 0x82F
    if 0x1 goto @done
    applymovement 0x1 @move1
    waitmovement 0
    message @text
    boxset 0x6
    special 0x171
    applymovement 0x1 @move2
    waitmovement 0
    setflag 0x82F
    release
    end

    #org @done
    release
    end

    #org @move1
    #raw 0x62 0x20 0x20 0x1E

    #org @move2
    #raw 0x0C 0x0E 0x0E

    #org @text
    = Blah

    When i compile it and when i walk on the block the game freezes. Im using XSE
     

    Master_Track

    ROM Reaverz Scripter
    916
    Posts
    16
    Years
  • hey ckk, you forgot the 0xFE after each movements. They don'T work without it.
    Code:
    #dynamic 0x800000
    
    #org @start
    checkflag 0x82F
    if 0x1 goto @done
    applymovement 0x1 @move1
    waitmovement 0
    message @text
    boxset 0x6
    special 0x171
    applymovement 0x1 @move2
    waitmovement 0
    setflag 0x82F
    release
    end
    
    #org @done
    release
    end
    
    #org @move1
    #raw 0x62 0x20 0x20 0x1E 0xFE
    
    #org @move2
    #raw 0x0C 0x0E 0x0E 0xFE
    
    #org @text
    = Blah
    that should work.

    and @X-Aveon:
    #dynamic 0x1C5A03

    #org @start
    lock
    faceplayer
    checkflag 0x828
    if B_true goto @done
    msgbox @notime
    boxset 0x6
    release
    end

    #org @done
    msgbox @battle
    callstd 0x6
    trainerbattle 0x0 0xF0 0x15 @before @after
    msgbox @beaten
    boxset 0x6
    end

    #org @before
    = Do you have a\nproblem?\pLets fight!

    #org @after
    = Weakling.


    #org @notime
    = I don't have\ntime for you.


    #org @after
    = Weakling.

    #org @beaten
    = Dang, your strong!

    Try it like this, and look at the bold part.
     
    Last edited:

    X-aveon

    IS BACK!!!!!!!!!!!!!!!!!!!
    233
    Posts
    16
    Years
    • Seen Jun 25, 2012
    hey ckk, you forgot the 0xFE after each movements. They don'T work without it.
    Code:
    #dynamic 0x800000
     
    #org @start
    checkflag 0x82F
    if 0x1 goto @done
    applymovement 0x1 @move1
    waitmovement 0
    message @text
    boxset 0x6
    special 0x171
    applymovement 0x1 @move2
    waitmovement 0
    setflag 0x82F
    release
    end
     
    #org @done
    release
    end
     
    #org @move1
    #raw 0x62 0x20 0x20 0x1E 0xFE
     
    #org @move2
    #raw 0x0C 0x0E 0x0E 0xFE
     
    #org @text
    = Blah
    that should work.

    and @X-Aveon:


    Try it like this, and look at the bold part.

    thanx i'll try it like that...................................................................
    there's a few problems. right before the battle,

    he says weakling.

    this is my new script now:
    #dynamic 0x1C5A03
    #org @start
    lock
    faceplayer
    checkflag 0x828
    if B_true goto @done
    msgbox @notime
    boxset 0x6
    release
    end
    #org @done
    msgbox @battle
    callstd 0x6
    trainerbattle 0x0 0x15f 0x15 @before @after
    msgbox @beaten
    boxset 0x6
    applymovement 0x1 @move
    hidesprite 0x1
    release
    end
    #ORG @move
    #raw 0x62 0x30 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0xFE
    #org @before
    = Do you have a\nproblem?\pLets fight!
    #org @after
    = Weakling.
    #org @notime
    = I don't have\ntime for you.

    #org @battle
    = Weakling.
    #org @beaten
    = Dang, your strong!
     

    Trodx

    That Guy Behind You
    26
    Posts
    16
    Years
    • Seen May 13, 2012
    #dynamic 0x165A6B
    #org 0x165A6B
    lock
    faceplayer
    msgbox @statement
    boxset 0x6
    checkflag 0x827
    if b_true goto @pass
    if b_false goto @sry
    release
    end

    #org @pass
    msgbox @1
    boxset 0x6
    applymovement 0x02 @dude
    pause 0x0
    release
    end

    #org @sry
    msgbox @2
    boxset 0x6
    release
    end

    '---------
    ' Strings
    '---------
    #org @statement
    = The path ahead is very dangerous.

    #org @pass
    = Is that the symbol of Lance\n the dragon master?\lIf you have earned his respect,\lyou are certainly strong enough\l to pass.

    #org @sry
    = I can see it in your eyes.\nYou wouldn't last a few minutes\l out there. I can't let you pass.

    #org @dude
    #raw 0x11 0x12 0xFE

    I keep getting a repeated line error but that shouldn't happen in this script. Any ideas?
     

    WindBlows

    It's been a long time!
    749
    Posts
    17
    Years
    • Seen Aug 5, 2023
    New Script said:
    #dynamic 0x800000

    #org @start
    checkflag 0x82F
    if 0x1 goto @done
    applymovement 0x1 @move1
    waitmovement 0
    message @text
    boxset 0x6
    special 0x171
    applymovement 0x1 @move2
    waitmovement 0
    setflag 0x82F
    release
    end

    #org @done
    release
    end

    #org @move1
    #raw 0x62 0x20 0x20 0x1E 0xFE

    #org @move2
    #raw 0x0C 0x0E 0x0E 0xFE

    #org @text
    = Blah!

    Try that and by the way, why did you use special 0x171?
    Hope it works.
     

    ckk

    23
    Posts
    15
    Years
    • Seen Aug 28, 2009
    Ok now i got

    #dynamic 0x800000

    #org @start
    checkflag 0x82F
    if 0x1 goto @done
    applymovement 0x1 @move1
    waitmovement 0
    message @text
    boxset 0x6
    special 0x171
    applymovement 0x1 @move2
    waitmovement 0
    setflag 0x82F
    release
    end

    #org @done
    release
    end

    #org @move1
    #raw 0x62 0x20 0x20 0x1E 0xFE

    #org @move2
    #raw 0x0C 0x0E 0x0E 0XFE

    #org @text
    = Blah!

    But when i go on it it still freezes
    And i used special 0x171 for the running shoes
     
    Status
    Not open for further replies.
    Back
    Top