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

tImE

It's still me, 44tim44 ;)
  • 673
    Posts
    17
    Years
    Hi,
    I need help with this script:
    #org $start
    lock
    checkflag 0x411
    if 0x0 goto $discover
    release
    end

    #org $discover
    applymovement 0x1 $rival_see
    $rival_see 1 ; #binary 0x63 0x08 0x02 0x62 0x0A 0xFE
    message $who
    $who 1 =???:Who are you?\p................\p???:Oh so you're PLAYER.\p???: My name is Prof. Birch
    and \nI am a Pokemon Proffessor.\pHmmm...\nYou look like a trustworthy \nyoung man...\pOkay I've decided.\n I'm going to entrust you with\na PokeDex and a Pokemon.\p And in return you're going\n to help me fill this PokeDex.\pHere you go.
    boxset 6
    setflag 0x828
    setflag 0x829
    special 0x16F
    givepokemon 133 5 144
    message $off
    $off 1 =Birch: And now, I'm off.
    boxset 6
    applymovement 0x1 $byebye
    $byebye 1 ; #binary 0x0B 0x0B 0x09 0x09 0x09 0x0B 0x09 0x09 0x09 0xFE
    setflag 0x411
    warp 0x3 0x53 0x0
    release
    end#org $start
    lock
    checkflag 0x411
    if b_false goto $discover
    release
    end

    The Movement works, but while
    it moves a stranke textbox appears
    in the down,right corner.
    And then There is no text. And the script
    ends.

    What's wrong?:\

    //44tim44

    PS. By the way I've tried different
    settings at "Unknown" and "Var number" in
    A-Map: 0300-5040/0300-5340/0300-0040/0300-0140
     

    destinedjagold

    I do not exist.
  • 8,593
    Posts
    17
    Years
    • Seen May 26, 2024
    #org $start
    lock -remove this-
    checkflag 0x411
    if 0x0 goto $discover
    release
    end

    #org $discover
    applymovement 0x1 $rival_see
    $rival_see 1 ; #binary 0x63 0x08 0x02 0x62 0x0A 0xFE
    pausemove 0
    message $who
    $who 1 =(put a space here)???:Who are you?\p................\p???:Oh so you're PLAYER.\p???: My name is Prof. Birch
    and \nI am a Pokemon Proffessor.\pHmmm...\nYou look like a trustworthy \nyoung man...\pOkay I've decided.\n I'm going to entrust you with\na PokeDex and a Pokemon.\p And in return you're going\n to help me fill this PokeDex.\pHere you go.
    boxset 6
    setflag 0x828
    setflag 0x829
    special 0x16F
    givepokemon 133 5 144
    message $off
    $off 1 =(put a space here)Birch: And now, I'm off.
    boxset 6
    applymovement 0x1 $byebye
    $byebye 1 ; #binary 0x0B 0x0B 0x09 0x09 0x09 0x0B 0x09 0x09 0x09 0xFE
    pausemove 0
    setflag 0x411
    warp 0x3 0x53 0x0
    release
    end

    ---------------
    if it doesn't work, then I am sorry... I don't use 0x0 and 0x1 as replacements for if b_true... xD
     
    Last edited:

    tImE

    It's still me, 44tim44 ;)
  • 673
    Posts
    17
    Years
    Thanks DJG:D
    I'll test that.

    By the way I usually dont use 0x0 0x1
    instead of B_true/false, it is like
    this cause I am using thex4's
    Simple scripter program :P

    //44tim44

    EDIT:
    The Movement still works, but once again while
    it moves the strange textbox appears
    in the down,right corner.
    It's lika a choice box (YES/NO , Island 1/2/3)
    And when you choose the down choice nothing happends
    and when you choose the upper one the screen goes red.

    ...WHAT THE F*** IS THE PROBLEM XD!!!
     
    Last edited:

    Piplup-Trainer

    This is my custom user title.
  • 228
    Posts
    16
    Years
    Well you have lots of errors, Try this man:

    #ORG $sayhello
    lock
    faceplayer
    message $yesno
    boxset 5
    compare LASTRESULT 1
    if 1 goto $testmovement
    message $askme
    boxset 6
    release
    end

    #ORG $yesno
    $yesno 1 = Should I leave?

    #ORG $testmovement
    applymovement $0x07 $move
    pausemove 0
    release
    end

    #ORG $askme
    $askme 1 = Okay. Ask me later again.

    #ORG $move
    $move 1 ; #binary 0x4A 0x4B 0x62 0x63 0x64 0x65 0x66 0xFE

    @ Teh Blaziken : The game freezes, when I open the rom.
     
  • 3
    Posts
    16
    Years
    • Seen Feb 22, 2008
    hey guys I have a question waht I must insert in this script
    to open the picture from pikachu.
    pleaese,help.

    sorry for the bad englisch.

    #org $begin
    lock
    faceplayer
    if B_true goto $bisa
    checkflag 0x860
    message $talk
    $talk 1 =Hallo willst dieses Pikachu.
    boxset 5
    compare LASTRESULT 1
    if B_False goto $done
    givepokemon 25 5 0
    message $talk1
    $talk1 1 =\v\h01 erhält Pikachu.
    boxset 6
    setflag 0x860
    release
    end

    #org $done
    message $talk2
    $talk2 1 =Nein? ok
    boxset 6
    release
    end

    #org $bisa
    message $talk3
    $talk3 1 =Hy wie geht es pikachu.
    boxset 6
    release
    end
     

    destinedjagold

    I do not exist.
  • 8,593
    Posts
    17
    Years
    • Seen May 26, 2024
    to 44tim44.., try this...
    #org $start
    checkflag 0x411
    if b_true goto $done
    applymovement 0x01 $rivalsee
    pausemove 0
    message $who
    boxset 6
    setflag 0x828
    setflag 0x829
    special 0x16F
    givepokemon 133 5 144
    message $off
    boxset 6
    applymovement 0x1 $byebye
    pausemove 0
    setflag 0x411
    warp 0x3 0x53 0x0
    release
    end

    #org $done
    release
    end

    #org $rivalsee
    $rivalsee 1 ; #binary 0x63 0x08 0x02 0x62 0x0A 0xFE

    #org $who
    $who 1 = ???:Who are you?\p................\p???:Oh so you're PLAYER.\p???: My name is Prof. Birch and \nI am a Pokemon Proffessor.\pHmmm...\nYou look like a trustworthy \nyoung man...\pOkay I've decided.\n I'm going to entrust you with\na PokeDex and a Pokemon.\p And in return you're going\n to help me fill this PokeDex.\pHere you go.

    #org $off
    $off 1 = Birch: And now, I'm off.

    #org $byebye
    $byebye 1 ; #binary 0x0B 0x0B 0x09 0x09 0x09 0x0B 0x09 0x09 0x09 0xFE
     
  • 170
    Posts
    16
    Years
    I have a problem with this script..and i have to get on the buss into town..so i dont have time to do a script check..so..I hope i'll see if anyone has found the error ^_^
    Spoiler:
     

    /Circa

    a face in the clouds.
  • 881
    Posts
    16
    Years
    I need help with a simple script I wrote for my hack.

    Here is it:

    Code:
    #org $StartScript
    checkflag 0x822
    if B_TRUE goto $ShouldExecute
    end
    #org $ShouldExecute
    if B_TRUE goto $Skip
    lock
    message $Hey
    boxset 6
    movesprite 0xA 0xA 0x5
    applymovement 0xA $MoveRival
    pausemove 0
    message $HaveHM
    boxset 6
    giveitem 0x154
    message $Bye
    boxset 6
    applymovement 0xA $MoveRivalInv
    pausemove 0
    movesprite 0xA 0x0 0x0
    setflag 0x201
    release
    end
    #org $Skip
    release
    end
    #org $Hey
    $Hey 1 = Hey, \v\h01!
    #org $HaveHM
    $HaveHM 1 = \v\h01, PROF.PLUM sent me to\ngive you this HM!
    #org $Bye
    $Bye 1 = Well, I must go to CROSSED TOWN.\nSee ya!
    #org $MoveRival
    $MoveRival 1 ; #binary 0x13 0x13 0x10 0x10 0x13 0x13 0x13 0x13 0x13 0xFE
    #org $MoveRivalInv
    $MoveRivalInv 1 ; #binary 0x12 0x12 0x12 0x12 0x12 0x11 0x11 0x12 0x12 0xFE

    I am working with Fire Red, and I have an sprite with index 0xA on the map. But, when I walk upon the script spot in the map I only get a playsound. I DON'T EVEN SPECIFIED A PLAYSOUND! Then I change the script pointer to other script that works, I RECEIVE THE SAME THING! Please, help me!

    PD: I am using PokeScript


    I think you should read up on some more tutorials..
    First, you have no spaces imbetween scripts, after every paragraph, press enter twice and continue.
     

    Tony the Awesome

    mi nombre es tony
  • 233
    Posts
    16
    Years
    • Seen Mar 13, 2010
    im learning how to script...
    I'm just wondering if this script works:
    Code:
    #org $start
    lock
    faceplayer
    message $pro
    $pro 1 =Take this National Dex!
    special 0x16F
    waitfanfare
    release
    end
    If it doesn't work,will someone make me a script of
    a professor giving the main character a national dex?
     

    Megiddo-san

    Barium - Summer '12 Return?
  • 1,308
    Posts
    16
    Years
    I think one of these should work.
    #ORG $begin
    lock
    faceplayer
    message $pro
    boxset 6
    special 0x16F
    waitfanfare
    release
    end

    #org $pro
    $pro 1 = Take this National Dex!

    OR (EDIT: first one doesn't work.)

    #ORG $begin
    lock
    faceplayer
    checkflag 0x200
    message $pro
    boxset 6
    special 0x16F
    waitfanfare
    setflag 0x200
    release
    end

    #org $pro
    $pro 1 = Take this National Dex!
     
    Last edited:

    Tony the Awesome

    mi nombre es tony
  • 233
    Posts
    16
    Years
    • Seen Mar 13, 2010
    I think one of these should work.
    #ORG $begin
    lock
    faceplayer
    message $pro
    boxset 6
    special 0x16F
    waitfanfare
    release
    end

    #org $pro
    $pro 1 = Take this National Dex!

    OR (EDIT: first one doesn't work.)

    #ORG $begin
    lock
    faceplayer
    checkflag 0x200
    message $pro
    boxset 6
    special 0x16F
    waitfanfare
    setflag 0x200
    release
    end

    #org $pro
    $pro 1 = Take this National Dex!

    Ok,Thank you!
    I tried mine.
    and my rom froze xD
     

    Reaper 6

    (Reaper 6) the six samurai YGO
  • 122
    Posts
    16
    Years
    • Seen Dec 8, 2009
    I think one of these should work.
    #ORG $begin
    lock
    faceplayer
    message $pro
    boxset 6
    special 0x16F
    waitfanfare
    release
    end

    #org $pro
    $pro 1 = Take this National Dex!

    OR (EDIT: first one doesn't work.)

    #ORG $begin
    lock
    faceplayer
    checkflag 0x200
    message $pro
    boxset 6
    special 0x16F
    waitfanfare
    setflag 0x200
    release
    end

    #org $pro
    $pro 1 = Take this National Dex!

    this wont work u need to put it like this

    #ORG $begin
    lock
    faceplayer
    checkflag 0x200
    message $pro
    boxset 6
    setflag 0x828
    setflag 0x829
    special 0x16F
    waitfanfare
    setflag 0x200
    release
    end

    #org $pro
    $pro 1 = Take this National Dex!

    then it should work
     

    tImE

    It's still me, 44tim44 ;)
  • 673
    Posts
    17
    Years
    Hi,
    does any body know which
    flag is set after setting the clock
    in your room in ruby?

    And also what flag is set
    after the battling poochyena
    and save birch script in ruby?
    (before moving into lab)

    Hope any body knows :P

    //44tim44
     

    Lyzo

    Back from vacation
  • 261
    Posts
    17
    Years
    Hey I'm having a problem with a simple setflag script...

    #org $begin
    checkflag 0x202
    lock
    faceplayer
    if B_true goto $done
    setflag 0x202
    release
    end

    #org $done
    release
    end

    It says "Runtime error 5 invalid procedure call or argument

    Please help!
     

    Epsilon

    Shiny Scizor
  • 249
    Posts
    17
    Years
    Can someone please check this script, it doesn't work.
    (is for firered)
    (offsets are in dutch :P)
    Code:
    #ORG $papa
    checkflag 0x200
    if B_true goto $alaf
    applymovement 0x01 $hoigast
    pause 0x40
    message $jourmn
    boxset 5
    compare LASTRESUILT B_TRUE
    if B_False goto $better
    message $great
    boxset 6
    message $enough1
    boxset 6
    applymovement 0x01 $backto1
    pause 0x30
    setflag 0x200
    end
    
    #org $hoigast
    $hoigast ; #binary 0x62 0x11 0x11 0x13 0xFE
    
    #org $jourmn
    $jourmn 1 = Hi, \v\h01!\nAre you excited about your journey?
    
    #org $great
    $great 1 = Great! I'm excited too!
    
    #org $better
    message $stupid
    boxset 6
    message $enough2
    boxset 6
    applymovement 0x01 $backto2
    pause 0x30
    setflag 0x200
    end
    
    #org $stupid
    $stupid 1 = Well, you better be!
    
    #org $enough1
    $enough1 1 = But enough with the talking,\nyou better head over to \v\h06's house\pYou've got a journey to start! 
    
    #org $enough2
    $enough2 1 = But enough with the talking,\nyou better head over to \v\h06's house\pYou've got a journey to start!
    
    #org $backto1
    $backto1 ; #binary 0x12 0x10 0x10 0xFE
    
    #org $backto2
    $backto2 ; #binary 0x12 0x10 0x10 0xFE
    
    #org $alaf
    lock
    faceplayer
    message $comeon
    boxset 6
    release
    end
    
    #org $comeon
    $comeon 1 = Good luck on your journey!
     

    Lyzo

    Back from vacation
  • 261
    Posts
    17
    Years
    #org $begin
    lock
    faceplayer
    checkflag 0x202
    if B_true goto $done
    setflag 0x202
    release
    end

    #org $done
    release
    end

    Nope it still doesn't compile I still get runtime error 5.... :'(
     
    Status
    Not open for further replies.
    Back
    Top