Tools, Tutorials & Resources Various tools to help you develop your hacks can be found here.

TrollandToad.com
Reply
 
Thread Tools
  #1    
Old August 19th, 2009 (9:56 AM). Edited April 15th, 2010 by Logan.
cooley's Avatar
cooley cooley is offline
///Keepin' it simple
  • Silver Tier
 
Join Date: Feb 2007
Location: United States
Age: 22
Gender: Male
Nature: Impish
Posts: 1,150
How to create a Level Script
Yes, another tutorial, due to the large amount of level script questions

Note: Before reading, please learn some scripting first.

You all may think that making a level script is really hard, and categorize it in the same field as ASM hacking. Well, it isn’t hard, at all.

This is what a level script looks like:

Code:
#dynamic 0x800000

#org @start
 msgbox @string 0x6
 setvar 0x4033 0x1
 release
 end


 #org @string 0x6
 = You see?\nThe level script worked!


The most important part is the "setvar 0x4033 0x1". Without this in this 'type' of level script, then you will get a repeating level script.

Well, that's the tutorial... "I'll add more Later" xD
Nah, only joking :P


Okay, the first thing you would do is head on over to the Header Tab, in A-map. I'm pretty sure, everyone knows where that is.


If you look down a little, you will see this:


Click on add, and then click on "script type". You should see a drop-down menu like this:




All of these are different types of Level scripts. The one you most likely want is the one that is highlighted.


"01 'setmaptile' script" is not the official name, but it's used in the Pokemart in Viridian City. It's purpose is in it's name; which is to setmaptile(s) before the map loads. It's not as fast as:


"04 Validates valus, loads handler to 0x03000F28" which is used to make something happen the instant you walk into the entrance/exit of the map. It's used in the PLAYER's Room to make him face up towards the Nintendo. The best time to use this is in houses or places you warp to, not like routes and towns where you walk into.



"03 On entering map/not on menu close" This is a multipurpose one. You can checkflags, compare vars, and other things and use them to make other things happen. There are a lot of these, so there is also a lot to learn from by decompiling Nintendo's scripts.



Last but not least, "02 Validates values, loads handler to 0x03000EB0". The one that most people use to make a level script. This one, you can literally use almost all the commands, like msgbox, applymovement, fadescreen, etc. But the catch is that I haven't found a way to use it like "checkflag 0x828/if 0x1 goto @done" because once you set the var, it's set... But don't worry, I'll find a way.


Okay, once you've clicked on "02 Validates values....." You will see the script offset and script offset 2 boxes are "$000000". Also the Flag and Value boxes should be 0000 too.



Compile your Level script [make sure it has a setvar 0x(variable) 0x(value) in the script though]

According to score_under:
Quote:
Originally Posted by score_under
It does not have to be subtracted by 1. The reason we use 0x0 in the Value box is because the var starts at 0. The Value box dictates which value the var has to be to start the script. After the script, you set it to 1 (or indeed any other value if you choose to), and this means it no longer equals zero, so no longer activates.




Click Save map scripts and the Script offset box contents should change.

Save from the File menu(Ctrl+S) and play your ROM.






Wow, the level script really worked!!!
But...



Advance Map overwrites the 0000 that you put into the Value box, with FFFF. And since it's subtracted by 1, and FFFF is the highest number you can insert, the level script glitches up.


To fix this, you go to the header tab, and press Ctrl+H to get professional header view. You should see an area called "Map Options". And within it you should see "Map script offset"



Copy the map script offset, and open your ROM in XSE.
Once done, paste the offset in the "decompile box" and click on "level script"




(This is the old XSE, but they both function similarly.)


After you've pasted the offset, and toggle the level script decompile feature (last button to the right) click decompile or "Shift+Ctrl+D"



ATTENTION: OLD XSE! IF YOURS LOOKS LIKE THIS, THEN YOU NEED A SERIOUS UPDATE!


Code:
  #org 0x71A242
 #raw word 0x0
 #raw word 0x0
 #raw pointer 0x880007D
 #raw word 0xFFFF


Code:
  #org 0x71A242
 #raw word 0x0
 #raw word 0x0
 #raw pointer 0x880007D
 #raw word 0x0


This is the important part. The 0xFFFF needs to be 0x0 so change it to 0x0 and compile. You should see the compiler log:



Now your Level script should work, no problems at all...
That was easy, right Staples?

Make a level script inactive until a certain event happens

