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

Jirachi_961

Owner of: Pokemon Reanimation
  • 42
    Posts
    16
    Years
    Is Fire Red supposed to be able to work with scriptED? When i compile script into it, i get a "Run time error "53" File not found"

    So do i have to use ruby if i want to use scriptED?
     

    whitecoma42

    Hectic Kid ;)
  • 2
    Posts
    16
    Years
    hi i was wondering what program i need to view existing pokemon scripts taht are already in the game??

    is it even possible?

    any help will be greatly appreciated ;)
     

    /Circa

    a face in the clouds.
  • 881
    Posts
    16
    Years
    hi i was wondering what program i need to view existing pokemon scripts taht are already in the game??

    is it even possible?

    any help will be greatly appreciated ;)

    If you have XSE, you can open it in AM 1.9, just click on the script and click Open Script.
    Of course, you need XSE and you need it as a scripting program in AM.
     

    Megiddo-san

    Barium - Summer '12 Return?
  • 1,308
    Posts
    16
    Years
    I'm having a couple problems with this script.

    #ORG $begin
    playsound 0x11D
    nop
    trainerbattle 0 0x068 $before $after
    fadesound 0x124
    nop
    message $further
    boxset 6
    release
    end

    #ORG $before
    $before 1 = Hey! I was getting bored\nlooking for Bugs, but now\pI have a trainer to beat!

    #ORG $after
    $after 1 = Nooo! How could I lose?

    #ORG $further
    $further 1 = If I ever see anybody\nthat I think I can take\pon again, I will not\nunderestimate them.

    1. If the trainer sees you it freezes with weird symbols 2. If you talk to the trainer it works, but if you talk to them after the battle it freezes.
     

    Elite 4 Sam

    Steel Type User
  • 115
    Posts
    17
    Years
    In lots of tutorials, it says i need PKMN Advance, because i cant compile my scripts'. Where do i download it?

    P.S. I tried Irish Witches site, but it seems to have been deleted.
     

    Blitzballer

    Sarcasm: now GMO-free.
  • 215
    Posts
    17
    Years
    Can anyone tell me if this script will work correctly?:

    Code:
    #org $start
    checkflag 0x828
    if b_true goto $trainer
    lock
    faceplayer
    message $nopass
    boxset 6
    release
    end
    
    #org $trainer
    lock
    faceplayer
    message $pass
    boxset 6
    release
    applymovement 0x02 $move1
    applymovement 0x03 $move2
    pausemove 0
    release
    end
    
    #org $move1
    #raw 0x12 0x11 0x12 0x12 0x12 0x12 
    0x11 0x11 0x11 0x12 0x12 0x12 0x12 
    0x11 0x11 0x11 0x11 0x11 0x11 0x11 
    0xFE
    
    #org $move2
    #raw 0x12 0x11 0x11 0x12 0x12 0x12 
    0x12 0x11 0x11 0x11 0x12 0x12 0x12 
    0x12 0x11 0x11 0x11 0x11 0x11 0x11 
    0x11 0xFE
    
    #org $nopass
    $nopass 1 = I'm sorry, unless you're 
    a\ntrainer, I'm not allowed to\llet 
    anyone pass.
    
    #org $trainer
    $trainer 1 = Oh! You're a 
    trainer.\pProf. Basil, needs your
    help.\nHe says it's important.

    I think it might work but it still looks a little choppy.
     

    Blitzballer

    Sarcasm: now GMO-free.
  • 215
    Posts
    17
    Years
    Ok, well I've changed up the script. And now it still doesn't want to work for me. When I try to compile it, it goes through the log thing and then the entire log goes blank and nothing happens. Does anyone know why Pokescript is doing that or if my script is messed up?

    Code:
    #org $start
    checkflag 0x828
    if b_false goto $noenter
    message $pass
    boxset 6
    setflag 0x200
    applymovement 0x02 $move1
    applymovement 0x03 $move2
    pausemove 0x0
    release
    end
    
    #org $noenter
    message $nopass
    boxset 6
    release
    end
    
    #org $move1
    #raw 0x12 0x11 0x12 0x12 0x12 0x12 0x11 0x11 0x11 0x12 0x12 0x12 0x12 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0xFE
    
    #org $move2
    #raw 0x12 0x11 0x11 0x12 0x12 0x12 0x12 0x11 0x11 0x11 0x12 0x12 0x12 0x12 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0xFE
    
    #org $pass
    $pass 1 = \c\h01\h02Oh! You're a trainer.\p\c\h01\h05Prof. Basil\c\h01\h02, needs your help.\nHe says it's important.
    
    #org $nopass
    $nopass 1 = \c\h01\h02I'm sorry, unless you're a\ntrainer, I'm not allowed to\llet anyone pass.
     

    Night_Blue

    STFU
  • 130
    Posts
    16
    Years
    • Seen Dec 6, 2011
    Code:
    #org $start
    checkflag 0x828
    if b_false goto $noenter
    message $pass
    boxset 6
    setflag 0x200
    applymovement 0x02 $move1
    applymovement 0x03 $move2
    pausemove 0x0
    release
    end
    
    #org $noenter
    message $nopass
    boxset 6
    release
    end
    
    #org $move1
    #raw 0x12 0x11 0x12 0x12 0x12 0x12 0x11 0x11 0x11 0x12 0x12 0x12 0x12 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0xFE
    
    #org $move2
    #raw 0x12 0x11 0x11 0x12 0x12 0x12 0x12 0x11 0x11 0x11 0x12 0x12 0x12 0x12 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0xFE
    
    #org $pass
    $pass 1 = \c\h01\h02Oh! You're a trainer.\p\c\h01\h05Prof. Basil\c\h01\h02, needs your help.\nHe says it's important.
    
    #org $nopass
    $nopass 1 = \c\h01\h02I'm sorry, unless you're a\ntrainer, I'm not allowed to\llet anyone pass.

    Code:
    #org $start
    checkflag 0x828
    if b_false goto $noenter
    message $pass
    boxset 6
    setflag 0x200
    applymovement 0x02 $move1
    applymovement 0x03 $move2
    pausemove 0x0
    release
    end
    
    #org $noenter
    message $nopass
    boxset 6
    release
    end
    
    #org $move1
    $move1 ; #binary 0x12 0x11 0x12 0x12 0x12 0x12 0x11 0x11 0x11 0x12 0x12 0x12 0x12 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0xFE
    
    #org $move2
    $move2 ; #binary 0x12 0x11 0x11 0x12 0x12 0x12 0x12 0x11 0x11 0x11 0x12 0x12 0x12 0x12 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0xFE
    
    #org $pass
    $pass 1 = \c\h01\h02Oh! You're a trainer.\p\c\h01\h05Prof. Basil\c\h01\h02, needs your help.\nHe says it's important.
    
    #org $nopass
    $nopass 1 = \c\h01\h02I'm sorry, unless you're a\ntrainer, I'm not allowed to\llet anyone pass.
    #org $pass
    $pass 1 = \c\h01\h02Oh! You're a trainer.\p\c\h01\h05Prof. Basil\c\h01\h02, needs your help.\nHe says it's important.

    My scripts didn't work the way you wrote it.
    #raw doesn't work when I use it as movements
    If it says ''Run Time Error'',make the movments shorter,that happens when I have to much movements.
     

    Blitzballer

    Sarcasm: now GMO-free.
  • 215
    Posts
    17
    Years
    I just used simple scripter and it did the same thing. It's happened to me before with one of my scripts and I never got it to work but the rest of my scripts have been fine.
     

    Binary

    え?
  • 3,977
    Posts
    16
    Years
    • Seen Apr 7, 2014
    maybe this will work-
    Code:
    #org $start
    checkflag 0x828
    if b_false goto $noenter
    message $pass
    boxset 6
    applymovement 0x02 $move1
    pausemove 0
    applymovement 0x03 $move2
    pausemove 0
    setflag 0x828
    release
    end
    
    #org $noenter
    message $nopass
    boxset 6
    release
    end
    
    #org $move1
    #raw 0x12 0x11 0x12 0x12 0x12 0x12 0x11 0x11 0x11 0x12 0x12 0x12 0x12 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0xFE
    
    #org $move2
    #raw 0x12 0x11 0x11 0x12 0x12 0x12 0x12 0x11 0x11 0x11 0x12 0x12 0x12 0x12 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0xFE
    
    #org $pass
    $pass 1 = \c\h01\h02Oh! You're a trainer.\p\c\h01\h05Prof. Basil\c\h01\h02, needs your help.\nHe says it's important.
    
    #org $nopass
    $nopass 1 = \c\h01\h02I'm sorry, unless you're a\ntrainer, I'm not allowed to\llet anyone pass.

    I'm not sure
    If not I don't know the problem.
     

    Blitzballer

    Sarcasm: now GMO-free.
  • 215
    Posts
    17
    Years
    Nope, its still not working. I think I'll just wait for XSE to come out and then script it that way.

    edit: Ok, I did away with that last script and tried something a little different. This time it actually compiled! (yayy!) The problem is when I step on the tile with the script, the screen freezes. I'm using fire red and I've looked and looked at my script and can't figure out what's wrong with it. Any help is appreciated!

    Code:
    #org $start
    checkflag 0x200
    if b_true goto $done
    applymovement 0x10 $move
    pausemove 0
    message $wait
    boxset 6
    checkflag 0x828
    if b_true goto $allow
    applymovement 0x10 $moveaide
    applymovement 0xff $movehero
    message $nopass
    boxset 6
    release
    end
    
    #org $allow
    setflag 0x200
    applymovement 0x10 $surprised
    pausemove 0
    message $pass
    boxset 6
    release
    end
    
    #org $done
    release
    end
    
    #org $move
    $move 1 ; #binary 0x04 0xFE
    
    #org $moveaide
    $moveaide 1 ; #binary 0x03 0xFE
    
    #org $movehero
    $movehero 1 ; #binary 0x13 0x11 0x02 0xFE
    
    #org $surprised
    $surprised 1 ; #binary 0x62 0xFE
    
    #org $wait
    $wait 1 = Wait!
    
    #org $nopass
    $nopass 1 = I'm sorry.\nUnless you're a trainer, I can't\llet you pass.
    
    #org $pass
    $pass 1 = Oh! You're a trainer.\p\c\h01\h05Prof. Basil\c\h01\08 needs your help.  You\ncan go ahead.
     
    Last edited:

    Piplup-Trainer

    This is my custom user title.
  • 228
    Posts
    16
    Years
    Hello!
    I need a Script which do the following :
    After you took a rest in your bed, a message appears.
    If you speak now to a man then he will go one step up and face you.

    That script should do the same thing like the script in Pokemon Gold (you know --> when you surf from Olivine City to Kanto).
     

    Night_Blue

    STFU
  • 130
    Posts
    16
    Years
    • Seen Dec 6, 2011
    KAWAII'SwhatWEaim4 : Did you put the var numbers like this
    Code:
    _______________
    Unknown    l  0300
    Varnumber l  5040

    Piplup-Trainer :
    Code:
    #org $start
    message $1
    $1 1 = Do you want to heal your pokemon?
    boxset 5
    compare LASTRESULT 1
    if B_true goto $yes
    release
    end
    
    #org $yes
    fadescreen 0x1
    #raw 0x00
    special 0x0
    fadescreen 0x0
    setflag 0x200
    release
    end
    The trainer
    Code:
    #org $lalala
    checkflag 0x200
    if B_true goto $done
    message $2
    $2 1 = Hello!
    boxset 6
    release
    end
    
    #org $done
    trainerbattle 1 0x001 $6 $7 $8
    message $la
    $la 1 = You beat me!!
    boxset  6
    release
    end
    
    #org $6
    $6 1 = Your back huh.
    
    #org $7
    $7 1 = I need a rest....
    
    #org $8
    message $9
    $9 1 = Seriously,I need a break!!
    boxset 6
    release
    end

    I didn't do it exactly like Gold,you add the extra stuff if you want it to happen like you said.
     

    Piplup-Trainer

    This is my custom user title.
  • 228
    Posts
    16
    Years
    Okay...but i didn't mean a trainer.

    Look, in Pokemon Gold there is a sailor which stands in front of the stairs (in the boat S.S. Aqua).
    After you take a rest in your bed, the sailors says : We land in Vermilion City!
    If you go to him and speak with him, he says the same message again and he goes one step left.
    So you can get outside to Vermilion City.

    I uploaded an image --> open it, (enlarge it) and continue reading what I'm typing.

    Okay, see the maps 25.42 and 25.43 (look at Pokemon Ruby - Maps found in Advance Map)?
    Now, I want you to make a script, which checks the following : Have you beaten all the trainers on map 25.42 and 25.43?
    --> IF YES : The sailor on the left bottom corner (at the map 25.41) should print a message ("We land on Vermilion City!"). Then he should go up (one step) and faces you.
    --> IF NO : He should print a message ("The ship will take some time to land on Vermilion City. \p Ask my brother. Maybe he can give you some work...").


    Thats all! Thanks in advance! ;)

    EDIT : I'm using a RUBY ROM!
     
    Last edited:

    [enter name here]

    spalsh,my one weakness
  • 9
    Posts
    16
    Years
    1.when i try to open pokescript it just says "run-time error 429"
    2.when i use pet all the offsets start with "H" and they have 7 digits,and if i change a trainer
    the rom i used is destroyed
    3.does script-ed work with firered and if it does can someone tell how to get the "compile script" option in script-ed
    4.does script-ed use the same coding style(example.#ORG$begin etc.)

    thank you in advance
     
    Last edited:
    Status
    Not open for further replies.
    Back
    Top