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

Piplup-Trainer

This is my custom user title.
  • 228
    Posts
    16
    Years
    I don't really understand the sense of your script, but if you want to make a sprite disappeare, you write #raw 0x53 0x00 0x00
    the bold numbers should be replaced with the reversed trainernumber, for example number 5:
    #raw 0x53 0x05 0x00.

    and in the next line:
    setflag (and a number, for example 0x200).


    in this case u have to give the sprite the Id 0200.
    in your case u may have to insert the lines after the applymovement.

    Code:
    #org $begin
    trainerbattle 1 0x00B $before $after $later
    end
    
    #org $before
    $before 1 = Who...\pWho are you?
    
    #org $after
    $after 1 = How did you do that?
    
    #org $later
    message $sayonara
    $sayonara 1 = Sayonara!
    boxset 6
    applymovement 0x07 $1
    pausemove 0
    #raw 0x53 0x07 0x00
    setflag 0x200
    release
    end
    
    #org $1
    $1 1 ; #binary 0x0E 0x80 0x80 0x80 0x80 0x80 0x80 0x80 0xFE
    changed it a bit, hope it's what u need.

    Yeah! Thank you ^^
    But there is STILL one problem left.

    There is no trainer encounter music (=that's the music when the trainer sees and challenge you).
     

    Master_Track

    ROM Reaverz Scripter
  • 916
    Posts
    16
    Years
    sry, dunno why there is no sound. With my scripts it was allright O.o
    theese are sounds u could add manually:
    Code:
    0x108 - Safari Zone
    0x112 - Team Rocket Celadon Hideout, Bruno
    0x113 - Elite 4
    0x117 - Cinnabar Island
    0x118 - Lavender Town
    0x11F - Viridian Forest, Diglett Cave, Seafoam Islands
    0x120 - Mt Moon, Victory Road, Rock Tunnel
    0x121 - Power Plant, Pokemon Mansion
    0x123 - Route Song 2
    0x124 - Route Song 1
    0x125 - Route Song 3
    0x126 - Route Song 4
    0x127 - Elite 4, Champion
    0x12C - Pallet Town
    0x12F - Pokemon Center, Mart
    0x130 - S.S. Anne
    0x132 - Pokemon Tower, Agatha
    0x133 - Team Rocket Silph Co.
    0x134 - Cerulean City, Fushia
    0x135 - Celadon
    0x139 - Vermillion
    0x13A - Viridian, Pewter, Saffron
    0x14B - Mt.Ember/Icefall Cave
    0x14D - Island Routes
    0x14E - Dotted Hole
    0x14F - Island 1-3
    0x150 - Island 4-5
    0x151 - Island 6-7
    0x158 - Trainer Tower


    just write playsound 0xNUMBER
    nop


    when u want the sound to activate and fadesound 0xNUMBER when it should stop.

    @ yunghove: sry I think I can't help u with that.
     

    Master_Track

    ROM Reaverz Scripter
  • 916
    Posts
    16
    Years
    well, I think I have a solution for your problem.
    go to the thread PET's revenge, you'll find a new version of PET there (it's great ^^).
    If you klick onto you trainers number u can choose the music.
     

    Magnemite

    I'm in the past.
  • 205
    Posts
    18
    Years
    • Seen Feb 23, 2016
    I've been wanting to add new Secret Bases to Ruby for a while, but I don't know how. I'm a total scripting noob, and I tried just copying the script from another Secret Base, but it never seems to work out.

    Anywho, can someone help me out and tell me how I can do this?


    I figured this out... XD I still need help with the second part though.

    And if possible, I'd like to add a script for a secret base item that can heal your pokemon.
     
    Last edited:

    Gold Tom

    Krazier Than You
  • 438
    Posts
    19
    Years
    Two quick questions. How do you make it show you a picture of the Pokemon - like the guy on the SS Anne who shows you snorlax? Also, how do you make Male/Female events?
     

    Master_Track

    ROM Reaverz Scripter
  • 916
    Posts
    16
    Years
    if you want to show a picture of a pokemon, u have to write it like this:
    #raw 0x75 0x00 0x00 0x00 0x00

    the first two bites after ox75 is the reversed pokemon number, in hex of course.
    the last to bytes are for the coordinates where the picture will be shown.
    there was an example by thethethethe, I'll search it.

    found!:
    #raw 0x75 0x93 0x00 0x0A 0x03
    0x93 0x00 is the reversed pokemon number of dratini in hex, if you write 0x0A 0x03 as coordinates the picture will be shown in the center of the screen ;)


    I'm not sure if I understood the male female thing, but I think u mean checkgender? (different events happen depending on the gender of the hero?):

    u write:

    checkgender
    compare lastresult 0x0
    if B_true goto $boy
    compare lastresult 0x1
    if B_true goto $girl



    0x0 for boy, 0x1 for girl ^^
    Just write it like above into a script.
     
  • 2
    Posts
    16
    Years
    • Seen Apr 14, 2009
    Okay, I don't know if this is really the right place to find this out, (Don't you love it when posts start like that?) but, I want to make a hack of Ruby where you can only play as the boy, so I want to be able to take out the option of being a boy or a girl.

    Now, I very much know that this could be an impossibility, but I'm asking anyways.
     
  • 480
    Posts
    16
    Years
    Hey, can anyone help with this script?
    It freezes in the beggining when i click on the person.
    Code:
    #org $begin
    lock
    faceplayer
    message $1
    boxset 6
    message $2
    boxset 6
    message $3
    boxset 6
    Message $4
    boxset 6
    applymovement 0xFF $question
    pausemove 0
    message $5
    boxset 6
    applymovement 0x04 $acesky
    pausemove 0
    applymovement 0x04 $acesky2
    pausemove 0
    setflag 0x200
    release
    end
    
    #org $1
    $1 1 = Stranger: Hello, nice to meet you. Who\nmight you be?
    
    #org $2
    $2 1 = v\h01: I'm \v\h01.
    
    #org $3
    $3 1 = Stranger: Ahh! Nice to meet you!\nI'm Ace Sky.
    
    #org $4
    $4 1 = Ace: So, would you like an autograph?
    
    #org $5
    $5 1 = Ace: Oh, you must not know who\nI am... Anyway, Ill see you in the\pfuture! Check out Professor Tann's Lab! Maybe\pyou'll face me someday!
    
    #org $acesky
    #raw 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0xFE
    
    #org $acesky2
    #raw 0x11 0x11 0x11 0x13 0x13 0x13 0x60 0xFE
    
    #org $question
    #raw 0x64 0xFE
     

    Binary

    え?
  • 3,977
    Posts
    16
    Years
    • Seen Apr 7, 2014
    Hey, can anyone help with this script?
    It freezes in the beggining when i click on the person.
    Code:
    #org $begin
    lock
    faceplayer
    message $1
    boxset 6
    message $2
    boxset 6
    message $3
    boxset 6
    Message $4
    boxset 6
    applymovement 0xFF $question
    pausemove 0
    message $5
    boxset 6
    applymovement 0x04 $acesky
    pausemove 0
    applymovement 0x04 $acesky2
    pausemove 0
    setflag 0x200
    release
    end
    
    #org $1
    $1 1 = Stranger: Hello, nice to meet you. Who\nmight you be?
    
    #org $2
    $2 1 = v\h01: I'm \v\h01.
    
    #org $3
    $3 1 = Stranger: Ahh! Nice to meet you!\nI'm Ace Sky.
    
    #org $4
    $4 1 = Ace: So, would you like an autograph?
    
    #org $5
    $5 1 = Ace: Oh, you must not know who\nI am... Anyway, Ill see you in the\pfuture! Check out Professor Tann's Lab! Maybe\pyou'll face me someday!
    
    #org $acesky
    #raw 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0xFE
    
    #org $acesky2
    #raw 0x11 0x11 0x11 0x13 0x13 0x13 0x60 0xFE
    
    #org $question
    #raw 0x64 0xFE
    You forgot checkflag in the beginning? Else, I don't know whats wrong.
     
  • 480
    Posts
    16
    Years
    Well, checkflag is going to be for the door. You cant enter unless you talk to somebody.
    The script freezes in the begging, but nvm. Its the Rom cuz i tried it on my Rom and it worked Perfectly.
    Thanks anyways.
     

    Dog11561

    People to see, things to do.
  • 115
    Posts
    16
    Years
    • Age 29
    • NY
    • Seen Jan 22, 2023
    Uh, I don't know ANYTHING ABOUT SCRIPTING!!! How do I do it, what do I type in, and anything else I would need to do. Can anyone tell me how to do it? (please PM me with the answers)
     

    Binary

    え?
  • 3,977
    Posts
    16
    Years
    • Seen Apr 7, 2014
    First, you're not supposed to ask those type of questions...
    Secondly, look in the tutorials section. You should find some good tutorials
     

    Gold Tom

    Krazier Than You
  • 438
    Posts
    19
    Years
    #org 0x800000
    Lock
    FacePlayer
    MsgBox This SQUIRTLE looks mistreated...
    BoxSet 0x6
    GivePokemon 0x7 0x1 0x0
    MsgBox You recieved SQUIRTLE!
    Release
    End

    That's my script, I need to make the Squirtle's overhead sprite disappear though. Also will the rest of the script work in PokeScript?

    GT
     

    Perfect_Palkia_10

    Ruler of Space
  • 28
    Posts
    16
    Years
    I know how to do movement scripts but can anyone help me with a script that makes you move, talk, then battle. Please know that if this is impossible or very advanced let me know for I need to learn the limits of scripting.
     

    Master_Track

    ROM Reaverz Scripter
  • 916
    Posts
    16
    Years
    for example:
    #org $begin
    checkflag 0x200
    if B_true goto $done
    applymovement 0xFF $1
    pausemove 0x0
    message $f
    $f 1 = This is a message after waslking.
    boxset 6
    trainerbattle 1 0x001 $before $after $further
    end

    $before
    $before 1 = I wanna battle

    $after
    $after 1 = I won/lost

    $further
    applymovement 0xFF $2
    pausemove 0x0
    setflag 0x200
    release
    end

    #org $1
    $1 1 ; #binary 0x11 0x11 0x11 0xFE

    #org $2
    $2 1 ; #binary 0x12 0x12 0x12 0x03 0xFE

    u could make it like this, but with variations, so..lpayer walks, trainer walks, trainer speaks, battle, message box, another movement etc..
     
    Status
    Not open for further replies.
    Back
    Top