Okay, so you've had fun with Level scripts, and you're both good friends. But... You walk into a map, and need a level script to activate, but not the first or second time you enter the map, but the 5th time!

Video Demonstration:


For this to work, you will need the cooperation of two maps. For my example I used the Player's room [PALLET TOWN (4.0)] and PALLET TOWN (3.0) map.

In the Player's room the level script is Level script type 03 "On entering map/not on menu close":
Code:
#org 0x800000
setvar 0x4010 0x1
release
end

I set the var to 0x1 so that the level script in Pallet town is deactivated. Hope you understood that.

This should clear things up. Here is the level script in Pallet Town:
Code:
'---------------
#org 0x800007
setweather 0x4
doweather
applymovement MOVE_PLAYER 0x8800052
waitmovement 0xFF
sound 0x15
pause 0x32
msgbox 0x880002B MSG_NORMAL '"Oh, boy[.]\pJust my luck, it's rai..."
setvar 0x4010 0x1
release
end


'---------
' Strings
'---------
#org 0x80002B
= Oh, boy[.]\pJust my luck, it's raining!


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

Pretty simple huh? Basically, the level script won't activate, because the variable has been set already.

Since you enter Your Room before exited your house into Pallet town, the level script in Pallet town wont work. [/DUMBEDDOWN]

You should be outside of your house. I assigned the Daisy(Gary's sister) in Pallet town this script, as seen in the video:

Code:
'---------------
#org 0x800054
msgbox 0x8800064 MSG_NORMAL '"Setting Variable 0x4010 back to 0x..."
setvar 0x4010 0x0
release
end


'---------
' Strings
'---------
#org 0x800064
= Setting Variable 0x4010 back to 0x0\n\c\h08ó. \c\h08ó. \c\h08ó.Done!

Don't mind the
"\c\h08ó" . That's just how I make my msgs. It doesn't affect the outcome at all, just added for special effects :P

And once you talk to DAISY, walk out her house, and it should start raining, just like in the Video :)

I guess that's that...
Anything else you need to know, ask here, I'll see if I can answer!
Thanks for reading!
__________________

Reply With Quote

Relevant Advertising!

  #2    
