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

-GiЯ

Banned
119
Posts
15
Years
    • Age 32
    • G IR
    • Earth
    • Seen Nov 30, 2023
    HELP PLEASE!!, hack mew tried to help me, but i dont get XSE, im not good with script but i know notepad\pokescript a lil bit.
    i cant figure out what wrong with this thoe it just freezes can anyone help?
    remember i use pokescript and notepad.
    also can anyone give me a step key i know 0xFE goes at the end but which steps are which direction like 0x1e and so on (up,down,left,right??)

    #org $start
    lock
    checkflag 0x217
    if b_true goto $released
    applymovement 0x01 $moveexclam
    pause 0x7
    applymovement 0xFF $moveexclam
    pause 0x7
    applymovement 0x01 $walktome
    pausemove 0
    applymovement 0x01 $finishwalk
    pausemove 0
    message $yourawake
    boxset 6
    applymovement 0x01 $computerroom
    pausemove 0
    applymovement 0xFF $computerroom
    pausemove 0
    message $pokemon
    boxset 6
    givepokemon 151 5 0
    fanfare 0x13E
    waitfanfare
    message $11
    boxset 2
    fanfare 0x13E
    message $22
    boxset 6
    setflag 0x829
    special 0x16F
    waitfanfare
    setflag 0x209
    setflag 0x828
    setflag 0x217
    message $goodluck
    boxset 6
    release
    end

    #org $released
    release
    end

    #org $11
    $11 1 = Oh, and he also left this for you.

    #org $22
    $22 1 = You received a PokeDex!
    .
    #org $moveexclam
    #raw 0x63 0x62 0xFE

    #org $walktome
    #raw 0x1D 0x1F 0x1F 0x1F 0x1F 0x1F 0x1E 0x1E 0x1E
    0x1E 0x1E 0xFE

    #org $finishwalk
    #raw 0x20 0x1E 0x13 0x13 0xFE

    #org $computerroom
    #raw 0x12 0x12 0x12 0x12 0x10 0x10 0x10
    #raw 0x10 0x10 0x10 0x13 0x13 0x13 0xFE

    #org $yourawake
    $yourawake 1 =Oh! Hey, \v\h01! I see you finnally\ndecided to wake up your DAD\lbrought you something but you wouldnt\lwake up.

    #org $pokemon
    $pokemon 1 =Here \v\h01! this is your 1st POKEMON\nYour DAD wanted you to have it\lYou can start your journey now.

    #org $goodluck
    $goodluck 1 =Good Luck!!\nTo lilfabbro! Okay This should be working\lHowever I may have forgot to\lset some variables.\lI can fix those after a next patch\lOr you can tell me what\lyou think.
     

    Hiche..

     
    979
    Posts
    16
    Years
    • Seen Dec 27, 2014
    I will look over your script, and see if anything is wrong.

    For the movements, here:

    Spoiler:


    Extracted from thethethethe's tutorial. (FireRed movements)
     

    Hiche..

     
    979
    Posts
    16
    Years
    • Seen Dec 27, 2014
    Code:
    message $11
    fanfare 0x13E
    setflag 0x829
    special 0x16F

    ^ See this part? You forgot to put boxset 6 under the message $11.

    So it would be:
    Code:
    message $11
    [B]boxset 6[/B]
    fanfare 0x13E
    setflag 0x829
    special 0x16F
     
    14
    Posts
    15
    Years
    • Seen Jan 24, 2023
    Ok for days ive been trying to find out how to make a script so that when you first talk to oak he will let you chose the pokemon you want but I cant find out what I need to put in my script to make it work and I tryed looking at the normal one off the normal rom but I cant find it can anyone please help me and I know this isnt the right place to put this but I dont know anywhere else.
     

    machomuu

    Stuck in Hot Girl Summer
    10,507
    Posts
    16
    Years
  • Ok for days ive been trying to find out how to make a script so that when you first talk to oak he will let you chose the pokemon you want but I cant find out what I need to put in my script to make it work and I tryed looking at the normal one off the normal rom but I cant find it can anyone please help me and I know this isnt the right place to put this but I dont know anywhere else.
    Try the simpe questions thread, or, if you have XSE, you can decompile the script in the game.
     

    in009

    Rawr =)
    9
    Posts
    15
    Years
    • Seen Jul 18, 2012
    Can some give me a link or something to a good scripting tutorial. I realy want to make my own pokemon game but i know very little about scripting.
    Thanks
     

    Thrace

    @tion
    1,048
    Posts
    16
    Years
    • Seen Oct 2, 2016
    14
    Posts
    15
    Years
    • Seen Jan 24, 2023
    Ok I got the script now but when I try using it it crashes the game here it is.

    Spoiler:


    I just started a few days ago so I can bet I messed something up help is much appreciated.
     

    Vrai

    can you feel my heart?
    2,896
    Posts
    15
    Years
    • Age 29
    • Seen Oct 24, 2022
    Ok I got the script now but when I try using it it crashes the game here it is.

    Spoiler:


    I just started a few days ago so I can bet I messed something up help is much appreciated.

    Maybe you could post the whole script? From there, it looks like you only put up part of it. ~_~
     
    Last edited:

    0m3GA ARS3NAL

    Im comin' home...
    1,816
    Posts
    16
    Years
  • I have finally hit a stump in my scripting prowess... I need help using a level script... is there a tutorial on how to use them? A special way to insert them? I can never get them to work... please help me! ^_^
     

    Vrai

    can you feel my heart?
    2,896
    Posts
    15
    Years
    • Age 29
    • Seen Oct 24, 2022
    Ahh, Thank you Mini_Mac...
    One more question though... How can I edit the Boat in Fire Red? The cut-scene where you ride the boat to/from the SevII Islands... I want it to be different... any Idea how?

    The image, the locations, what?

    The image can probably be edited with UNLZ-gba., if you take the time to find it. I believe Thrace put something up about changing the locations in one of the ROM Hacking newsletters. Not sure which one, though.
     

    -GiЯ

    Banned
    119
    Posts
    15
    Years
    • Age 32
    • G IR
    • Earth
    • Seen Nov 30, 2023
    HackMew has done it, fixed my script and then some. just letting everone know so no one trys a bunch of stuff for me. After about an hour, HackMew made my (well HackMew's) script work, and even made it 10000x better, HackMew is the BESTEST, HackMew had to take control of my desktop and everything with a awsome program, and it was fixed in no time,now all that left for me to do is change the text and get my steps perfect.

    Anyone has mine and HackMew's permission to use this script were it says though you have to put your steps and your own text.
    this is with XSE by the way

    Spoiler:


    THANKS AGIAN TO THE AMAZING ONE AND ONLY HackMew
    Hope You enjoy getting rid of OAK as much as i did, you get pokemon of your choice and both pokedex's YAAAA!!!
     
    Last edited:

    пзо

    zzirRusty
    223
    Posts
    15
    Years
    • Seen Jun 2, 2010
    The Player Dont walk up to you. the writing conmes up overlaping eachother, and it all messed up. However, the Trainer battle works. that part is ok, whats wrong with it?


    Script

    '-----------------------
    #org 0x800B8C
    checkflag 0x2000
    if 0x1 goto 0x8800D0C
    applymovement 0x3 0x8800D0C
    waitmovement 0x0
    msgbox 0x8800C02 '"???: You're not a trainer, are yYou..."
    callstd 0x2
    trainerbattle 0x1 0x1 0x0 0x8800C22 0x8800C41 0x6C020029
    applymovement 0x3 0x8800BC5
    waitmovement 0x0
    end

    '-----------------------
    #org 0x800D0C
    comparefarbytetovar 0x201E1E1E 0x1E
    comparefarbytetovar 0x1F1F1F1E 0x1E
    comparefarbytetovar 0x800D261F 0x8
    if 0x1 goto 0x8800D7C
    end

    '-----------------------
    #org 0x800D7C
    release
    end


    '-----------
    ' Movements
    '-----------
    #org 0x800D0C
    #raw 1E 'Step Up (Fast)
    #raw 1E 'Step Up (Fast)
    #raw 1E 'Step Up (Fast)
    #raw 1E 'Step Up (Fast)
    #raw 20 'Step Right (Fast)
    #raw 1E 'Step Up (Fast)
    #raw 1E 'Step Up (Fast)
    #raw 1E 'Step Up (Fast)
    #raw 1F 'Step Left (Fast)
    #raw 1F 'Step Left (Fast)
    #raw 1F 'Step Left (Fast)
    #raw 1E 'Step Up (Fast)
    #raw 1E 'Step Up (Fast)
    #raw 1F 'Step Left (Fast)
    #raw 26 'Step on the Spot Up (Faster)
    #raw D 'Step Up (Slow)
    #raw 80 'mov80
    #raw 8 'Step Down (Very Slow)
    #raw 6 'Face Left (Faster)
    #raw 1 'Face Up
    #raw 7C 'mov7C
    #raw D 'Step Up (Slow)
    #raw 80 'mov80
    #raw 8 'Step Down (Very Slow)
    #raw 2 'Face Left

    #org 0x800BC5
    #raw 6C 'mov6C
    #raw 2 'Face Left


    '---------
    ' Strings
    '---------
    #org 0x800C02
    = ???: You're not a trainer, are yYou don't even look like one!

    #org 0x800C22
    = You don't even look like one!

    #org 0x800C41
    = ???: I didn't think you'd\nbe so good...
     

    Hiche..

     
    979
    Posts
    16
    Years
    • Seen Dec 27, 2014
    Neo.. You forgot #raw 0xFE at the end of the movements(It should be there). I will check if there's anything wrong.
     
    824
    Posts
    16
    Years
  • i guess i should use this thread...
    here's a script im working on...


    #Dynamic 0x800000

    #org @start
    lock
    faceplayer
    checkflag 0x828
    if b_true goto @done
    Message @givepoke
    boxset 6
    closeonkeypress
    givepokemon 0x4 0x5 0xD7 0x0 0x0 0x0
    fanfare 0x13E
    waitfanfare
    Message @receivepoke
    boxset 6
    closeonkeypress
    fanfare 0x13E
    waitfanfare
    Message @pokeballs
    boxset 6
    closeonkeypress
    applymovement 0x4 @exclamationmark
    waitmovement 0
    Message @whataboutme2
    boxset 6
    closeonkeypress
    applymovement 0xFF @whataboutme
    waitmovement 0
    applymovement 0x4 @move
    waitmovement 0
    applymovement 0xFF @reface
    waitmovement 0
    Message @okokok
    boxset 6
    closeonkeypress
    fanfare 0x13E
    waitfanfare
    Message @rivalreceive
    boxset 6
    closeonkeypress
    applymovement 0x4 @battlestance1
    waitmovement 0
    applymovement 0xFF @battlestance2
    waitmovement 0
    call @trainer
    applymovement 0x4 @reface
    waitmovement 0
    applymovement 0xFF @reface
    waitmovement 0
    Message @timetogo
    boxset 6
    closeonkeypress
    playsong 0x13B 0x0
    Message @rivalgo
    boxset 6
    closeonkeypress
    applymovement 0x4 @runoutdoor
    waitmovement 0
    fadedefault
    hidesprite 0x4
    setflag 0x1001
    setflag 0x828
    release
    end

    #org @done
    Message @alreadygave
    boxset 6
    closeonkeypress
    release
    end

    #org @trainer
    trainerbattle 0 0x05A 0x0 @battleme @oh
    return

    #org @givepoke
    = Hello \v\h01, my name is Bard and\nI am the Pokémon Professor here.\pI have a Pokémon here for you.\nHere you go!

    #org @receivepoke
    = \v\h01 received the Charmander.\n... ... ...\pYou can nickname it later.\nI also have these for you.

    #org @pokeballs
    = \v\h01 received 10 Pokéballs to use\nlater.\pYou can use those to catch Pokémon!

    #org @alreadygave
    = I've already given you your Pokémon,\nnow get going \v\h01!

    #org @whataboutme2
    = Gareth: MY TURN!

    #org @okokok
    = Bard: Ok \v\h06, here you go.\nBe patient next time!

    #org @rivalreceive
    = Gareth received the Mudkip.\n... ... ...

    #org @battleme
    = \v\h01, battle me now!!

    #org @oh
    = Gareth: Darn, I lost...

    #org @timetogo
    = Well, it seems that it's time for\nyou to go. Your goal is to\pbecome the strongest trainers\never! I'm counting on you!

    #org @rivalgo
    = Gareth: I will be better than you\n \v\h01! It'll be easy! \pYou'll see!\nSmell ya later!

    #org @exclamationmark
    #raw 0x62
    #raw 0xFE

    #org @whataboutme
    #raw 0x20
    #raw 0x02
    #raw 0xFE

    #org @move
    #raw 0x20
    #raw 0x01
    #raw 0xFE

    #org @reface
    #raw 0x01
    #raw 0xFE

    #org @battlestance1
    #raw 0x03
    #raw 0xFE

    #org @battlestance2
    #raw 0x02
    #raw 0xFE

    #org @runoutdoor
    #raw 0x1D
    #raw 0x1D
    #raw 0x1D
    #raw 0x1D
    #raw 0x1D
    #raw 0x1D
    #raw 0x1D
    #raw 0x1D
    #raw 0xFE


    problem ive got is that after the trainerbattle nothing happens and i have to exit the building, come back in, and the script restarts but instead without trainerbattle and finishes normally.
    can anyone help with this?
    cheers
     

    HackMew

    Mewtwo Strikes Back
    1,314
    Posts
    17
    Years
    • Seen Oct 26, 2011
    i guess i should use this thread...
    here's a script im working on...

    Spoiler:


    problem ive got is that after the trainerbattle nothing happens and i have to exit the building, come back in, and the script restarts but instead without trainerbattle and finishes normally.
    can anyone help with this?
    cheers

    See the fixed script carefully. I've adjusted some other things as well:

    Spoiler:


    If you have any questions, just ask. Look close, okay?
     

    linkandzelda

    Ex-rom hacker turned indie game developer
    777
    Posts
    17
    Years
  • hey hackmew and other scripters. i have a question. can i give a pokemon with a selected move i want them to know when they are given? for example, giving a charmander that knows high jump kick LOL. also maybe the same with and egg.

    thanks in advance
    link
     
    Status
    Not open for further replies.
    Back
    Top