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

~*Pikafan*~

Man I gotta stop leaving!
  • 202
    Posts
    16
    Years
    • Age 30
    • Seen Oct 23, 2011
    I edited it. the video is now aviable (Sorry, that you couldn't see the video before, because my internet is slow...)

    I've inserted your version, Pikafan.
    He is speaking with me if I click on him.
    But he don't say that he haven#t a cookie.
    He is teling that Prof. Birch is gone and he is asking when he'll come back (like in the original ruby).

    That's because of a Level script. Choose a different map.
     

    /Circa

    a face in the clouds.
  • 881
    Posts
    16
    Years
    I putted the offset for that girl in the second town (after Route 101).
    I click on her --> it happens nothing.

    By the way, what is a level script (stupid question)?

    1. You could show us a script for your problem?

    2. A level script is a normal script, but it doesn't have a certain tile, it is in the level, for instance. In Pokemon Gold, when you enter Ecruteak Pokemon Centre Bill comes and talks to you, right? You cant enter through a warp and have that script happen, it is done by a level script. So as soon as you enter the map, the level script will activate, hopefully that explains it?
     

    Ghost

    [b][color=orange]ツ[/color][color=teal][i]In the Ma
  • 742
    Posts
    16
    Years
    does any one know garys song before u battle him
    It would be nice if someone answer this
     
  • 24
    Posts
    16
    Years
    Okay well I'm hacking FireRed and I'm trying to make a script where it gives you a pokemon, but there's a problem. This is right at the beginning of the game (before you are given a first pokemon) so there's no pokedex or anything. But then I found the setflags for the pokemon menu and pokedex and set them right before I gave the pokemon, but still the game just somehow messes up and gives me a master ball instead???? I'm totally lost.

    Well anyway here's the code
    Code:
    #ORG $begin
    lock
    checkflag 0x200
    if B_False goto $done
    checkflag 0x201
    if B_true goto $done2
    message $right
    $right 1 = You've successfully entered\nthe passcode!
    boxset 6
    message $pokemon
    $pokemon 1 = Would you like a\n free pokemon?
    boxset 5
    compare lastresult 1
    if b_true then goto $givemeh
    release
    end
    
    #ORG $done2
    message $loll
    $loll 1 = You've already got\nyour pokemon.
    boxset 6
    release
    end
    
    #ORG $done
    message $wrong
    $wrong 1 = It seems a code is\nneeded to boot up...
    boxset 6
    release
    end
    
    #ORG $givemeh
    setflag 0x828
    setflag 0x829
    special 0x16F
    setflag 0x201
    message $ugot
    $ugot 1 = You received Mew!!!
    boxset 6
    setflag 0x203
    givepokemon 150 2 1
    release
    end

    You can kindof forget the setflags in the beginning as they influence other scripts i have in the future (i understand the jist of coding) but yeah.... look towards the #ORG $givemeh part at the bottom, as I'm sure it gets to that point (I've tested). The problem is I never even see the You received Mew!!! message at all and also the pokedex and the pokemon menu hasn't even been activated, instead as I've said before I somehow receive a master ball (which doesn't even show up in the item bag either). The setflags 828-829 should activate teh pokedex and menu's (I've looked it up).

    Yes I know I typed a lot but it's very complicated and I'm totally stuck =(
     

    destinedjagold

    I do not exist.
  • 8,593
    Posts
    17
    Years
    • Seen May 26, 2024
    #org $givemeh
    setflag 0x828
    setflag 0x829
    special 0x16F
    givepokemon 150 2 1
    message $ugot
    $ugot 1 = You received Mew!!!
    boxset 6
    setflag 0x203
    setflag 0x201
    release
    end

    I do think these are the only I found that makes it glitchy, but I'm no expert in scripting, so I am quite so sure about it...
     

    shane2243

    Dragonite Lover
  • 94
    Posts
    16
    Years
    #org $begin
    lock
    faceplayer
    message $howareyou
    boxset 6
    release
    end

    #org $howareyou
    $howareyou 1 = Hey \v\h01! \nHows your journey going?

    I corrected it, try this


    i tried this, copied and pasted it exactly.

    this is what i got when testing...
    [Archive] Script help thread



    is that because i am using No$GBA?


    or is the code wrong?

    i left the offset in the image so you can see what im typing.
     

    Piplup-Trainer

    This is my custom user title.
  • 228
    Posts
    16
    Years
    1. You could show us a script for your problem?

    2. A level script is a normal script, but it doesn't have a certain tile, it is in the level, for instance. In Pokemon Gold, when you enter Ecruteak Pokemon Centre Bill comes and talks to you, right? You cant enter through a warp and have that script happen, it is done by a level script. So as soon as you enter the map, the level script will activate, hopefully that explains it?

    I'll upload the video and post the link here.
    The video shows how I show the script, burn it into the rom and how I set the offset.

    EDIT :
    Here is the link : https://www.youtube.com/watch?v=graoDgm9_xU
     
    Last edited:

    shane2243

    Dragonite Lover
  • 94
    Posts
    16
    Years
    oh, that's happened to me.
    It means you have a bugged ROM.
    Get a new one, i could send you one if you want, just PM me.


    i got the new rom, and the same thing happens.

    when i add the new sprite, i tried adding new script along with that, but that didnt seem to make a difference.


    xx.
     

    destinedjagold

    I do not exist.
  • 8,593
    Posts
    17
    Years
    • Seen May 26, 2024

    shane2243

    Dragonite Lover
  • 94
    Posts
    16
    Years
    ive found now, that any code i use gives the same red screen, i've tried other peoples codes, that have been reported to have worked fine, and still, i get the red screen, is it because i am trying to add the script into pallet town?


    also a-text doesnt work for me, i get message saying i dont have "comctl32.ocx", if anyone knows how to fix it?
     

    +Sneasel™

    It's a meeee, itman!
  • 1,032
    Posts
    17
    Years
    ive found now, that any code i use gives the same red screen, i've tried other peoples codes, that have been reported to have worked fine, and still, i get the red screen, is it because i am trying to add the script into pallet town?


    also a-text doesnt work for me, i get message saying i dont have "comctl32.ocx", if anyone knows how to fix it?

    Problem 1: your inserting it wrong probably, tell us exactly what you are doing to insert them.

    problem 2: type that on google and download the file.
     

    shane2243

    Dragonite Lover
  • 94
    Posts
    16
    Years
    i put the code in notepad, a recent code tried-
    Code:
    #org $ShowText
    Lock 
    Faceplayer
    message $noCookie
    $message noCookie
    $noCookie = Hi! I haven't got a cookie for you!!!
    boxset 6
    release
    end

    then, because i dont have pknmadv, i open pokescript, click encode, open that notepad file (saved as all file types, .rbc)

    then that works, opens bufrite, i click the book type thing, chose pokemon red, the small window opens, i choose the first one, ive tried others to check, in the list, and click assign, then i go to advance map, and put the code next to "$showtext" in this case, with the $ before my code.

    i save it all, and go to test, and it goes red, it has also once gone where the screen just freezes, but music keeps playing.
     

    +Sneasel™

    It's a meeee, itman!
  • 1,032
    Posts
    17
    Years
    i put the code in notepad, a recent code tried-
    Code:
    #org $ShowText
    Lock 
    Faceplayer
    message $noCookie
    $message noCookie
    $noCookie = Hi! I haven't got a cookie for you!!!
    boxset 6
    release
    end

    then, because i dont have pknmadv, i open pokescript, click encode, open that notepad file (saved as all file types, .rbc)

    then that works, opens bufrite, i click the book type thing, chose pokemon red, the small window opens, i choose the first one, ive tried others to check, in the list, and click assign, then i go to advance map, and put the code next to "$showtext" in this case, with the $ before my code.

    i save it all, and go to test, and it goes red, it has also once gone where the screen just freezes, but music keeps playing.

    script is wrong:

    #org $begin
    Lock
    Faceplayer
    message $noCookie
    boxset 6
    release
    end

    #org $noCookie
    $noCookie 1 = Hi! I haven't got a cookie for you!!!
     

    shane2243

    Dragonite Lover
  • 94
    Posts
    16
    Years
    script is wrong:

    #org $begin
    Lock
    Faceplayer
    message $noCookie
    boxset 6
    release
    end

    #org $noCookie
    $noCookie 1 = Hi! I haven't got a cookie for you!!!



    i used that exact code, and did it the same way as before, but it froze and the music kept playing
     
    Status
    Not open for further replies.
    Back
    Top