The PokéCommunity Forums Fan Games ROM Hacking
Map scripts in FR (not a mere script request)

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

Reply
 
Thread Tools
  #1    
Old September 18th, 2007 (10:16 AM). Edited September 18th, 2007 by Teh Baro.
Teh Baro's Avatar
Teh Baro Teh Baro is offline
In my times...!
     
    Join Date: Mar 2006
    Location: Spain
    Gender: Male
    Nature: Quiet
    Posts: 522
    So, how do I make them work?
    I made some research on island 1's pokémon center map script (third pointer in the map header, actually it's some sort of script header) and I got this:
    03 SCRIPT-A 05 SCRIPT-B 01 SCRIPT-C 02 STRUCTURE 00
    (pairs of byte-pointers, 00 terminated)

    script A has the re-spawn command and some movesprites
    script B is special 0x182, end
    script C is some setmaptiles that depend on var 0x4076

    fourth pointer, the structure, looks like this:
    0x4076 0 0 SCRIPT-D 0 0

    and script D is the stuff with BILL and CELIO, where they give you a meteorite.

    What I want in this map is to play a sound and display some text (or just the text and put the sound in it, doesn't matter), so technically in my map the script that does all this stuff is the SCRIPT-D. So, I copied that structure. scripts A, B and C lead to a 0x02 (end) and script D is, currently, this:

    #org 0x732c70
    jingle
    msgbbox 0x732c00
    callstd 0x6
    #raw 0x6b
    end

    When I enter the map, nothing happens (while I was messing with all this, trying the map resulted in a crash, BTW)

    I know I may get no answer, but I'm stuck... any ideas?




    EDIT: Okay I ****ed something up while copying the stuff manually and it WORKS. Now the problem is that it repeats to insanity, but that's something I've gotta check (I think it has to do with the flag in the weird structure).

    When I have the time, I'll write a tutorial for all this.
    You may either delete this thread or comment, ask stuff, etc.
    __________________
    what the fudge
    Reply With Quote

    Relevant Advertising!

      #2    
    Old September 19th, 2007 (1:04 PM).
    OMNIPOTENT OMNIPOTENT is offline
       
      Join Date: Jul 2007
      Gender:
      Nature: Adamant
      Posts: 55
      happy it works... but what is "it"?? what you were tryin to do? ''
      Reply With Quote
        #3    
      Old September 21st, 2007 (1:27 AM).
      Teh Baro's Avatar
      Teh Baro Teh Baro is offline
      In my times...!
         
        Join Date: Mar 2006
        Location: Spain
        Gender: Male
        Nature: Quiet
        Posts: 522
        Quote:
        Originally Posted by OMNIPOTENT View Post
        happy it works... but what is "it"?? what you were tryin to do? ''
        making events happen when you enter a map. Actually I messed up copying an offset and forgot the 08 and that was why it hadn't worked. I'll make some sort of tutorial on this.
        __________________
        what the fudge
        Reply With Quote
          #4    
        Old September 21st, 2007 (10:30 AM).
        OMNIPOTENT OMNIPOTENT is offline
           
          Join Date: Jul 2007
          Gender:
          Nature: Adamant
          Posts: 55
          maybe understood: when you enter a map no matter from where? that would be nice, if it needs only a script (no a circle of events around the location as i'd do if i need it )
          Reply With Quote
            #5    
          Old September 21st, 2007 (12:57 PM).
          Teh Baro's Avatar
          Teh Baro Teh Baro is offline
          In my times...!
             
            Join Date: Mar 2006
            Location: Spain
            Gender: Male
            Nature: Quiet
            Posts: 522
            Quote:
            Originally Posted by OMNIPOTENT View Post
            maybe understood: when you enter a map no matter from where? that would be nice, if it needs only a script (no a circle of events around the location as i'd do if i need it )
            Exactly. Also if you get out of a building through a warp. Remember for example in old Gold when prof. elm calls you when you get out of the pokemon center in violet city.
            __________________
            what the fudge
            Reply With Quote
            Reply
            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 5:22 PM.