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

destinedjagold

I do not exist.
  • 8,593
    Posts
    17
    Years
    • Seen May 26, 2024
    no, I haven't yet.
    I'm still finishing this looooong script where I should put on water.

    but I'll try your advice later. thankies~
     

    Luck

    ¯\_(ツ)_/¯
  • 6,779
    Posts
    16
    Years
    • Seen May 20, 2023
    Alright since i was told to put this question here, I will.
    Under normal(pokescript) circumstances, is it possible to make a script like when you use secret power to open a hole?
    and sorry if this sounds like a request but, if possible, can anyone show me how to make one?
     

    Veng3anc3

    Woah..
  • 179
    Posts
    17
    Years
    Yeah, you can.. but um, I'm not entirely sure how to make it do the whole "GO SLAKOTH!" *BOOM hole in wall* (I'm assuming your using ruby, right?)
    I'll edit this with the basic of the script, I'll tell you what to fill in.

    The script would go a little like this..:
    thethethe said:
    #org $start
    setmaptile 0xA 0xD 0x1 0x0
    special 0x8E
    release
    end
    Explanation..:
    Spoiler:

    Credit to thethethe.. I'm just lazy to explain it myself :D
    Also, if you would like me to right you a script that uh, well, basicly, if you want me to right you a script that will do exactly the same as the secret power. Just tell me.. I'll have a go for you.
     
    Last edited:

    PikachuEX

    A Rare Pikachu Lover
  • 86
    Posts
    16
    Years
    Here's the script:
    #org $begin
    lock
    faceplayer
    message $yoplayer
    $yoplayer 1 =Yo \v\h01! I hear\n PROF.ELM discovered\n some new POKéMON.
    boxset 6
    release
    end
    Since it's a normal message box, I don't see any problems.
     

    Darthatron

    巨大なトロール。
  • 1,152
    Posts
    18
    Years
    Here's the script:

    Since it's a normal message box, I don't see any problems.

    I don't use PokeScript, but in other scripting languages you need to use a different order... Try:
    Code:
    #org $begin
    lock
    faceplayer
    message $yoplayer
    boxset 6
    release
    end
    
    #org $yoplayer 1 =Yo \v\h01! I hear\n PROF.ELM discovered\n some new POKéMON.

    I think that will work. :P
     

    destinedjagold

    I do not exist.
  • 8,593
    Posts
    17
    Years
    • Seen May 26, 2024
    Here's the script:

    Since it's a normal message box, I don't see any problems.

    hm... I think the space between words and the equal sign is causing ya problems... :\

    why not try this one...
    Code:
    #org $begin
    lock
    faceplayer
    message $yo
    boxset 6
    release
    end
    
    #org $yo
    $yo 1 = Yo! \v\h01! I heard  PROF.ELM\n discovered some new POKéMON.
     

    linkandzelda

    Ex-rom hacker turned indie game developer
  • 777
    Posts
    17
    Years
    hi.
    i really need help with a script.
    in my script there is 17 parts that are different and each set the variable 0x4003 to 0x1 / 0x2 etc. the problem is that when i compare that variable to any of the set values it dosnt work.

    ie: if the variable 0x4003 = 0x5 then is this the right way to compare it?:

    compare 0x4003 0x5
    if 0x1 goto $option7

    if thats not right can sombody please help.

    thanks in advance
    link
     
    Last edited:

    Luck

    ¯\_(ツ)_/¯
  • 6,779
    Posts
    16
    Years
    • Seen May 20, 2023
    Yeah, you can.. but um, I'm not entirely sure how to make it do the whole "GO SLAKOTH!" *BOOM hole in wall* (I'm assuming your using ruby, right?)
    I'll edit this with the basic of the script, I'll tell you what to fill in.

    The script would go a little like this..:

    Explanation..:
    Spoiler:

    Credit to thethethe.. I'm just lazy to explain it myself :D
    Also, if you would like me to right you a script that uh, well, basicly, if you want me to right you a script that will do exactly the same as the secret power. Just tell me.. I'll have a go for you.

    Any help would be appreciated so it would be nice if you could try to make a script like that.
    anyways i have another question about a script.
    I know how to make a simple national dex script but can anyone tell me how to make it possible to insert the "you got a pokemon" music when your dex is updated and also to make the character who updates it "fly" away like your rival in lilycove city?
    Here is the script i have right now but i don't know where to add the other stuff like the music and movements.
    #org $start
    lock
    faceplayer
    message $dex
    boxset 6
    special 0x16F
    release
    end

    #org $dex
    $dex 1 =Elm: Proffesor Oak told me \nthat there are foreign wild\lpokemon ahead. So he has told me to\lupdate your pokedex.\p\v\h01 hands Elm the pokedex.\p......\lThere!\lYour pokedex is updated!\l Enjoy!
    Help would be greatly appreciated.
    Oh and i'm using a firered rom.
     

    loitraitim

    Hoài Niệm Dấu Yêu
  • 60
    Posts
    16
    Years
    I need the script of the oldman in CherryGrove City, he will lead us to visit houses and after that he gives us items Townmap! :D

    Who can help me :|
     

    linkandzelda

    Ex-rom hacker turned indie game developer
  • 777
    Posts
    17
    Years
    hi.
    i really need help with a script.
    in my script there is 17 parts that are different and each set the variable 0x4003 to 0x1 / 0x2 etc. the problem is that when i compare that variable to any of the set values it dosnt work.

    ie: if the variable 0x4003 = 0x5 then is this the right way to compare it?:

    compare 0x4003 0x5
    if 0x1 goto $option7

    if thats not right can sombody please help.

    thanks in advance
    link
     
  • 248
    Posts
    16
    Years
    • Seen Nov 22, 2014
    hi.
    i really need help with a script.
    in my script there is 17 parts that are different and each set the variable 0x4003 to 0x1 / 0x2 etc. the problem is that when i compare that variable to any of the set values it dosnt work.

    ie: if the variable 0x4003 = 0x5 then is this the right way to compare it?:

    compare 0x4003 0x5
    if 0x1 goto $option7

    if thats not right can sombody please help.

    thanks in advance
    link

    Yes. That's the right way to compare variables.
     
  • 31
    Posts
    16
    Years
    Script...help!

    I want to make a script when the player go out of town, a person stop the player.
    But each time I step on the script, it freeze. Can anyone help out? Am I suppose to put the outset on the person I want or the script?
     

    WindBlows

    It's been a long time!
  • 749
    Posts
    17
    Years
    • Seen Aug 5, 2023
    Uhm... Hi.
    I have a problem. How can I make an earthquake on FR with pokescript without using 'special 0x136'. That special doesn't work though.
    How can I do it?
    Thanks. See you!
     

    Master_Track

    ROM Reaverz Scripter
  • 916
    Posts
    16
    Years
    u need to use the special ^^''
    set it like this:
    #raw 0x2F 0x4B 0x01
    setvar 0x8004 0x0
    setvar 0x8005 0x3
    setvar 0x8006 0x9
    setvar 0x8007 0x2
    special 0x136
    pause 0x10


    i'm not sure what every setvar means, but as far as I know the 8006 sets the duration.
    u can change the pause, of course.
     

    Piplup-Trainer

    This is my custom user title.
  • 228
    Posts
    16
    Years
    Hi guys! I need a fast help!

    I made a script which schould do the following :

    1) A person says : "Hey, PLAYER! Are you..." --> It does.
    2) Give egg and print message "You recived egg!" --> It does.
    3) Person says : "Good luck for adventure!" --> It doesn't!!!
    4) Person goes away and sprite dissapers --> It does.

    If you go 1 step Up/Down/Left/Right after the script, then the person appears again!

    Please, I need your help right now because I want to release the Beta1 Version of my Hack.

    #org $begin
    lock
    faceplayer
    message $wait
    boxset 6
    #raw 0x7A 0x93 0x00
    fanfare 0x13E
    message $gotit
    $gotit 1 = You received an egg!
    boxset 6
    message $seeya
    applymovement 0x07 $1
    pausemove 0
    #raw 0x53 0x07 0x00
    setflag 0x201
    waitfanfare
    release
    end

    #org $wait
    $wait 1 = Hey, [PLAYER]! Are you leaving now?\pI will miss you. But before you\ngo, I want you to obtain this.\pTake care of it, okay?

    #org $seeya
    $seeya 1 = Good luck for your adventure!\p

    #org $1
    $1 1 ; #binary 0x04 0x06 0x06 0x06 0x04 0x06 0x06 0x06 0x06 0x05 0xFE
     
    Status
    Not open for further replies.
    Back
    Top