The PokéCommunity Forums Fan Games ROM Hacking
Script Help Thread (DO NOT REQUEST SCRIPTS)

ROM Hacking Need a helping hand? You can get help on any ROM Hacking-related problems or questions you have here.

Closed Thread
 
Thread Tools
  #2726    
Old December 21st, 2009 (11:29 AM).
TB Pro's Avatar
TB Pro TB Pro is offline
Old-timer
     
    Join Date: Nov 2004
    Location: Midwestern USA
    Age: 22
    Gender: Male
    Posts: 2,739
    Quote:
    Originally Posted by rokrdude View Post
    Sorry but i couldnt get u
    Is the script fine
    which offsets with @1 before after??

    The problem is after i battle the person im able to control his sprite and not mine(mine remains fixed at the position)

    Can u tell me what can i do to correct it?
    He wasn't talking to you. And yes, you can use flags in trainerbattle scripts.
    __________________
    --I'm a creepin'..

    Relevant Advertising!

      #2727    
    Old December 21st, 2009 (11:33 AM). Edited December 21st, 2009 by rokrdude.
    rokrdude's Avatar
    rokrdude rokrdude is offline
    POKEMON : SINNOH QUEST CREATOR
       
      Join Date: Oct 2009
      Gender: Male
      Posts: 136
      Quote:
      Originally Posted by rokrdude View Post
      can anyone tell the problem in script
      The problem is after i battle the person im able to control his sprite and not mine(mine remains fixed at the position)

      Spoiler:

      #dynamic 0x700000

      #org @start
      trainerbattle 0x0 0x001 0x0 @before @after
      setflag 0x900
      checkflag 0x901
      if 0x0 goto @beaten
      checkflag 0x902
      if 0x0 goto @beaten
      checkflag 0x903
      if 0x0 goto @beaten
      msgbox @bb 0x6
      release
      end

      #org @before
      = Lately, I've had a lot to worry about...

      #org @after
      = You just added to my worries...

      #org @beaten
      msgbox @aa 0x6
      releaseall
      end

      #org @aa
      = You have defeated the\n Kanto Island Leader i.e. me \pNow go and defeat the other leaders.

      #org @bb
      = You have defeated all the\nleaders of PARADISE ISLANDS.\pYou can now go and\nchallenge the ELITE 4.\pBest of luck!!
      Any solutions to the problem?

      If we want to use custom flags in ruby like 0x900 is there a special command needed so that flag can be used in the script or can we give
      command like checkflag 0x900 before even using setflag 0x900?
        #2728    
      Old December 21st, 2009 (1:46 PM).
      lbirrueta's Avatar
      lbirrueta lbirrueta is offline
      HAXXING'
         
        Join Date: Aug 2009
        Location: san jo'
        Gender: Male
        Nature: Relaxed
        Posts: 31
        thanks for this info, I've been searching for days!
          #2729    
        Old December 21st, 2009 (2:28 PM).
        piercesj piercesj is offline
           
          Join Date: Aug 2008
          Gender:
          Posts: 32
          Quote:
          Originally Posted by NarutoActor View Post
          you could do that or just replace the offsets with @1 and try compiling it again.
          I've tried still nothing. That weird.
          __________________
            #2730    
          Old December 21st, 2009 (3:14 PM).
          NarutoActor's Avatar
          NarutoActor NarutoActor is offline
          The rocks cry out to me
          • Silver Tier
           
          Join Date: Jan 2009
          Location: Brooklyn/Marlboro
          Age: 23
          Gender: Female
          Nature: Bashful
          Posts: 1,979
          Send a message via AIM to NarutoActor Send a message via Windows Live Messenger to NarutoActor
          mmm.. thats odd try this script
          #dynamic 0x700000

          #org @start
          lock
          msgbox @mes MSG_FACE
          release
          end

          #org @mes
          = Hi! Welcome to Pallet Town!
          __________________
          ~There are those people who understand hex, F the rest
            #2731    
          Old December 21st, 2009 (3:21 PM).
          TB Pro's Avatar
          TB Pro TB Pro is offline
          Old-timer
             
            Join Date: Nov 2004
            Location: Midwestern USA
            Age: 22
            Gender: Male
            Posts: 2,739
            Quote:
            Originally Posted by NarutoActor View Post
            mmm.. thats odd try this script
            #dynamic 0x700000

            #org @start
            lock
            msgbox @mes MSG_FACE
            release
            end

            #org @mes
            = Hi! Welcome to Pallet Town!
            or just

            #dynamic 0x800000

            #org @begin
            msgbox @talk 0x2
            end

            #org @talk
            = words
            __________________
            --I'm a creepin'..
              #2732    
            Old December 21st, 2009 (8:13 PM). Edited December 21st, 2009 by piercesj.
            piercesj piercesj is offline
               
              Join Date: Aug 2008
              Gender:
              Posts: 32
              Ok I've tried everything. Still dosent work, maybe its the ROM?
              EDIT: tried it with a different ROM, and it still didnt work am I compiling wrong?
              __________________
                #2733    
              Old December 21st, 2009 (8:21 PM).
              Incineroar's Avatar
              Incineroar Incineroar is offline
              the spirit of the fighter
              • Moderator
              • Platinum Tier
              • Developer
               
              Join Date: May 2009
              Location: Iki Town
              Age: 22
              Gender: Male
              Nature: Brave
              Posts: 13,345
              Where do I place the offset to activate the Pokemon Menu option?
              Add-on- NarutoActor, the offset is 0x828, for your information.
              Spoiler:
              #org $start
              lock
              faceplayer
              checkflag 0x200
              if b_true goto $done
              message $1
              boxset 5
              compare LASTRESULT 0x1
              if b_true goto $take
              message $2
              boxset 6
              release
              end

              #org $take
              givepokemon 155 5 139
              fanfare 0x13E
              message $3
              boxset 4
              waitfanfare
              #raw 0x68
              setflag 0x200
              message $4
              boxset 5
              compare LASTRESULT 0x1
              if b_true gosub $name
              message $5
              boxset 6
              release
              end

              #org $name
              call 0x1A74EB
              return

              #org $done
              message $6
              boxset 6
              release
              end

              #org $1
              $1 1 =You need Pokémon to go to Slowpoke\nWell. You want one?

              #org $2
              $2 1 =You'll be back! I'm certain of it!

              #org $3
              $3 1 =\c\h01\h02You received a CYNDAQUIL!

              #org $4
              $4 1 =\c\h01\h02Would you like to give a nickname to\nCYNDAQUIL?

              #org $5
              $5 1 =You made the right choice.

              #org $6
              $6 1 =Take good care of that CYNDAQUIL.\nYou hear me?


              I have no clue where it goes. Thanks in advance.
              __________________
                #2734    
              Old December 23rd, 2009 (2:26 PM).
              piercesj piercesj is offline
                 
                Join Date: Aug 2008
                Gender:
                Posts: 32
                Anyone on my problem above?
                __________________
                  #2735    
                Old December 23rd, 2009 (4:49 PM). Edited December 23rd, 2009 by TB Pro.
                TB Pro's Avatar
                TB Pro TB Pro is offline
                Old-timer
                   
                  Join Date: Nov 2004
                  Location: Midwestern USA
                  Age: 22
                  Gender: Male
                  Posts: 2,739
                  Quote:
                  Originally Posted by Team Fail View Post
                  Where do I place the offset to activate the Pokemon Menu option?
                  Add-on- NarutoActor, the offset is 0x828, for your information.
                  Spoiler:
                  #org $start
                  lock
                  faceplayer
                  checkflag 0x200
                  if b_true goto $done
                  message $1
                  boxset 5
                  compare LASTRESULT 0x1
                  if b_true goto $take
                  message $2
                  boxset 6
                  release
                  end

                  #org $take
                  givepokemon 155 5 139
                  fanfare 0x13E
                  message $3
                  boxset 4
                  waitfanfare
                  #raw 0x68
                  setflag 0x200
                  message $4
                  boxset 5
                  compare LASTRESULT 0x1
                  if b_true gosub $name
                  message $5
                  boxset 6
                  release
                  end

                  #org $name
                  call 0x1A74EB
                  return

                  #org $done
                  message $6
                  boxset 6
                  release
                  end

                  #org $1
                  $1 1 =You need Pokémon to go to Slowpoke\nWell. You want one?

                  #org $2
                  $2 1 =You'll be back! I'm certain of it!

                  #org $3
                  $3 1 =\c\h01\h02You received a CYNDAQUIL!

                  #org $4
                  $4 1 =\c\h01\h02Would you like to give a nickname to\nCYNDAQUIL?

                  #org $5
                  $5 1 =You made the right choice.

                  #org $6
                  $6 1 =Take good care of that CYNDAQUIL.\nYou hear me?


                  I have no clue where it goes. Thanks in advance.
                  Basically anywhere before the givepokemon, though it's usually one line before it.

                  EDIT ======================>

                  Okay my headbutt tree script isnt working. Everything works, but there is no Pokemon battle, even if I set the encounter rate to 100% halpz?

                  Code:
                  #dynamic 0x800000
                  
                  #org @begin
                  checkattack 0x1D
                  compare 0x800D 0x6
                  if 0x1 goto @[couldbeheadbutted]
                  setanimation 0x0 0x800D
                  bufferpartypokemon 0x00 0x800D
                  bufferattack 0x1 0x1D
                  msgbox @[question] 0x5
                  compare 0x800D 0x0
                  if 0x1 goto @end
                  msgbox @[usedheadbutt] 0x6
                  closeonkeypress
                  doanimation 0x25
                  waitstate
                  goto @[pointertocontinuefrom]
                  
                  #org @[couldbeheadbutted]
                  msgbox @[headbutttree] 0x6
                  release
                  end
                  
                  #org @[question]
                  = A Pokémon could be hiding in this\ntree.\pShould [buffer1] use [buffer2]?
                  
                  #org @end
                  release
                  end
                  
                  #org @[usedheadbutt]
                  = [buffer1] used [buffer2].
                  
                  #org @[headbutttree]
                  = This tree could be headbutted.
                  
                  #org @[pointertocontinuefrom]
                  applymovement 0x800F @[pointer]
                  waitmovement 0
                  special 0xAB
                  releaseall
                  end
                  
                  #org @[pointer]
                  #raw 0x0 0xFE
                  __________________
                  --I'm a creepin'..
                    #2736    
                  Old December 24th, 2009 (1:01 PM).
                  xPhoenix xPhoenix is offline
                     
                    Join Date: Aug 2009
                    Location: bungalow
                    Gender: Female
                    Nature: Brave
                    Posts: 8
                    I'm using JPAN's hacked Fire Red engine for my hack and scripting has been going well until I realized that due to my remapping that it has glitched up where the player goes when they "blackout/whiteout". I was wondering how I change this...it seems to be a scripting issue so I thought I'd ask it here. Is this just a matter of setting flags somewhere...?
                      #2737    
                    Old December 24th, 2009 (1:27 PM).
                    0m3GA ARS3NAL's Avatar
                    0m3GA ARS3NAL 0m3GA ARS3NAL is offline
                    Im comin' home...
                    • Silver Tier
                     
                    Join Date: Jan 2008
                    Location: Superjail Penitentiary
                    Age: 24
                    Gender: Male
                    Nature: Gentle
                    Posts: 1,812
                    Quote:
                    Originally Posted by xPhoenix View Post
                    I'm using JPAN's hacked Fire Red engine for my hack and scripting has been going well until I realized that due to my remapping that it has glitched up where the player goes when they "blackout/whiteout". I was wondering how I change this...it seems to be a scripting issue so I thought I'd ask it here. Is this just a matter of setting flags somewhere...?
                    You have to have a level script in your Pokemon Centers (And Other healing locations)
                    that include the "sethealingplace" command.
                    An easy way you could do this is just remove the level script from a clean Fire Red rom, and insert it directly into your hacked one.
                    __________________
                    >Boot Jailbot
                    >Pass *****
                    .
                    .
                    Jailbot OS Ver 1.1.2
                    Greetings Warden
                    of Superjail Penitentiary
                    Awaiting user input...

                    >Display User_Info
                    ╠══User Info══╣
                    Username:
                    0m3GA ARS3NAL
                    Age: 18
                    Sex: Male ♂
                    Race: Caucasian
                    Quote:
                    "What is this
                    I don't even..."

                    M/O: Often acts out to get attention, but recently has changed that. Has been studying up on hacking information and hopes to participate in more advanced hacking discussion.
                    ╠══End of File══╣
                    Awaiting user input...

                    >
                      #2738    
                    Old December 24th, 2009 (2:24 PM).
                    Hoshiko Aki's Avatar
                    Hoshiko Aki Hoshiko Aki is offline
                    Avatar rules
                       
                      Join Date: Oct 2008
                      Posts: 109
                      Whats wrong with this script?

                      oncompilde:
                      Spoiler:
                      #dynamic 0x800000

                      #org @main
                      lock
                      faceplayer
                      checkflag 0x828
                      if 0x1 goto @nopokémon
                      message @pokémon 0x6
                      release
                      end

                      #org @pokémon
                      message @yespokémon 0x6
                      fadescreen 0x1
                      hidesprite 0x800F
                      setflag 0x1000
                      fadescreen 0x0
                      release
                      end

                      #org @nopokémon
                      = Isn't the nature wonderfull? Maby\nyou like to take a look at the\lbreeding farm

                      #org @yespokémon
                      = You have get a Gligar at the\nBreedig farm I see?



                      Compild

                      Spoiler:
                      '---------------
                      #org 0x800749
                      lock
                      faceplayer
                      checkflag 0x828
                      if 0x1 goto 0x8800774
                      msgbox 0x880075F MSG_NORMAL '"Ô KÊ\h80ËÌÉ\h97À[PK]Ô\h80ñ Œ\h97 \..."
                      release
                      end

                      '---------------
                      #org 0x800774
                      cmdc3 0xE7

                      '---------
                      ' Strings
                      '---------
                      #org 0x80075F
                      = Ô KÊ\h80ËÌÉ\h97À[PK]Ô\h80ñ Œ\h97 \h6CÁ


                      Can some buddy help me?
                        #2739    
                      Old December 24th, 2009 (2:40 PM).
                      lugiaguy lugiaguy is offline
                         
                        Join Date: Nov 2009
                        Posts: 3
                        Can someone help me? I'm having trouble with warp scripts. Here's one that I recently put together.

                        Code:
                        '---------------
                        #org 0x801240
                        lock
                        faceplayer
                        countpokemon
                        compare LASTRESULT 0x1
                        if 0x1 goto 0x880125C
                        release
                        end
                        '---------------
                        #org 0x80125C
                        lock
                        faceplayer
                        warp 0x18 0x58 0x0 0x0 0x0
                        release
                        end
                        Basically, if the player has 1 pokemon in his party, he warps, if he has more or less, he doesn't warp. I want the player to warp to (24,88) or (18,58) in hex. Unfortunately, when I use this script, the game just freezes.
                          #2740    
                        Old December 24th, 2009 (2:44 PM).
                        Diegoisawesome's Avatar
                        Diegoisawesome Diegoisawesome is offline
                        Oh god the bees
                        • Silver Tier
                         
                        Join Date: Dec 2007
                        Location: :noitacoL
                        Age: 20
                        Gender: Male
                        Nature: Naive
                        Posts: 1,032
                        Quote:
                        Originally Posted by xPhoenix View Post
                        I'm using JPAN's hacked Fire Red engine for my hack and scripting has been going well until I realized that due to my remapping that it has glitched up where the player goes when they "blackout/whiteout". I was wondering how I change this...it seems to be a scripting issue so I thought I'd ask it here. Is this just a matter of setting flags somewhere...?
                        Quote:
                        Originally Posted by 0m3GA ARS3NAL View Post
                        You have to have a level script in your Pokemon Centers (And Other healing locations)
                        that include the "sethealingplace" command.
                        An easy way you could do this is just remove the level script from a clean Fire Red rom, and insert it directly into your hacked one.
                        Actually, using JPAN's hacked engine mans that only using sethealingplace no longer works. You need to set a few variables to the map bank, X, and Y positions of your healing place. Look at the documentation and search for "sethealingplace" in it.
                        __________________


                        My other resources:
                        My Website
                        diegoisawesome's MEGA-HUGE XSE Scripting Tutorial
                        diegoisawesome's Miscellaneous Finds
                        The Ruins of Alph Puzzles
                        Diego's Miscellaneous Patches
                        GBA Intro Manager
                        The Secret Sauce: Triple-Layer Tiles
                          #2741    
                        Old December 24th, 2009 (4:50 PM). Edited December 24th, 2009 by Darthatron.
                        Darthatron's Avatar
                        Darthatron Darthatron is offline
                        巨大なトロール。
                        • Silver Tier
                         
                        Join Date: Jan 2006
                        Location: Melbourne, Australia
                        Age: 25
                        Gender: Male
                        Nature: Modest
                        Posts: 1,152
                        Quote:
                        Originally Posted by Hoshiko Aki View Post
                        Whats wrong with this script?

                        oncompilde:
                        Spoiler:
                        #dynamic 0x800000

                        #org @main
                        lock
                        faceplayer
                        checkflag 0x828
                        if 0x0 goto @pokémon
                        message @yespokémon 0x6
                        fadescreen 0x1
                        hidesprite 0x800F
                        setflag 0x1000
                        fadescreen 0x0

                        release
                        end

                        #org @pokémon
                        message @nopokémon 0x6
                        release
                        end

                        #org @nopokémon
                        = Isn't the nature wonderfull? Maby\nyou like to take a look at the\lbreeding farm

                        #org @yespokémon
                        = You have get a Gligar at the\nBreedig farm I see?



                        Can some buddy help me?
                        Simply put, your msgbox function points to something that isn't text, and your goto function points to text. I attempted to fix your script, though I'm not really sure what it was meant to do... Fixes are in bold.

                        Quote:
                        Originally Posted by lugiaguy View Post
                        Can someone help me? I'm having trouble with warp scripts. Here's one that I recently put together.

                        Code:
                        '---------------
                        #org 0x801240
                        lock
                        faceplayer
                        countpokemon
                        compare LASTRESULT 0x1
                        if 0x1 goto 0x880125C
                        release
                        end
                        '---------------
                        #org 0x80125C
                        warpmuted 0x18 0x58 0x0 0x0 0x0
                        release
                        end
                        Basically, if the player has 1 pokemon in his party, he warps, if he has more or less, he doesn't warp. I want the player to warp to (24,88) or (18,58) in hex. Unfortunately, when I use this script, the game just freezes.
                        Try that, it seemed to fix the problem when I had a similar one. Also, you didn't need a second 'lock' and 'faceplayer' after your 'goto'.

                        EDIT: Also, make sure you have a warp on the map you are warping to.
                        __________________
                        あなた は しきしゃ です
                        わたし は ばか です
                          #2742    
                        Old December 25th, 2009 (8:25 AM). Edited December 25th, 2009 by Tropical Sunlight.
                        Tropical Sunlight's Avatar
                        Tropical Sunlight Tropical Sunlight is offline
                        The Faltine
                           
                          Join Date: Mar 2008
                          Location: Slovenia
                          Age: 21
                          Gender: Male
                          Posts: 3,572
                          Send a message via Windows Live Messenger to Tropical Sunlight
                          ROM: FireRed
                          Scripted in: XSE
                          Script: Person
                          Actual script:
                          Spoiler:
                          #dynamic 0x000000

                          #org @start
                          lock
                          faceplayer
                          checkflag 0x1581
                          compare LASTRESULT 0x1
                          if 0x1 goto @1581set
                          checkflag 0x1580
                          compare LASTRESULT 0x1
                          if 0x1 goto @1580set
                          checkitem ITEM_MOOMOOMILK 2
                          compare LASTRESULT 0x1
                          if 0x1 goto @havethemilk
                          checkflag 0x1582
                          compare LASTRESULT 0x1
                          if 0x1 goto @1582set
                          msgbox @wygb MSG_NORMAL
                          setflag 0x1582
                          release
                          end

                          #org @1581set
                          msgbox @sell MSG_NORMAL
                          pokemart @pokemart
                          release
                          end

                          #org @1582set
                          msgbox @getbusy MSG_NORMAL
                          release
                          end

                          #org @havethemilk
                          removeitem ITEM_MOOMOOMILK 2
                          msgbox @gimmethemilk MSG_NORMAL
                          setflag 0x1580
                          release
                          end

                          #org @1580set
                          checkitem ITEM_GREPABERRY 1
                          compare LASTRESULT 0x1
                          if 0x1 goto @havetheberry
                          msgbox @youonly MSG_NORMAL
                          release
                          end

                          #org @havetheberry
                          removeitem ITEM_LEEMONBERRY 1
                          msgbox @gimmetheberry MSG_NORMAL
                          applymovement LASTTALKED @moveup
                          pause 0x100
                          applymovement LASTTALKED @movedown
                          msgbox @deserve MSG_NORMAL
                          giveitem ITEM_GOLDTEETH 1 MSG_OBTAIN
                          setflag 0x1581
                          release
                          end

                          #org @gimmethemilk
                          = RYAN: You got the MOOMOO MILK!\nGive it to me now.

                          #org @wygb
                          = RYAN: Hey, [player]!\nSo you're here eh?\pRYAN: If I can recall, you need a\nPIKA-CHEW, correct?\pRYAN: Ah, I'm sorry to disappoint\nyou, but I've ran out of the basic\lingredients for it.\pRYAN: I need [fr_blue]2 bottles of MOOMOO\nMILK and a LEEMON BERRY[black_fr].\pRYAN: Bring me those and I'll make\nyou a PIKA-CHEW free of charge.

                          #org @youonly
                          = RYAN: I only need a LEEMON BERRY\nnow.

                          #org @gimmethemilk
                          = RYAN: You got the LEEMON BERRY!\nGive it to me now.

                          #org @getbusy
                          = RYAN: Chop-chop, get busy!\pRemember, I need [fr_blue]2 bottles of\nMOOMOO MILK and a LEEMON BERRY[black_fr].

                          #org @deserve
                          = RYAN: Here you go, buddy!\nYou deserve it! Use it wisely.

                          #org @sell
                          = RYAN: Hello, dear friend! I have a\nspecial discount just for you!\pNow, what can I do for you?

                          #org @pokemart
                          #raw word ITEM_BERRYJUICE
                          #raw word ITEM_RARECANDY
                          #raw word 0x0

                          #org @moveup
                          #raw 0x11 0x13 0x11 0x60 0xFE

                          #org @movedown
                          #raw 0x10 0x12 0x10 0x61 0xFE

                          Don't mind the offset.

                          Compiled:
                          Spoiler:
                          #include stditems.rbh

                          ;---------------
                          #org 0x80F00B
                          lock
                          faceplayer
                          checkflag 0x1651
                          compare LASTRESULT 0x1
                          if 0x1 goto 0x880F055
                          checkflag 0x1580
                          compare LASTRESULT 0x1
                          if 0x1 goto 0x88104B8
                          checkitem ITEM_MOOMOOMILK 0x2
                          compare LASTRESULT 0x1
                          if 0x1 goto 0x880FFE0
                          checkflag 0x1852
                          compare LASTRESULT 0x1
                          if 0x1 goto 0x880F065
                          msgbox 0x8810CEC MSG_NORMAL ;"RYAN: Hey, [player]!\nSo you're he..."
                          setflag 0x1852
                          release
                          end

                          ;---------------
                          #org 0x80F055
                          msgbox 0x8810F27 MSG_NORMAL ;"RYAN: Hello, dear friend! I have a..."
                          pokemart 0x8810F87
                          release
                          end

                          ;---------------
                          #org 0x8104B8
                          checkitem ITEM_GREPABERRY 0x1
                          compare LASTRESULT 0x1
                          if 0x1 goto 0x88104D3
                          msgbox 0x8810E28 MSG_NORMAL ;"RYAN: I only need a LEEMON BERRY\n..."
                          release
                          end

                          ;---------------
                          #org 0x80FFE0
                          removeitem ITEM_MOOMOOMILK 0x2
                          msgbox 0x881050B MSG_NORMAL ;"RYAN: You got the MOOMOO MILK!\nGi..."
                          setflag 0x1580
                          release
                          end

                          ;---------------
                          #org 0x80F065
                          msgbox 0x8810E85 MSG_NORMAL ;"RYAN: Chop-chop, get busy!\pRememb..."
                          release
                          end

                          ;---------------
                          #org 0x8104D3
                          removeitem ITEM_GREPABERRY 0x1
                          msgbox 0x8810E50 MSG_NORMAL ;"RYAN: You got the LEEMON BERRY!\nG..."
                          applymovement LASTTALKED 0x8810F8E
                          pause 0x100
                          applymovement LASTTALKED 0x8810F94
                          msgbox 0x8810EEC MSG_NORMAL ;"RYAN: Here you go, buddy!\nYou des..."
                          giveitem ITEM_GOLDTEETH 0x1 MSG_OBTAIN
                          setflag 0x1651
                          release
                          end

                          ;---------
                          ; Strings
                          ;---------
                          #org 0x810CEC
                          = RYAN: Hey, [player]!\nSo you're here eh?\pRYAN: If I can recall, you need a\nPIKA-CHEW, correct?\pRYAN: Ah, I'm sorry to disappoint\nyou, but I've ran out of the basic\lingredients for it.\pRYAN: I need [blue_fr]2 bottles of MOOMOO\nMILK and a LEEMON BERRY[red_fr].\pRYAN: Bring me those and I'll make\nyou a PIKA-CHEW free of charge.

                          #org 0x810F27
                          = RYAN: Hello, dear friend! I have a\nspecial discount just for you!\pNow, what can I do for you?

                          #org 0x810E28
                          = RYAN: I only need a LEEMON BERRY\nnow.

                          #org 0x81050B
                          = RYAN: You got the MOOMOO MILK!\nGive it to me now.

                          #org 0x810E85
                          = RYAN: Chop-chop, get busy!\pRemember, I need fr blue 2 bottles of\nMOOMOO MILK and a LEEMON BERRY[black_fr].

                          #org 0x810E50
                          = RYAN: You got the LEEMON BERRY!\nGive it to me now.

                          #org 0x810EEC
                          = RYAN: Here you go, buddy!\nYou deserve it! Use it wisely.

                          ;-----------
                          ; Movements
                          ;-----------
                          #org 0x810F8E
                          #raw 0x11 ;Step Up (Normal)
                          #raw 0x13 ;Step Right (Normal)
                          #raw 0x11 ;Step Up (Normal)
                          #raw 0x60 ;Hide
                          #raw 0xFE ;End of Movements
                          #org 0x810F94
                          #raw 0x10 ;Step Down (Normal)
                          #raw 0x12 ;Step Left (Normal)
                          #raw 0x10 ;Step Down (Normal)
                          #raw 0x61 ;Show
                          #raw 0xFE ;End of Movements

                          ;-----------
                          ; MartItems
                          ;-----------
                          #org 0x810F87
                          #raw word ITEM_BERRYJUICE
                          #raw word ITEM_RARECANDY
                          #raw word ITEM_NONE
                          __________________
                            #2743    
                          Old December 25th, 2009 (8:38 AM).
                          Pokepal17's Avatar
                          Pokepal17 Pokepal17 is offline
                          More cowbell~
                          • Silver Tier
                           
                          Join Date: Oct 2008
                          Location: Steeltown
                          Age: 22
                          Gender: Male
                          Nature: Modest
                          Posts: 1,511
                          Quote:
                          Originally Posted by H2O Turquoise View Post
                          ROM: FireRed
                          Scripted in: XSE
                          Script: Person
                          Actual script:
                          Spoiler:
                          #dynamic 0x000000

                          #org @start
                          lock
                          faceplayer
                          checkflag 0x1581
                          if 0x1 goto @1581set
                          checkflag 0x1580
                          if 0x1 goto @1580set
                          checkitem ITEM_MOOMOOMILK 2
                          compare LASTRESULT 0x1
                          if 0x1 goto @havethemilk
                          checkflag 0x1582
                          if 0x1 goto @1582set
                          msgbox @wygb MSG_NORMAL
                          setflag 0x1852
                          release
                          end

                          #org @1581set
                          msgbox @sell MSG_NORMAL
                          pokemart @pokemart
                          release
                          end

                          #org @1582set
                          msgbox @getbusy MSG_NORMAL
                          release
                          end

                          #org @havethemilk
                          removeitem ITEM_MOOMOOMILK 2
                          msgbox @gimmethemilk MSG_NORMAL
                          setflag 0x1580
                          release
                          end

                          #org @1580set
                          checkitem ITEM_GREPABERRY 1
                          compare LASTRESULT 0x1
                          if 0x1 goto @havetheberry
                          msgbox @youonly MSG_NORMAL
                          release
                          end

                          #org @havetheberry
                          removeitem ITEM_LEEMONBERRY 1
                          msgbox @gimmetheberry MSG_NORMAL
                          applymovement LASTTALKED @moveup
                          pause 0x100
                          applymovement LASTTALKED @movedown
                          msgbox @deserve MSG_NORMAL
                          giveitem ITEM_GOLDTEETH 1 MSG_OBTAIN
                          setflag 0x1581
                          release
                          end

                          #org @gimmethemilk
                          = RYAN: You got the MOOMOO MILK!\nGive it to me now.

                          #org @wygb
                          = RYAN: Hey, [player]!\nSo you're here eh?\pRYAN: If I can recall, you need a\nPIKA-CHEW, correct?\pRYAN: Ah, I'm sorry to disappoint\nyou, but I've ran out of the basic\lingredients for it.\pRYAN: I need [fr_blue]2 bottles of MOOMOO\nMILK and a LEEMON BERRY[black_fr].\pRYAN: Bring me those and I'll make\nyou a PIKA-CHEW free of charge.

                          #org @youonly
                          = RYAN: I only need a LEEMON BERRY\nnow.

                          #org @gimmethemilk
                          = RYAN: You got the LEEMON BERRY!\nGive it to me now.

                          #org @getbusy
                          = RYAN: Chop-chop, get busy!\pRemember, I need [fr_blue]2 bottles of\nMOOMOO MILK and a LEEMON BERRY[black_fr].

                          #org @deserve
                          = RYAN: Here you go, buddy!\nYou deserve it! Use it wisely.

                          #org @sell
                          = RYAN: Hello, dear friend! I have a\nspecial discount just for you!\pNow, what can I do for you?

                          #org @pokemart
                          #raw word ITEM_BERRYJUICE
                          #raw word ITEM_RARECANDY
                          #raw word 0x0

                          #org @moveup
                          #org 0x11 0x13 0x11 0x60 0xFE

                          #org @movedown
                          #org 0y10 0x12 0x10 0x61 0xFE

                          Don't mind the offset.
                          You didn't tell us the problem. :D

                          Anyway, I think I know.

                          Checkflag doesn't use a compare.

                          So it would be:

                          Checkflag 0xflag
                          if 0x1 goto @pointer.
                          __________________
                          Pokémon Stardrop
                            #2744    
                          Old December 25th, 2009 (10:29 AM).
                          Tropical Sunlight's Avatar
                          Tropical Sunlight Tropical Sunlight is offline
                          The Faltine
                             
                            Join Date: Mar 2008
                            Location: Slovenia
                            Age: 21
                            Gender: Male
                            Posts: 3,572
                            Send a message via Windows Live Messenger to Tropical Sunlight
                            Quote:
                            Originally Posted by Pokepal17 View Post
                            You didn't tell us the problem. :D

                            Anyway, I think I know.

                            Checkflag doesn't use a compare.

                            So it would be:

                            Checkflag 0xflag
                            if 0x1 goto @pointer.
                            I know, that's what I used.

                            Major flag problems. I set one, then another one sets itself...
                            __________________
                              #2745    
                            Old December 25th, 2009 (11:16 AM). Edited December 25th, 2009 by NarutoActor.
                            NarutoActor's Avatar
                            NarutoActor NarutoActor is offline
                            The rocks cry out to me
                            • Silver Tier
                             
                            Join Date: Jan 2009
                            Location: Brooklyn/Marlboro
                            Age: 23
                            Gender: Female
                            Nature: Bashful
                            Posts: 1,979
                            Send a message via AIM to NarutoActor Send a message via Windows Live Messenger to NarutoActor
                            Okay well I have a level script problem (again XD level scripts give me such headaches)

                            The Problem is the level script with Professor Oke Letting you pick you pokemon. Right when it starts the screen just goes black and stays black. The Other level scripts work but not this one. I tried re-pointing the offsets but no go.

                            Spoiler:

                            '---------------
                            #org 0x71ABE0
                            #raw 0x3
                            #raw pointer 0x8720D34
                            #raw 0x2
                            #raw pointer 0x871AE80
                            #raw 0x2
                            #raw pointer 0x8168FF0
                            #raw 0x0

                            '---------------
                            #org 0x71AE80
                            #raw word 0x5001
                            #raw word 0x0
                            #raw pointer 0x871C7F2
                            #raw word 0x0

                            '---------------
                            #org 0x168FF0
                            #raw word 0x4055
                            #raw word 0x1
                            #raw pointer 0x816923E
                            #raw word 0x0

                            '---------------
                            #org 0x720D34
                            setflag 0x2CF
                            compare 0x5001 0x1
                            if 0x1 goto 0x871DD9E
                            compare 0x4055 0x1
                            if 0x1 call 0x8168FC6
                            compare 0x4055 0x7
                            if 0x1 call 0x8168FD5
                            compare 0x4055 0x8
                            if 0x1 call 0x8168FC0
                            checkflag 0x247
                            if 0x1 call 0x8168FBC
                            end

                            '---------------
                            #org 0x71C7F2
                            lock
                            special 0x113
                            applymovement MOVE_CAMERA 0x871DA28
                            waitmovement 0x0
                            special 0x114
                            applymovement 0x8 0x872093E
                            waitmovement 0x0
                            msgbox 0x871CCDC MSG_NORMAL '"Wah, you scared me, haven't you\ne..."
                            special 0x113
                            applymovement MOVE_CAMERA 0x871DA35
                            waitmovement 0x0
                            special 0x114
                            applymovement MOVE_PLAYER 0x871DA3F
                            waitmovement 0x0
                            applymovement 0x8 0x871DA45
                            waitmovement 0x0
                            msgbox 0x871D3FC MSG_NORMAL '"Oh, your here for Professor Layton..."
                            applymovement 0x8 0x872093C
                            waitmovement 0x0
                            msgbox 0x871D9D4 MSG_NORMAL '"I got an idea you go look for him...."
                            applymovement MOVE_PLAYER 0x8720942
                            waitmovement 0x0
                            setvar 0x5001 0x0
                            warp 0x0 0x5 0x2 0x3C 0xA
                            end

                            '---------------
                            #org 0x16923E
                            lockall
                            textcolor 0x0
                            applymovement 0x4 0x81692B0
                            waitmovement 0x0
                            hidesprite 0x4
                            movesprite2 0x4 0x6 0x3
                            spritebehave 0x4 0x8
                            clearflag 0x2B
                            applymovement MOVE_PLAYER 0x81692B7
                            waitmovement 0x0
                            applymovement 0x8 0x81A75E9
                            waitmovement 0x0
                            clearflag 0x4001
                            playsong2 0x0
                            fadedefault
                            msgbox 0x818DC94 MSG_KEEPOPEN '"[rival]: Gramps!\nI'm fed up with ..."
                            closeonkeypress
                            pause 0x3C
                            msgbox 0x818DFBC MSG_KEEPOPEN '"OAK: [rival]?\nLet me think[.]\pOh..."
                            closeonkeypress
                            pause 0x1E
                            applymovement 0x8 0x81692C0
                            waitmovement 0x0
                            msgbox 0x818DCB9 MSG_KEEPOPEN '"[rival]: Hey! Gramps! No fair!\nWh..."
                            msgbox 0x818E0EA MSG_KEEPOPEN '"OAK: Be patient, [rival].\nYou can..."
                            setvar 0x4055 0x2
                            releaseall
                            end

                            '---------------
                            #org 0x71DD9E
                            lockall
                            textcolor 0x0
                            applymovement 0x4 0x872051E
                            waitmovement 0x0
                            hidesprite 0x4
                            movesprite2 0x4 0x6 0x3
                            spritebehave 0x4 0x8
                            clearflag 0x2B
                            applymovement MOVE_PLAYER 0x8720526
                            waitmovement 0x0
                            applymovement 0x8 0x8720530
                            waitmovement 0x0
                            clearflag 0x4001
                            playsong2 0x0
                            fadedefault
                            msgbox 0x871DE6F MSG_KEEPOPEN '"[rival]: Gramps!\nI'm fed up with ..."
                            closeonkeypress
                            pause 0x3C
                            msgbox 0x871FD9C MSG_KEEPOPEN '"OAK: [rival]?\nLet me think[.]\pOh..."
                            closeonkeypress
                            pause 0x1E
                            applymovement 0x8 0x8720533
                            waitmovement 0x0
                            msgbox 0x871FF10 MSG_KEEPOPEN '"[rival]: Hey! Gramps! No fair!\nWh..."
                            msgbox 0x87204F0 MSG_KEEPOPEN '"OAK: Be patient, [rival].\nYou can..."
                            setvar 0x4055 0x2
                            releaseall
                            end

                            '---------------
                            #org 0x168FC6
                            movesprite2 0x4 0x6 0xB
                            spritebehave 0x4 0x7
                            playsong2 0x12E
                            return

                            '---------------
                            #org 0x168FD5
                            movesprite2 0x4 0x6 0xB
                            spritebehave 0x4 0x7
                            return

                            '---------------
                            #org 0x168FC0
                            setvar 0x4055 0x9
                            return

                            '---------------
                            #org 0x168FBC
                            setflag 0x24F
                            return


                            '---------
                            ' Strings
                            '---------
                            #org 0x71CCDC
                            = Wah, you scared me, haven't you\never herd of knocking?

                            #org 0x71D3FC
                            = Oh, your here for Professor Layton\ntoo?\pI talked with his secretary, and\nhe said that Professor Layton \ljust steped out for a short break.\pI wonder where he went.

                            #org 0x71D9D4
                            = I got an idea you go look for him.\p[green_fr]you have to get some groycers\nanyway right.

                            #org 0x18DC94
                            = [rival]: Gramps!\nI'm fed up with waiting!

                            #org 0x18DFBC
                            = OAK: [rival]?\nLet me think[.]\pOh, that's right, I told you to\ncome! Just wait!\pHere, [player].\pThere are three POKéMON here.\pHaha!\pThe POKéMON are held inside\nthese POKé BALLS.\pWhen I was young, I was a serious\nPOKéMON TRAINER.\pBut now, in my old age, I have\nonly these three left.\pYou can have one.\nGo on, choose!

                            #org 0x18DCB9
                            = [rival]: Hey! Gramps! No fair!\nWhat about me?

                            #org 0x18E0EA
                            = OAK: Be patient, [rival].\nYou can have one, too!

                            #org 0x71DE6F
                            = [rival]: Gramps!\nI'm fed up with waiting!

                            #org 0x71FD9C
                            = OAK: [rival]?\nLet me think[.]\pOh, that's right, I told you to\ncome! Just wait!\pHere, [player].\pThere are three POKéMON here.\pHaha!\pThe POKéMON are held inside\nthese POKé BALLS.\pWhen I was young, I was a serious\nPOKéMON TRAINER.\pBut now, in my old age, I have\nonly these three left.\pYou can have one.\nGo on, choose!

                            #org 0x71FF10
                            = [rival]: Hey! Gramps! No fair!\nWhat about me?

                            #org 0x7204F0
                            = OAK: Be patient, [rival].\nYou can have one, too!


                            '-----------
                            ' Movements
                            '-----------
                            #org 0x71DA28
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0xFE 'End of Movements

                            #org 0x72093E
                            #raw 0x52 'Jump in Place (Facing Down)
                            #raw 0xFE 'End of Movements

                            #org 0x71DA35
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0xFE 'End of Movements

                            #org 0x71DA3F
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0xFE 'End of Movements

                            #org 0x71DA45
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x13 'Step Right (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0xFE 'End of Movements

                            #org 0x72093C
                            #raw 0x62 'Exclamation Mark (!)
                            #raw 0xFE 'End of Movements

                            #org 0x720942
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0xFE 'End of Movements

                            #org 0x1692B0
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0xFE 'End of Movements

                            #org 0x1692B7
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0xFE 'End of Movements

                            #org 0x1A75E9
                            #raw 0x2E 'Face Up (Delayed)
                            #raw 0xFE 'End of Movements

                            #org 0x1692C0
                            #raw 0x26 'Step on the Spot Up (Faster)
                            #raw 0x26 'Step on the Spot Up (Faster)
                            #raw 0xFE 'End of Movements

                            #org 0x72051E
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0xFE 'End of Movements

                            #org 0x720526
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0xFE 'End of Movements

                            #org 0x720530
                            #raw 0x2E 'Face Up (Delayed)
                            #raw 0xFE 'End of Movements

                            #org 0x720533
                            #raw 0x26 'Step on the Spot Up (Faster)
                            #raw 0x26 'Step on the Spot Up (Faster)
                            #raw 0xFE 'End of Movements
                            __________________
                            ~There are those people who understand hex, F the rest
                              #2746    
                            Old December 25th, 2009 (11:28 AM).
                            Diegoisawesome's Avatar
                            Diegoisawesome Diegoisawesome is offline
                            Oh god the bees
                            • Silver Tier
                             
                            Join Date: Dec 2007
                            Location: :noitacoL
                            Age: 20
                            Gender: Male
                            Nature: Naive
                            Posts: 1,032
                            Quote:
                            Originally Posted by NarutoActor View Post
                            Okay well I have a level script problem (again XD level scripts give me such headaches)

                            The Problem is the level script with Professor Oke Letting you pick you pokemon. Right when it starts the screen just goes black and stays black. The Other level scripts work but not this one. I tried re-pointing the offsets but no go.

                            Spoiler:

                            '---------------
                            #org 0x71ABE0
                            #raw 0x3
                            #raw pointer 0x8720D34
                            #raw 0x2
                            #raw pointer 0x871AE80
                            #raw 0x2
                            #raw pointer 0x8168FF0
                            #raw 0x0

                            '---------------
                            #org 0x71AE80
                            #raw word 0x5001
                            #raw word 0x0
                            #raw pointer 0x871C7F2
                            #raw word 0x0

                            '---------------
                            #org 0x168FF0
                            #raw word 0x4055
                            #raw word 0x1
                            #raw pointer 0x816923E
                            #raw word 0x4055

                            '---------------
                            #org 0x720D34
                            setflag 0x2CF
                            compare 0x5001 0x1
                            if 0x1 goto 0x871DD9E
                            compare 0x4055 0x1
                            if 0x1 call 0x8168FC6
                            compare 0x4055 0x7
                            if 0x1 call 0x8168FD5
                            compare 0x4055 0x8
                            if 0x1 call 0x8168FC0
                            checkflag 0x247
                            if 0x1 call 0x8168FBC
                            end

                            '---------------
                            #org 0x71C7F2
                            lock
                            special 0x113
                            applymovement MOVE_CAMERA 0x871DA28
                            waitmovement 0x0
                            special 0x114
                            applymovement 0x8 0x872093E
                            waitmovement 0x0
                            msgbox 0x871CCDC MSG_NORMAL '"Wah, you scared me, haven't you\ne..."
                            special 0x113
                            applymovement MOVE_CAMERA 0x871DA35
                            waitmovement 0x0
                            special 0x114
                            applymovement MOVE_PLAYER 0x871DA3F
                            waitmovement 0x0
                            applymovement 0x8 0x871DA45
                            waitmovement 0x0
                            msgbox 0x871D3FC MSG_NORMAL '"Oh, your here for Professor Layton..."
                            applymovement 0x8 0x872093C
                            waitmovement 0x0
                            msgbox 0x871D9D4 MSG_NORMAL '"I got an idea you go look for him...."
                            applymovement MOVE_PLAYER 0x8720942
                            waitmovement 0x0
                            setvar 0x5001 0x0
                            warp 0x0 0x5 0x2 0x3C 0xA
                            end

                            '---------------
                            #org 0x16923E
                            lockall
                            textcolor 0x0
                            applymovement 0x4 0x81692B0
                            waitmovement 0x0
                            hidesprite 0x4
                            movesprite2 0x4 0x6 0x3
                            spritebehave 0x4 0x8
                            clearflag 0x2B
                            applymovement MOVE_PLAYER 0x81692B7
                            waitmovement 0x0
                            applymovement 0x8 0x81A75E9
                            waitmovement 0x0
                            clearflag 0x4001
                            playsong2 0x0
                            fadedefault
                            msgbox 0x818DC94 MSG_KEEPOPEN '"[rival]: Gramps!\nI'm fed up with ..."
                            closeonkeypress
                            pause 0x3C
                            msgbox 0x818DFBC MSG_KEEPOPEN '"OAK: [rival]?\nLet me think[.]\pOh..."
                            closeonkeypress
                            pause 0x1E
                            applymovement 0x8 0x81692C0
                            waitmovement 0x0
                            msgbox 0x818DCB9 MSG_KEEPOPEN '"[rival]: Hey! Gramps! No fair!\nWh..."
                            msgbox 0x818E0EA MSG_KEEPOPEN '"OAK: Be patient, [rival].\nYou can..."
                            setvar 0x4055 0x2
                            releaseall
                            end

                            '---------------
                            #org 0x71DD9E
                            lockall
                            textcolor 0x0
                            applymovement 0x4 0x872051E
                            waitmovement 0x0
                            hidesprite 0x4
                            movesprite2 0x4 0x6 0x3
                            spritebehave 0x4 0x8
                            clearflag 0x2B
                            applymovement MOVE_PLAYER 0x8720526
                            waitmovement 0x0
                            applymovement 0x8 0x8720530
                            waitmovement 0x0
                            clearflag 0x4001
                            playsong2 0x0
                            fadedefault
                            msgbox 0x871DE6F MSG_KEEPOPEN '"[rival]: Gramps!\nI'm fed up with ..."
                            closeonkeypress
                            pause 0x3C
                            msgbox 0x871FD9C MSG_KEEPOPEN '"OAK: [rival]?\nLet me think[.]\pOh..."
                            closeonkeypress
                            pause 0x1E
                            applymovement 0x8 0x8720533
                            waitmovement 0x0
                            msgbox 0x871FF10 MSG_KEEPOPEN '"[rival]: Hey! Gramps! No fair!\nWh..."
                            msgbox 0x87204F0 MSG_KEEPOPEN '"OAK: Be patient, [rival].\nYou can..."
                            setvar 0x4055 0x2
                            releaseall
                            end

                            '---------------
                            #org 0x168FC6
                            movesprite2 0x4 0x6 0xB
                            spritebehave 0x4 0x7
                            playsong2 0x12E
                            return

                            '---------------
                            #org 0x168FD5
                            movesprite2 0x4 0x6 0xB
                            spritebehave 0x4 0x7
                            return

                            '---------------
                            #org 0x168FC0
                            setvar 0x4055 0x9
                            return

                            '---------------
                            #org 0x168FBC
                            setflag 0x24F
                            return


                            '---------
                            ' Strings
                            '---------
                            #org 0x71CCDC
                            = Wah, you scared me, haven't you\never herd of knocking?

                            #org 0x71D3FC
                            = Oh, your here for Professor Layton\ntoo?\pI talked with his secretary, and\nhe said that Professor Layton \ljust steped out for a short break.\pI wonder where he went.

                            #org 0x71D9D4
                            = I got an idea you go look for him.\p[green_fr]you have to get some groycers\nanyway right.

                            #org 0x18DC94
                            = [rival]: Gramps!\nI'm fed up with waiting!

                            #org 0x18DFBC
                            = OAK: [rival]?\nLet me think[.]\pOh, that's right, I told you to\ncome! Just wait!\pHere, [player].\pThere are three POKéMON here.\pHaha!\pThe POKéMON are held inside\nthese POKé BALLS.\pWhen I was young, I was a serious\nPOKéMON TRAINER.\pBut now, in my old age, I have\nonly these three left.\pYou can have one.\nGo on, choose!

                            #org 0x18DCB9
                            = [rival]: Hey! Gramps! No fair!\nWhat about me?

                            #org 0x18E0EA
                            = OAK: Be patient, [rival].\nYou can have one, too!

                            #org 0x71DE6F
                            = [rival]: Gramps!\nI'm fed up with waiting!

                            #org 0x71FD9C
                            = OAK: [rival]?\nLet me think[.]\pOh, that's right, I told you to\ncome! Just wait!\pHere, [player].\pThere are three POKéMON here.\pHaha!\pThe POKéMON are held inside\nthese POKé BALLS.\pWhen I was young, I was a serious\nPOKéMON TRAINER.\pBut now, in my old age, I have\nonly these three left.\pYou can have one.\nGo on, choose!

                            #org 0x71FF10
                            = [rival]: Hey! Gramps! No fair!\nWhat about me?

                            #org 0x7204F0
                            = OAK: Be patient, [rival].\nYou can have one, too!


                            '-----------
                            ' Movements
                            '-----------
                            #org 0x71DA28
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0xFE 'End of Movements

                            #org 0x72093E
                            #raw 0x52 'Jump in Place (Facing Down)
                            #raw 0xFE 'End of Movements

                            #org 0x71DA35
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0xFE 'End of Movements

                            #org 0x71DA3F
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0xFE 'End of Movements

                            #org 0x71DA45
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x13 'Step Right (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0xFE 'End of Movements

                            #org 0x72093C
                            #raw 0x62 'Exclamation Mark (!)
                            #raw 0xFE 'End of Movements

                            #org 0x720942
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0xFE 'End of Movements

                            #org 0x1692B0
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0xFE 'End of Movements

                            #org 0x1692B7
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0xFE 'End of Movements

                            #org 0x1A75E9
                            #raw 0x2E 'Face Up (Delayed)
                            #raw 0xFE 'End of Movements

                            #org 0x1692C0
                            #raw 0x26 'Step on the Spot Up (Faster)
                            #raw 0x26 'Step on the Spot Up (Faster)
                            #raw 0xFE 'End of Movements

                            #org 0x72051E
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0xFE 'End of Movements

                            #org 0x720526
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0xFE 'End of Movements

                            #org 0x720530
                            #raw 0x2E 'Face Up (Delayed)
                            #raw 0xFE 'End of Movements

                            #org 0x720533
                            #raw 0x26 'Step on the Spot Up (Faster)
                            #raw 0x26 'Step on the Spot Up (Faster)
                            #raw 0xFE 'End of Movements
                            Most likely you've resized the map. In this case, in A-Map while the map you're having problems with is loaded, go to File>Map>Insert map and in the top row, select the same map bank and map number and insert it.
                            __________________


                            My other resources:
                            My Website
                            diegoisawesome's MEGA-HUGE XSE Scripting Tutorial
                            diegoisawesome's Miscellaneous Finds
                            The Ruins of Alph Puzzles
                            Diego's Miscellaneous Patches
                            GBA Intro Manager
                            The Secret Sauce: Triple-Layer Tiles
                              #2747    
                            Old December 25th, 2009 (11:39 AM).
                            NarutoActor's Avatar
                            NarutoActor NarutoActor is offline
                            The rocks cry out to me
                            • Silver Tier
                             
                            Join Date: Jan 2009
                            Location: Brooklyn/Marlboro
                            Age: 23
                            Gender: Female
                            Nature: Bashful
                            Posts: 1,979
                            Send a message via AIM to NarutoActor Send a message via Windows Live Messenger to NarutoActor
                            Yeah I thought that was the problem at first, but like I said there is an other level script before that one which dose work. But I will try it any way.

                            EDIT: yeah I did that and still black screen. I think it has to do more with the script then the map.
                            __________________
                            ~There are those people who understand hex, F the rest
                              #2748    
                            Old December 25th, 2009 (11:47 AM).
                            Diegoisawesome's Avatar
                            Diegoisawesome Diegoisawesome is offline
                            Oh god the bees
                            • Silver Tier
                             
                            Join Date: Dec 2007
                            Location: :noitacoL
                            Age: 20
                            Gender: Male
                            Nature: Naive
                            Posts: 1,032
                            Quote:
                            Originally Posted by NarutoActor View Post
                            Okay well I have a level script problem (again XD level scripts give me such headaches)

                            The Problem is the level script with Professor Oke Letting you pick you pokemon. Right when it starts the screen just goes black and stays black. The Other level scripts work but not this one. I tried re-pointing the offsets but no go.

                            Spoiler:

                            '---------------
                            #org 0x71ABE0
                            #raw 0x3
                            #raw pointer 0x8720D34
                            #raw 0x2
                            #raw pointer 0x871AE80
                            #raw 0x2
                            #raw pointer 0x8168FF0
                            #raw 0x0

                            '---------------
                            #org 0x71AE80
                            #raw word 0x5001
                            #raw word 0x0
                            #raw pointer 0x871C7F2
                            #raw word 0x0

                            '---------------
                            #org 0x168FF0
                            #raw word 0x4055
                            #raw word 0x1
                            #raw pointer 0x816923E
                            #raw word 0x4055

                            '---------------
                            #org 0x720D34
                            setflag 0x2CF
                            compare 0x5001 0x1
                            if 0x1 goto 0x871DD9E
                            compare 0x4055 0x1
                            if 0x1 call 0x8168FC6
                            compare 0x4055 0x7
                            if 0x1 call 0x8168FD5
                            compare 0x4055 0x8
                            if 0x1 call 0x8168FC0
                            checkflag 0x247
                            if 0x1 call 0x8168FBC
                            end

                            '---------------
                            #org 0x71C7F2
                            lock
                            special 0x113
                            applymovement MOVE_CAMERA 0x871DA28
                            waitmovement 0x0
                            special 0x114
                            applymovement 0x8 0x872093E
                            waitmovement 0x0
                            msgbox 0x871CCDC MSG_NORMAL '"Wah, you scared me, haven't you\ne..."
                            special 0x113
                            applymovement MOVE_CAMERA 0x871DA35
                            waitmovement 0x0
                            special 0x114
                            applymovement MOVE_PLAYER 0x871DA3F
                            waitmovement 0x0
                            applymovement 0x8 0x871DA45
                            waitmovement 0x0
                            msgbox 0x871D3FC MSG_NORMAL '"Oh, your here for Professor Layton..."
                            applymovement 0x8 0x872093C
                            waitmovement 0x0
                            msgbox 0x871D9D4 MSG_NORMAL '"I got an idea you go look for him...."
                            applymovement MOVE_PLAYER 0x8720942
                            waitmovement 0x0
                            setvar 0x5001 0x0
                            warp 0x0 0x5 0x2 0x3C 0xA
                            end

                            '---------------
                            #org 0x16923E
                            lockall
                            textcolor 0x0
                            applymovement 0x4 0x81692B0
                            waitmovement 0x0
                            hidesprite 0x4
                            movesprite2 0x4 0x6 0x3
                            spritebehave 0x4 0x8
                            clearflag 0x2B
                            applymovement MOVE_PLAYER 0x81692B7
                            waitmovement 0x0
                            applymovement 0x8 0x81A75E9
                            waitmovement 0x0
                            clearflag 0x4001
                            playsong2 0x0
                            fadedefault
                            msgbox 0x818DC94 MSG_KEEPOPEN '"[rival]: Gramps!\nI'm fed up with ..."
                            closeonkeypress
                            pause 0x3C
                            msgbox 0x818DFBC MSG_KEEPOPEN '"OAK: [rival]?\nLet me think[.]\pOh..."
                            closeonkeypress
                            pause 0x1E
                            applymovement 0x8 0x81692C0
                            waitmovement 0x0
                            msgbox 0x818DCB9 MSG_KEEPOPEN '"[rival]: Hey! Gramps! No fair!\nWh..."
                            msgbox 0x818E0EA MSG_KEEPOPEN '"OAK: Be patient, [rival].\nYou can..."
                            setvar 0x4055 0x2
                            releaseall
                            end

                            '---------------
                            #org 0x71DD9E
                            lockall
                            textcolor 0x0
                            applymovement 0x4 0x872051E
                            waitmovement 0x0
                            hidesprite 0x4
                            movesprite2 0x4 0x6 0x3
                            spritebehave 0x4 0x8
                            clearflag 0x2B
                            applymovement MOVE_PLAYER 0x8720526
                            waitmovement 0x0
                            applymovement 0x8 0x8720530
                            waitmovement 0x0
                            clearflag 0x4001
                            playsong2 0x0
                            fadedefault
                            msgbox 0x871DE6F MSG_KEEPOPEN '"[rival]: Gramps!\nI'm fed up with ..."
                            closeonkeypress
                            pause 0x3C
                            msgbox 0x871FD9C MSG_KEEPOPEN '"OAK: [rival]?\nLet me think[.]\pOh..."
                            closeonkeypress
                            pause 0x1E
                            applymovement 0x8 0x8720533
                            waitmovement 0x0
                            msgbox 0x871FF10 MSG_KEEPOPEN '"[rival]: Hey! Gramps! No fair!\nWh..."
                            msgbox 0x87204F0 MSG_KEEPOPEN '"OAK: Be patient, [rival].\nYou can..."
                            setvar 0x4055 0x2
                            releaseall
                            end

                            '---------------
                            #org 0x168FC6
                            movesprite2 0x4 0x6 0xB
                            spritebehave 0x4 0x7
                            playsong2 0x12E
                            return

                            '---------------
                            #org 0x168FD5
                            movesprite2 0x4 0x6 0xB
                            spritebehave 0x4 0x7
                            return

                            '---------------
                            #org 0x168FC0
                            setvar 0x4055 0x9
                            return

                            '---------------
                            #org 0x168FBC
                            setflag 0x24F
                            return


                            '---------
                            ' Strings
                            '---------
                            #org 0x71CCDC
                            = Wah, you scared me, haven't you\never herd of knocking?

                            #org 0x71D3FC
                            = Oh, your here for Professor Layton\ntoo?\pI talked with his secretary, and\nhe said that Professor Layton \ljust steped out for a short break.\pI wonder where he went.

                            #org 0x71D9D4
                            = I got an idea you go look for him.\p[green_fr]you have to get some groycers\nanyway right.

                            #org 0x18DC94
                            = [rival]: Gramps!\nI'm fed up with waiting!

                            #org 0x18DFBC
                            = OAK: [rival]?\nLet me think[.]\pOh, that's right, I told you to\ncome! Just wait!\pHere, [player].\pThere are three POKéMON here.\pHaha!\pThe POKéMON are held inside\nthese POKé BALLS.\pWhen I was young, I was a serious\nPOKéMON TRAINER.\pBut now, in my old age, I have\nonly these three left.\pYou can have one.\nGo on, choose!

                            #org 0x18DCB9
                            = [rival]: Hey! Gramps! No fair!\nWhat about me?

                            #org 0x18E0EA
                            = OAK: Be patient, [rival].\nYou can have one, too!

                            #org 0x71DE6F
                            = [rival]: Gramps!\nI'm fed up with waiting!

                            #org 0x71FD9C
                            = OAK: [rival]?\nLet me think[.]\pOh, that's right, I told you to\ncome! Just wait!\pHere, [player].\pThere are three POKéMON here.\pHaha!\pThe POKéMON are held inside\nthese POKé BALLS.\pWhen I was young, I was a serious\nPOKéMON TRAINER.\pBut now, in my old age, I have\nonly these three left.\pYou can have one.\nGo on, choose!

                            #org 0x71FF10
                            = [rival]: Hey! Gramps! No fair!\nWhat about me?

                            #org 0x7204F0
                            = OAK: Be patient, [rival].\nYou can have one, too!


                            '-----------
                            ' Movements
                            '-----------
                            #org 0x71DA28
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0xFE 'End of Movements

                            #org 0x72093E
                            #raw 0x52 'Jump in Place (Facing Down)
                            #raw 0xFE 'End of Movements

                            #org 0x71DA35
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0xFE 'End of Movements

                            #org 0x71DA3F
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0xFE 'End of Movements

                            #org 0x71DA45
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x13 'Step Right (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0xFE 'End of Movements

                            #org 0x72093C
                            #raw 0x62 'Exclamation Mark (!)
                            #raw 0xFE 'End of Movements

                            #org 0x720942
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0x10 'Step Down (Normal)
                            #raw 0xFE 'End of Movements

                            #org 0x1692B0
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0xFE 'End of Movements

                            #org 0x1692B7
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0xFE 'End of Movements

                            #org 0x1A75E9
                            #raw 0x2E 'Face Up (Delayed)
                            #raw 0xFE 'End of Movements

                            #org 0x1692C0
                            #raw 0x26 'Step on the Spot Up (Faster)
                            #raw 0x26 'Step on the Spot Up (Faster)
                            #raw 0xFE 'End of Movements

                            #org 0x72051E
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0xFE 'End of Movements

                            #org 0x720526
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0x11 'Step Up (Normal)
                            #raw 0xFE 'End of Movements

                            #org 0x720530
                            #raw 0x2E 'Face Up (Delayed)
                            #raw 0xFE 'End of Movements

                            #org 0x720533
                            #raw 0x26 'Step on the Spot Up (Faster)
                            #raw 0x26 'Step on the Spot Up (Faster)
                            #raw 0xFE 'End of Movements
                            *headsmack* I should have known.
                            The bolded part should be 0x0. If you'd followed mine or Cooley's level scripting tuts, they would have told you this.
                            __________________


                            My other resources:
                            My Website
                            diegoisawesome's MEGA-HUGE XSE Scripting Tutorial
                            diegoisawesome's Miscellaneous Finds
                            The Ruins of Alph Puzzles
                            Diego's Miscellaneous Patches
                            GBA Intro Manager
                            The Secret Sauce: Triple-Layer Tiles
                              #2749    
                            Old December 25th, 2009 (11:51 AM).
                            NarutoActor's Avatar
                            NarutoActor NarutoActor is offline
                            The rocks cry out to me
                            • Silver Tier
                             
                            Join Date: Jan 2009
                            Location: Brooklyn/Marlboro
                            Age: 23
                            Gender: Female
                            Nature: Bashful
                            Posts: 1,979
                            Send a message via AIM to NarutoActor Send a message via Windows Live Messenger to NarutoActor
                            That was actually originally there XD but I changed it to 0x0 just like you said and I still get a black screen. (Weird uh?)
                            __________________
                            ~There are those people who understand hex, F the rest
                              #2750    
                            Old December 25th, 2009 (11:55 AM).
                            Diegoisawesome's Avatar
                            Diegoisawesome Diegoisawesome is offline
                            Oh god the bees
                            • Silver Tier
                             
                            Join Date: Dec 2007
                            Location: :noitacoL
                            Age: 20
                            Gender: Male
                            Nature: Naive
                            Posts: 1,032
                            Quote:
                            Originally Posted by NarutoActor View Post
                            That was actually originally there XD but I changed it to 0x0 just like you said and I still get a black screen. (Weird uh?)
                            Hm, then I don't know. :/
                            __________________


                            My other resources:
                            My Website
                            diegoisawesome's MEGA-HUGE XSE Scripting Tutorial
                            diegoisawesome's Miscellaneous Finds
                            The Ruins of Alph Puzzles
                            Diego's Miscellaneous Patches
                            GBA Intro Manager
                            The Secret Sauce: Triple-Layer Tiles
                            Closed Thread
                            Quick Reply

                            Sponsored Links
                            Thread Tools

                            Posting Rules
                            You may not post new threads
                            You may not post replies
                            You may not post attachments
                            You may not edit your posts

                            BB code is On
                            Smilies are On
                            [IMG] code is On
                            HTML code is Off

                            Forum Jump


                            All times are GMT -8. The time now is 2:44 PM.