Old August 19th, 2009 (11:31 AM).
Gamer2020's Avatar
Gamer2020 Gamer2020 is offline
Accept no Imitations!
     
    Join Date: Jun 2008
    Location: Distant Land
    Gender: Male
    Nature: Bold
    Posts: 910
    Wow this is a great tutorial!

    Thank you for this. It answered a couple of questions I had.
    __________________

    Reply With Quote
      #3    
    Old August 19th, 2009 (11:55 AM).
    DawnRyder DawnRyder is offline
    I cannot believe I'm back -.-
       
      Join Date: Aug 2009
      Posts: 79
      Thanks dude, this is awesome.
      __________________
      I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this in your signature.

      Sorry guys, but I'm leaving Pokécommunity. I just don't have time for it. As of right now you will no longer be able to contact me.
      Reply With Quote
        #4    
      Old August 19th, 2009 (12:08 PM).
      Curt_09's Avatar
      Curt_09 Curt_09 is offline
      Also known as Chozo
         
        Join Date: Feb 2009
        Location: Oklahoma
        Age: 26
        Gender: Male
        Posts: 500
        Great tutorial Cooley, maybe we won't have to answer so many of these in the simple questions and script help threads anymore.
        __________________
        Old hacks I liked back in the day:



        Reply With Quote
          #5    
        Old August 20th, 2009 (4:38 AM).
        liuyanghejerry's Avatar
        liuyanghejerry liuyanghejerry is offline
           
          Join Date: Jan 2008
          Location: China,Xi'an
          Nature: Calm
          Posts: 219
          Seems this tut is a remake?
          So cooley,why don't you update your XSE?
          __________________
          Zel,thethethethe,LU-HO,Darthatron,HackMew,ZodiacDaGreat,Juan,score_under,JPAN,Tamah-chan,I really appreciate your kindness and your help!:D
          Reply With Quote
            #6    
          Old August 20th, 2009 (10:06 AM).
          cooley's Avatar
          cooley cooley is offline
          ///Keepin' it simple
          • Silver Tier
           
          Join Date: Feb 2007
          Location: United States
          Age: 22
          Gender: Male
          Nature: Impish
          Posts: 1,150
          Quote:
          Originally Posted by liuyanghejerry View Post
          Seems this tut is a remake?
          So cooley,why don't you update your XSE?
          I'm a BETA tester for XSE, mine is always updating. These pics were from the other thread, and since both versions of XSE do basically the same thing... Why upload new pics?

          Besides, it's not like you can find the version that I used for this tutorial anywhere, anyways..
          __________________

          Reply With Quote
            #7    
          Old August 20th, 2009 (10:29 AM).
          Zaptinex's Avatar
          Zaptinex Zaptinex is offline
             
            Join Date: May 2008
            Location: USA
            Gender:
            Posts: 43
            Yes! More info on how to do Level Scripts! Thanks a ton Cooley!
            Reply With Quote
              #8    
            Old August 21st, 2009 (11:08 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,517

            I was gonna make a tutorial just like this.


            Good work, but it would be good to explain the other types of level scripts and the anatomy of a full level script.
            __________________
            Pokémon Stardrop
            Reply With Quote
              #9    
            Old August 22nd, 2009 (5:36 AM).
            BlitŻ's Avatar
            BlitŻ BlitŻ is offline
            guahh my dog is so cute
            • Crystal Tier
             
            Join Date: Feb 2009
            Location: Bay Area, Califronia.
            Age: 22
            Gender: Male
            Nature: Jolly
            Posts: 472
            hah, this helped me, I didn't know about the other level script options, such as 03 and 04 thank much

            but does 03 activate whenever you enter a map?
            __________________
            Reply With Quote
              #10    
            Old August 22nd, 2009 (5:16 PM).
            cooley's Avatar
            cooley cooley is offline
            ///Keepin' it simple
            • Silver Tier
             
            Join Date: Feb 2007
            Location: United States
            Age: 22
            Gender: Male
            Nature: Impish
            Posts: 1,150
            Quote:
            Originally Posted by Pokepal17 View Post

            I was gonna make a tutorial just like this.


            Good work, but it would be good to explain the other types of level scripts and the anatomy of a full level script.
            Well, it would be good. The other types of level scripts don't need to be explained. Nintendo doesn't really use them that much.

            As for explaining the anatomy of a full level script, I'm pretty sure that all that is needed is a setvar and inserting the var into the Flag box in A-map

            Quote:
            Originally Posted by Fan King View Post
            hah, this helped me, I didn't know about the other level script options, such as 03 and 04 thank much

            but does 03 activate whenever you enter a map?
            03 activates whenever you enter a map, but it doesn't have to do anything if you don't want it to. Take checkflag for instance, if a certain flag is not activated it doesn't have to do anything.
            __________________

            Reply With Quote
              #11    
            Old August 23rd, 2009 (7:46 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,517
            Quote:
            Originally Posted by cooley View Post
            Well, it would be good. The other types of level scripts don't need to be explained. Nintendo doesn't really use them that much.

            As for explaining the anatomy of a full level script, I'm pretty sure that all that is needed is a setvar and inserting the var into the Flag box in A-map


            03 activates whenever you enter a map, but it doesn't have to do anything if you don't want it to. Take checkflag for instance, if a certain flag is not activated it doesn't have to do anything.
            No what I meant was something else, but if I get the chance, I'll write the tutorial on it.
            __________________
            Pokémon Stardrop
            Reply With Quote
              #12    
            Old August 23rd, 2009 (10:46 PM).
            Surf's Avatar
            Surf Surf is offline
            ...
               
              Join Date: Jul 2008
              Location: Rust
              Age: 22
              Gender: Male
              Nature: Relaxed
              Posts: 1,197
              Cooleh, is there a way to make the level script not activate until a certain event has happened?
              __________________
              I'm looking for some good (When I say good,
              I mean you can hold your own by yourself)
              N**i Zombies players, to form a team or even a
              clan, to play with casually.
              Send me a PM with your Highest Level and your PSN,
              and I'll get back to you.
              Reply With Quote
                #13    
              Old August 24th, 2009 (7:11 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,517
              Quote:
              Originally Posted by Surf View Post
              Cooleh, is there a way to make the level script not activate until a certain event has happened?
              Yep.

              Easy enough.

              Put the var value for the lvl script as 0001 and put a setvar 0xvar 0x2 in the script.

              And then before, you want the event to activate, do in a scipt, setvar 0xvar 0x1.
              __________________
              Pokémon Stardrop
              Reply With Quote
                #14    
              Old August 24th, 2009 (7:35 AM).
              cooley's Avatar
              cooley cooley is offline
              ///Keepin' it simple
              • Silver Tier
               
              Join Date: Feb 2007
              Location: United States
              Age: 22
              Gender: Male
              Nature: Impish
              Posts: 1,150
              Quote:
              Originally Posted by Surf View Post
              Cooleh, is there a way to make the level script not activate until a certain event has happened?
              It's part 2 of my tutorial... or the easier way, what pokepal said
              __________________

              Reply With Quote
                #15    
              Old September 14th, 2009 (5:50 AM). Edited September 14th, 2009 by Reygok.
              Reygok's Avatar
              Reygok Reygok is offline
              Beginning Hacker
                 
                Join Date: Sep 2009
                Gender: Male
                Posts: 60
                Hi, i just registered, only to post here (and, sorry in advane, my c nearly never works)

                I just want to show you my levelscript, ooley:

                Spoiler:

                '---------------
                #org 0x6BEF70
                #raw 0x2
                #raw pointer 0x86BEF76
                #raw 0x0

                '---------------
                #org 0x6BEF76
                #raw word 0x7000
                #raw word 0x0
                #raw pointer 0x8802634
                #raw word 0x0

                '---------------
                #org 0x802634
                lock
                checkflag 0x204
                if 0x1 goto 0x8801F22
                checkflag 0x201
                if 0x0 goto 0x8801F22
                applymovement MOVE_PLAYER 0x8801F24
                waitmovement 0x0
                msgbox 0x8801F2D MSG_NORMAL '"Prof. Gink: Hallo ihr beiden!\nHeu..."
                applymovement 0x2 0x8801F2A
                waitmovement 0x0
                msgbox 0x880203C MSG_NORMAL '"Sandy: Nein, ich will dass [player..."
                msgbox 0x880206A MSG_NORMAL '"Prof. Gink: Nun gut. Also [player]..."
                setflag 0x203
                setvar 0x7000 0x1
                release
                end

                '---------------
                #org 0x801F22
                release
                end


                '---------
                ' Strings
                '---------
                #org 0x801F2D
                = Prof. Gink: Hallo ihr beiden!\nHeute ist es soweit!\pDa ihr beide gestern 14 Jahre alt\ngeworden seit, bekommt ihr heute\leuer erstes Pokémon!\pIhr könnt zwischen 3 verschiedenen\nwählen. Also, Ladies first, wie\lman so schön sagt!\pSandy, du darfst als erstes\neins aussuchen.

                #org 0x80203C
                = Sandy: Nein, ich will dass [player]\nzuerst wählt!

                #org 0x80206A
                = Prof. Gink: Nun gut. Also [player],\ndie Pokémon liegen dort auf dem Tisch.\pSuch dir eines aus.


                '-----------
                ' Movements
                '-----------
                #org 0x801F24
                #raw 0x9 'Step Up (Normal)
                #raw 0x9 'Step Up (Normal)
                #raw 0x9 'Step Up (Normal)
                #raw 0x9 'Step Up (Normal)
                #raw 0xFE 'End of Movements

                #org 0x801F2A
                #raw 0x3 'Face Right
                #raw 0xFE 'End of Movements


                I followed exatly you tutorial, and revised it 4 times, but I don't find the error. When I enter the map I put this level sript on, nothing happens. Do you know why? Or anyone else?

                Thanky in advane

                Edit: And does anybody know why some sprites have strange colors with ''showpokepic''? Bulbasaur is normal, but Charmander is black and blue
                Reply With Quote
                  #16    
                Old September 16th, 2009 (6:40 AM).
                psychicboy's Avatar
                psychicboy psychicboy is offline
                Hacking is all that matters...
                   
                  Join Date: Aug 2009
                  Location: Twilight Town
                  Age: 23
                  Gender: Male
                  Nature: Hasty
                  Posts: 538
                  This sure helped me a hell of alot...
                  Reply With Quote
                    #17    
                  Old September 16th, 2009 (3:05 PM).
                  cooley's Avatar
                  cooley cooley is offline
                  ///Keepin' it simple
                  • Silver Tier
                   
                  Join Date: Feb 2007
                  Location: United States
                  Age: 22
                  Gender: Male
                  Nature: Impish
                  Posts: 1,150
                  Quote:
                  Originally Posted by Reygok View Post
                  Hi, i just registered, only to post here (and, sorry in advane, my c nearly never works)

                  I just want to show you my levelscript, ooley:

                  Spoiler:

                  '---------------
                  #org 0x6BEF70
                  #raw 0x2
                  #raw pointer 0x86BEF76
                  #raw 0x0

                  '---------------
                  #org 0x6BEF76
                  #raw word 0x7000
                  #raw word 0x0
                  #raw pointer 0x8802634
                  #raw word 0x0

                  '---------------
                  #org 0x802634
                  lock
                  checkflag 0x204
                  if 0x1 goto 0x8801F22
                  checkflag 0x201
                  if 0x0 goto 0x8801F22
                  applymovement MOVE_PLAYER 0x8801F24
                  waitmovement 0x0
                  msgbox 0x8801F2D MSG_NORMAL '"Prof. Gink: Hallo ihr beiden!\nHeu..."
                  applymovement 0x2 0x8801F2A
                  waitmovement 0x0
                  msgbox 0x880203C MSG_NORMAL '"Sandy: Nein, ich will dass [player..."
                  msgbox 0x880206A MSG_NORMAL '"Prof. Gink: Nun gut. Also [player]..."
                  setflag 0x203
                  setvar 0x7000 0x1
                  release
                  end

                  '---------------
                  #org 0x801F22
                  release
                  end


                  '---------
                  ' Strings
                  '---------
                  #org 0x801F2D
                  = Prof. Gink: Hallo ihr beiden!\nHeute ist es soweit!\pDa ihr beide gestern 14 Jahre alt\ngeworden seit, bekommt ihr heute\leuer erstes Pokémon!\pIhr könnt zwischen 3 verschiedenen\nwählen. Also, Ladies first, wie\lman so schön sagt!\pSandy, du darfst als erstes\neins aussuchen.

                  #org 0x80203C
                  = Sandy: Nein, ich will dass [player]\nzuerst wählt!

                  #org 0x80206A
                  = Prof. Gink: Nun gut. Also [player],\ndie Pokémon liegen dort auf dem Tisch.\pSuch dir eines aus.


                  '-----------
                  ' Movements
                  '-----------
                  #org 0x801F24
                  #raw 0x9 'Step Up (Normal)
                  #raw 0x9 'Step Up (Normal)
                  #raw 0x9 'Step Up (Normal)
                  #raw 0x9 'Step Up (Normal)
                  #raw 0xFE 'End of Movements

                  #org 0x801F2A
                  #raw 0x3 'Face Right
                  #raw 0xFE 'End of Movements


                  I followed exatly you tutorial, and revised it 4 times, but I don't find the error. When I enter the map I put this level sript on, nothing happens. Do you know why? Or anyone else?

                  Thanky in advane

                  Edit: And does anybody know why some sprites have strange colors with ''showpokepic''? Bulbasaur is normal, but Charmander is black and blue
                  Well, you shouldn't use checkflag in those type of level scripts... If you want to do something like that, see pokepal17's post above or read part two of my level script tutorial.

                  But for it not working, I would suggest changing the Var, to something like in the 4010-4FFF range. Post back if it doesn't work out.
                  __________________

                  Reply With Quote
                    #18    
                  Old September 16th, 2009 (3:19 PM).
                  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,517
                  Quote:
                  Originally Posted by cooley View Post
                  Well, you shouldn't use checkflag in those type of level scripts... If you want to do something like that, see pokepal17's post above or read part two of my level script tutorial.

                  But for it not working, I would suggest changing the Var, to something like in the 4010-4FFF range. Post back if it doesn't work out.
                  Actually use vars between 0x5000 and 0x7000. The ones that you mentioned Cooley, are used already in Fire Red and some of them store returning values from specials.
                  __________________
                  Pokémon Stardrop
                  Reply With Quote
                    #19    
                  Old September 16th, 2009 (7:13 PM).
                  ribon22x's Avatar
                  ribon22x ribon22x is offline
                     
                    Join Date: Jul 2009
                    Location: Into the Darkness
                    Gender: Male
                    Nature: Adamant
                    Posts: 9
                    I like this tutorial, but I think you are missing a bit more technical concepts
                    __________________
                    Reply With Quote
                      #20    
                    Old September 17th, 2009 (12:04 PM).
                    Reygok's Avatar
                    Reygok Reygok is offline
                    Beginning Hacker
                       
                      Join Date: Sep 2009
                      Gender: Male
                      Posts: 60
                      I really dont know what was the problem, but I tried 5555 and it worked... I had tried 4500 and some others already before, but those didnt work...And I have Sapphire, not Fire Red, so they should have worked... but they simply did not
                      ANyway, thanks cooley and Pokepal, i can finally continue with my hack...

                      Ah, and dont you know whats this problem with the color changing sprites when I use showpokepic? I put a Charmander, a Bulbasaur and a Mudkip, and when I klick charmander, it is black, then i click bulbasaur and mudkip, they are normal color, then charmander again, who turned into blue and white, then also bulbasaur is black... does the comand wrk different in the new version of XSE, like callstd or whats the problem?
                      Reply With Quote
                        #21    
                      Old September 17th, 2009 (5:16 PM).
                      Haku.'s Avatar
                      Haku. Haku. is offline
                      (FLAME)...H....A...K..U
                         
                        Join Date: Jan 2008
                        Location: Singapore :D
                        Gender: Male
                        Nature: Quiet
                        Posts: 386
                        This could be useful to beginners learning to script.
                        I already learn level script when i began to scripting.Weird....
                        __________________

                        Reply With Quote
                          #22    
                        Old October 7th, 2009 (9:13 AM).
                        Reygok's Avatar
                        Reygok Reygok is offline
                        Beginning Hacker
                           
                          Join Date: Sep 2009
                          Gender: Male
                          Posts: 60
                          Hm, the level scripts, or better: the level script works, but only one! When I add another script, on an other map, the first changes in this second!
                          I had a script in Players house, the mother walks towards the player and say good morning and so on. But when I add a level sript in Prof Birch's Laboratory to get the first pokémon, and save it, I get my first Pokémon from my mother when I leave my room in my house! The offset of level sript 1 simply changed, its now the same as the seond! But I took a different var! Whats the problem?
                          Reply With Quote
                            #23    
                          Old October 7th, 2009 (9:33 AM).
                          VVB VVB is offline
                             
                            Join Date: Sep 2009
                            Age: 27
                            Gender: Male
                            Nature: Calm
                            Posts: 2
                            Quote:
                            Originally Posted by Reygok View Post
                            Ah, and dont you know whats this problem with the color changing sprites when I use showpokepic? I put a Charmander, a Bulbasaur and a Mudkip, and when I klick charmander, it is black, then i click bulbasaur and mudkip, they are normal color, then charmander again, who turned into blue and white, then also bulbasaur is black... does the comand wrk different in the new version of XSE, like callstd or whats the problem?
                            I have the same problem. It seems that the one I select first gets messed up colours.

                            I have no idea why.
                            Reply With Quote
                              #24    
                            Old October 9th, 2009 (11:28 AM).
                            cooley's Avatar
                            cooley cooley is offline
                            ///Keepin' it simple
                            • Silver Tier
                             
                            Join Date: Feb 2007
                            Location: United States
                            Age: 22
                            Gender: Male
                            Nature: Impish
                            Posts: 1,150
                            Quote:
                            Originally Posted by Reygok View Post
                            Hm, the level scripts, or better: the level script works, but only one! When I add another script, on an other map, the first changes in this second!
                            I had a script in Players house, the mother walks towards the player and say good morning and so on. But when I add a level sript in Prof Birch's Laboratory to get the first pokémon, and save it, I get my first Pokémon from my mother when I leave my room in my house! The offset of level sript 1 simply changed, its now the same as the seond! But I took a different var! Whats the problem?
                            Well, it's not the level script. It's advance-map that messes the level scripts up.
                            After you insert a first level script, and you move right along to the next map and try to add a level script, it would usually become the last one you entered, even if it's on a different map. So to fix this:

                            On the second map (that has the problems), just add about two level scripts or add them until you get a blank, editable one. Once you get the editable blank one, delete all that come before it. Now enter the settings for the level script and it should work.
                            __________________

                            Reply With Quote
                              #25    
                            Old October 9th, 2009 (12:21 PM).
                            Reygok's Avatar
                            Reygok Reygok is offline
                            Beginning Hacker
                               
                              Join Date: Sep 2009
                              Gender: Male
                              Posts: 60
                              Okay, thanks for the answer, I'm pretty sure it should work now, but I cannot test it XD
                              Actually, every time I open up a script with XSE, the pointers are shown as I named them, like '@start', and there are no offsets! Even when I open the Map script offset, the pointers are called '@swizzle' or something like that. That means when I change the FFFF after the pointer, and then klick compile, it says: 'no Dynamic offset'
                              Have I switched an option somewhere? I dont think so... Or could it be that I dont know any more how the whole thing works, because I didn't script for 2 months :p
                              Reply With Quote
                              Reply

                              Quick Reply

                              Join the conversation!

                              Create an account to post a reply in this thread, participate in other discussions, and more!

                              Create a PokéCommunity Account

                              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 1:11 PM.