• 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 Requests/Sharing/Discussion

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
    Hello.., could someone give me the item numbers of the POKEDEX in Ruby so I could make a script from it...
     
    1,104
    Posts
    16
    Years
  • Hello.., could someone give me the item numbers of the POKEDEX in Ruby so I could make a script from it...

    Edit: I forgot something

    I don't understand what you want but the flag to activate the pokedex in ruby is 0x801
    So if you insert checkflag 0x801 in a script you'll recieve a hoenn pokedex.

    Maybe someone might be able to help me with my problem. I can't seem to make any of my OW's disappear. These don't disapear until I leave the room and walk back. I don't know if it has anything to do with it but I'm using Fire red.
    the pokeball has a people id of 0200
    the pokedex has a people id of 0203
    Maybe I typed my script wrong. I'll post it here.
    Code:
    #org $poke
    lock
    faceplayer
    message $take
    boxset 6
    givepokemon 25 3 0
    setflag 0x828
    setflag 0x829
    special 0x16F
    setflag 0x200
    applymovement 0xFF $move
    pause 0x60
    message $dex
    boxset 6
    applymovement 0x05 $move3
    pause 0x70
    setflag 0x203
    message $gary
    boxset 6
    release
    end
    
    #org $done
    lock
    faceplayer
    message $empty
    boxset 6
    release
    end
    
    #org $move3
    $move3 1 ; #binary 0x0E 0x0D 0x04 0x0C 0x0F 0x04 0xFE
    
    #org $dex
    $dex 1 =Oh.\nI almost forgot.
    
    #org $take
    $take 1 =You recieved a PIKACHU!
    
    #org $empty
    $empty 1 =Its an empty pokeball.
    
    #org $move
    $move 1 ; #binary 0x12 0x12 0x12 0x11 0xFE
    
    #org $gary
    $gary 1 =Here is a pokedex.\nThis can give you information\pon pokemon you have\nseen or caught.\p\v\h06 came by earlier\nthis morning and\precieved his first\npokemon.\pHe couldn't be too\nfar ahead of you.\pGood Luck on your journey.
     
    Last edited:

    destinedjagold

    You can contact me in PC's discord server...
    8,593
    Posts
    16
    Years
    • Seen Dec 23, 2023
    Edit: I forgot something

    I don't understand what you want but the flag to activate the pokedex in ruby is 0x801
    So if you insert checkflag 0x801 in a script you'll recieve a hoenn pokedex.

    Maybe someone might be able to help me with my problem. I can't seem to make any of my OW's disappear. These don't disapear until I leave the room and walk back. I don't know if it has anything to do with it but I'm using Fire red.
    the pokeball has a people id of 0200
    the pokedex has a people id of 0203
    Maybe I typed my script wrong. I'll post it here.
    Code:
    #org $poke
    lock
    faceplayer
    message $take
    boxset 6
    givepokemon 25 3 0
    setflag 0x828
    setflag 0x829
    special 0x16F
    setflag 0x200
    applymovement 0xFF $move
    pause 0x60
    message $dex
    boxset 6
    applymovement 0x05 $move3
    pause 0x70
    setflag 0x203
    message $gary
    boxset 6
    release
    end
    
    #org $done
    lock
    faceplayer
    message $empty
    boxset 6
    release
    end
    
    #org $move3
    $move3 1 ; #binary 0x0E 0x0D 0x04 0x0C 0x0F 0x04 0xFE
    
    #org $dex
    $dex 1 =Oh.\nI almost forgot.
    
    #org $take
    $take 1 =You recieved a PIKACHU!
    
    #org $empty
    $empty 1 =Its an empty pokeball.
    
    #org $move
    $move 1 ; #binary 0x12 0x12 0x12 0x11 0xFE
    
    #org $gary
    $gary 1 =Here is a pokedex.\nThis can give you information\pon pokemon you have\nseen or caught.\p\v\h06 came by earlier\nthis morning and\precieved his first\npokemon.\pHe couldn't be too\nfar ahead of you.\pGood Luck on your journey.

    Thanks for this... Eheheh... What I meant was I need to know it for my hack, so when the player was given the pokedex, a person will approach the player when he/she already has the pokedex. Now, I need loads of help for my next hack project. But, eheheh.., I kinda misplaced the papers where I wrote the plot for my hack. Eheheh... TOINKS.

    Anyways, about your problem.., do you mean that you added a Pokeball in a room and when you try to get it, you receive what's inside, but it still remains in the map and still you can get what's inside.., but it'll vanish once you exit and go back..?

    If that's it.., then we have the same problem with my wild legendary battle script. Eheheh... Anyways, thanks for helping me.
     
    1,104
    Posts
    16
    Years
  • Yeh, my script works fine, I recieve everything, the only problem is that the sprites don't disappear until I leave the map. They remain on the map until I leave the building and go back.
     

    destinedjagold

    You can contact me in PC's discord server...
    8,593
    Posts
    16
    Years
    • Seen Dec 23, 2023
    Yeh, my script works fine, I recieve everything, the only problem is that the sprites don't disappear until I leave the map. They remain on the map until I leave the building and go back.

    YUP! We sure have the same problem. Eheheh... I have the same problem with my Wild Legendary POKEMONs in my hack. Currently, I'm trying to figure out why won't the sprites disappear when we already "talked" to them.

    Could anyone help us out.....?

    Oh and, uh... In Ruby, when you receive the Pokedex, your rival gives you five Pokeballs... Now I ask, what command in scripting should I use when the player goes out from the lab, a person approaches and asks to take all of 'em...

    I kinda forgot.

    Thanks in advance.
     
    Last edited:

    Gold Tom

    Krazier Than You
    438
    Posts
    19
    Years
  • Yo! That last script was perfect. Can someone make me a script where it says.

    "SQUIRTLE gives you a longing look." And then you recieve a Squirtle if your party isn't full.


    Gold Tom

    Well, the reason I need these simple scripts is because after people make the first few for me I can easily adjust them to my own.
     
    Last edited by a moderator:

    destinedjagold

    You can contact me in PC's discord server...
    8,593
    Posts
    16
    Years
    • Seen Dec 23, 2023
    Okay.., I think the script goes like this. But I'm an amateur scripter, so don't expect too much from me, okay...

    #org $CuteSquirtle
    lock
    faceplayer
    message $Squirtle
    $Squirtle 1 = SQUIRTLE gives you a longing look...
    checkflag 0x800
    if B_TRUE goto $Join
    release
    end

    #org $Join
    message $wish
    $wish 1 = SQUIRTLE wishes to join you...
    boxset 5
    if B_TRUE goto $yey
    if B_FALSE goto $Join
    release
    end

    #org $yey
    boxset 6
    givepokemon 7 5 0
    jingle
    message $yeah
    $yey 1 = SQUIRTLE joined your party!
    fadescreen 0
    release
    end



    If this doesn't work.., then that means I've got a lot to learn.

    Eheheh...
     

    Gold Tom

    Krazier Than You
    438
    Posts
    19
    Years
  • Yay!

    Thankyou!
    Do you mind if I use the script as a template for other such events?

    EDIT: It's not working, but thanks anyway.

    Can anyone else help me?
     
    Last edited:
    1,104
    Posts
    16
    Years
  • Yo! That last script was perfect. Can someone make me a script where it says.

    "SQUIRTLE gives you a longing look." And then you recieve a Squirtle if your party isn't full.


    Gold Tom

    Here is a script.
    Code:
    #org $start
    checkflag 0x201
    if B_true goto $done
    lock
    faceplayer
    message $squirt
    boxset 6
    countpokemon
    compare LASTRESULT 6
    if B_true goto $full
    givepokemon 7 5 0
    message $poke
    boxset 6
    setflag 0x201
    release
    end
    
    #org $full
    message $error
    boxset 6
    release
    end
    
    #org $done
    lock
    faceplayer
    message $poke3
    boxset 6
    release
    end
    
    #org $squirt
    $squirt 1 =SQUIRTLE gives you a longing\nlook
    
    #org $poke
    $poke 1 =You recieved a SQUIRTLE!
    
    #org $error
    $error 1 =Your party is full.
    
    #org $poke3
    $poke3 1 =How's my old SQUIRTLE.

    Okay.., I think the script goes like this. But I'm an amateur scripter, so don't expect too much from me, okay...

    #org $CuteSquirtle
    lock
    faceplayer
    message $Squirtle
    $Squirtle 1 = SQUIRTLE gives you a longing look...
    checkflag 0x800
    if B_TRUE goto $Join
    release
    end

    #org $Join
    message $wish
    $wish 1 = SQUIRTLE wishes to join you...
    boxset 5
    if B_TRUE goto $yey
    if B_FALSE goto $Join
    release
    end

    #org $yey
    boxset 6
    givepokemon 7 5 0
    jingle
    message $yeah
    $yey 1 = SQUIRTLE joined your party!
    fadescreen 0
    release
    end



    If this doesn't work.., then that means I've got a lot to learn.

    I'm a bit sorry I took so long to post my script for but I was testing to see if mine worked. Onto yours, I'd say that you've got a lot to learn. Well I'll put your errors in a spoiler so you can look at them. ps. you might not want to look there are quite a few.
    Spoiler:
     
    Last edited:

    destinedjagold

    You can contact me in PC's discord server...
    8,593
    Posts
    16
    Years
    • Seen Dec 23, 2023
    Elow! It's me again. I'm already making a plot for my next hack project. I need a script that...

    1. After the player receives the Pokedex from Prof. Birch, when he arrives here...

    elow-1.png

    a trainer will approach the player from the front and says something.

    2. Then, after their little chat, the trainer asks for a battle.

    3a. (If possible), when the player looses, he won't be teleported to the Pokemon Center, instead, they will continue to talk, then teleports him to another map.

    3b. (if 3a is not possible), after the player defeats that trainer, they will continue to talk and then the player will be warped to a certain map location.

    That's all i need to know for now...


    THANKS IN ADVANCE!!!
     
    Last edited:
    1,104
    Posts
    16
    Years
  • Elow! It's me again. I'm already making a plot for my next hack project. I need a script that...

    1. After the player receives the Pokedex from Prof. Birch, when he arrives here...

    elow-1.png

    a trainer will approach the player from the front and says something.

    2. Then, after their little chat, the trainer asks for a battle.

    3a. (If possible), when the player looses, he won't be teleported to the Pokemon Center, instead, they will continue to talk, then teleports him to another map.

    3b. (if 3a is not possible), after the player defeats that trainer, they will continue to talk and then the player will be warped to a certain map location.

    That's all i need to know for now...


    THANKS IN ADVANCE!!!

    I'll try and write this. Don't know how to do 3a but I'll try 3b
    Code:
    #org $start
    chackflag 0x202
    if b_true goto $done
    applymovement 0x(People number) $move
    pausemove 0
    message $talk
    boxset 6
    trainerbattle 1 0x001 $before $after $further
    release
    end
    
    #org $done
    release
    end
    
    #org $further
    message $banter
    boxset 6
    setflag 0x202
    warp (map bank) (map) (event number) 
    release
    end
    
    #org $move
    $move 1 ; #bianry 0x?? 0x?? 0x?? 0x?? 0xFE
    
    #org $before
    $before 1 = blablablabla
    
    #org $after
    $after 1 = blablablabla
    
    #org $talk
    $talk 1 = blablablabla

    and I'm not 100% sure about the warp command
     
    Last edited:
    1,104
    Posts
    16
    Years
  • Thanks thethethethe. It's fantastic but how do I make the sprite disappear after the script is finished?

    I f you look at my above posts, you'll see that dentinedjagold and I are both having the same problem. If you put the number used with the setflag into the people id of the sprite it is supposed to disappear.
     

    destinedjagold

    You can contact me in PC's discord server...
    8,593
    Posts
    16
    Years
    • Seen Dec 23, 2023
    =)

    VERY WONDERFUL! THANK YOU....., but I got few problems...

    1. Eheh... Sadly, i don't know how to apply movement scripts.

    2. In the script you made, those the 0x202 checks for the Pokeballs from Prof. Birch's lab?

    3. I'm currently hacking Ruby Version... So the main villains are Team Magma. Can I use the Team Aqua's trainer numbers for the trainer that will approach the player..?

    4. In the script you gave...
    #org $start
    chackflag 0x202
    if b_true goto $done
    applymovement 0x(People number) $move
    pausemove 0
    message $talk
    boxset 6
    trainerbattle 1 0x001 $before $after $further
    release
    end

    #org $done
    release
    end

    #org $further
    message $banter
    boxset 6
    setflag 0x202
    warp (map bank) (map) (event number)
    release
    end

    #org $move
    $move 1 ; #bianry 0x?? 0x?? 0x?? 0x?? 0xFE

    #org $before
    $before 1 = blablablabla

    #org $after
    $after 1 = blablablabla

    #org $talk
    $talk 1 = blablablabla

    where are they connected..? the $banter and the $talk..?

    Eheheh... Sorry if I have a lot of questions...
     
    Last edited:
    1,104
    Posts
    16
    Years
  • =)

    VERY WONDERFUL! THANK YOU....., but I got few problems...

    1. Eheh... Sadly, i don't know how to apply movement scripts.

    2. In the script you made, those the 0x202 checks for the Pokeballs from Prof. Birch's lab?

    3. I'm currently hacking Ruby Version... So the main villains are Team Magma. Can I use the Team Aqua's trainer numbers for the trainer that will approach the player..?

    Eheheh... Sorry if I have a lot of questions...

    1. if you post the movements that you want (eg. left left left up up) I'll post what to put with the applymovement command.

    2. I'm not 100% sure about this but I think flags between 200-299and 500-599 are empty. Meaning that the rest of the flags are used during the game, so if use them it may muck something up later in the game. If you have already used 0x202, you can change that to 0x203, 0x204, 0x205 etc.

    3. You may need to edit trainers. the 001 I use is trainer 1. I suggest that you take a look at the trainer editing tutorial in the documents and tutorials section. This may help answer your question. Below is how to get to the tutorial.

    The PokéCommunity Forums > Creative Discussion > Emulation > ROM hacking > Documents and Tutorials > Hack Tutorials: Trainer Editing

    4. I forgot to put in banter. talk is in the first part of the script.
    I hope that that helps.
     

    destinedjagold

    You can contact me in PC's discord server...
    8,593
    Posts
    16
    Years
    • Seen Dec 23, 2023
    =)

    Thanks! I'll ask MORE and MORE QUESTIONS when I have questions.

    Thanks again. Heheh...
     
    Status
    Not open for further replies.
    Back
    Top