• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Forum moderator applications are now open! Click here for details.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

The secret of the Move Camera Script (and extras)

Status
Not open for further replies.

cooley

///Keepin' it simple
1,148
Posts
17
Years
how can i made a level script, that the message always apear?

Yeah, sorry about that. I'll update the first post with how to fix this. You see, Advance map overwrites the values with 'FFFF'. Which is why most level scripts won't work if you do it through advance map. I'll update the first post with how to make a level script through XSE, or for those who don't like XSE, through hex. The only thing you'll need from A-map is the 'Professional Header' and the 'Map script offset' from it.

You will eventually need XSE to check the script though...And Advance Map with a Hex editor.
Get prepared everyone!
 
5,814
Posts
16
Years
  • Age 30
  • Seen May 19, 2021
Here's what I don't get about level scripts.
When u insert them, how A-Map and the script know where to start.

Explanation:
Like, if u want a level script to happen right when u come downstairs from ur bedroom, how will it know if the script will work at the staircase or at the front door? :\
 

cooley

///Keepin' it simple
1,148
Posts
17
Years
Here's what I don't get about level scripts.
When u insert them, how A-Map and the script know where to start.

Explanation:
Like, if u want a level script to happen right when u come downstairs from ur bedroom, how will it know if the script will work at the staircase or at the front door? :\
I dunno, xD
I've tried to do that with Level scripts, but it'll only work if you use "setmaptile" scripts or "On entering map/not on menu close" or "Load handler to 0x03000F28"

But the scirpts I just mentioned, they can't use messages, applymovement, or anything that requires "Pointer to data to load". They are however very useful, and can check if a flag has been set, then do something else. These are some of the many compatible commands I've encountered.

checkflag (0x2B
clearflag (0x2A)
hidesprite (0x53)
movesprite2 (0x63)
showsprite (0x55)
setfarbyte (0x13)
setflag (0x29)
spriteface (0x5B)
writebytetooffset (0x11)
 

KhaosKnight

The 1 and only Khaotic Hacker
355
Posts
16
Years
  • Seen May 28, 2015
I dunno, xD
I've tried to do that with Level scripts, but it'll only work if you use "setmaptile" scripts or "On entering map/not on menu close" or "Load handler to 0x03000F28"

But the scirpts I just mentioned, they can't use messages, applymovement, or anything that requires "Pointer to data to load". They are however very useful, and can check if a flag has been set, then do something else. These are some of the many compatible commands I've encountered.

checkflag (0x2B
clearflag (0x2A)
hidesprite (0x53)
movesprite2 (0x63)
showsprite (0x55)
setfarbyte (0x13)
setflag (0x29)
spriteface (0x5B)
writebytetooffset (0x11)


Ok, so like if i was going to make a setmaptile script i cant make it like this

Code:
#Dynamic 0x800000
 
#org @main
checkflag 0x201
if 0x1 goto @change
release
end
 
#org @change
movesprite2 0x15 0x11 0x08
setmaptile 0x14 0x7 0x78 0x1
setmaptile 0x15 0x7 0x79 0x1
setmaptile 0x16 0x7 0x79 0x1
setmaptile 0x17 0x7 0x7A 0x1
setmaptile 0x14 0x8 0x189 0x0
setmaptile 0x15 0x8 0x189 0x0
setmaptile 0x16 0x8 0x189 0x0
setmaptile 0x17 0x8 0x189 0x0
setmaptile 0x14 0x9 0x3E 0x1
setmaptile 0x15 0x9 0x3E 0x1
setmaptile 0x16 0x9 0x3E 0x1
setmaptile 0x17 0x9 0x3E 0x1
setmaptile 0x14 0xA 0x1 0x0
setmaptile 0x15 0xA 0x1 0x0
setmaptile 0x16 0xA 0x1 0x0
setmaptile 0x17 0xA 0x1 0x0
release
end


i have to make it like this for it to work?

Code:
#Dynamic 0x800000
 
#org @main
checkflag 0x201
if 0x0 goto @end
movesprite2 0x15 0x11 0x08
setmaptile 0x14 0x7 0x78 0x1
setmaptile 0x15 0x7 0x79 0x1
setmaptile 0x16 0x7 0x79 0x1
setmaptile 0x17 0x7 0x7A 0x1
setmaptile 0x14 0x8 0x189 0x0
setmaptile 0x15 0x8 0x189 0x0
setmaptile 0x16 0x8 0x189 0x0
setmaptile 0x17 0x8 0x189 0x0
setmaptile 0x14 0x9 0x3E 0x1
setmaptile 0x15 0x9 0x3E 0x1
setmaptile 0x16 0x9 0x3E 0x1
setmaptile 0x17 0x9 0x3E 0x1
setmaptile 0x14 0xA 0x1 0x0
setmaptile 0x15 0xA 0x1 0x0
setmaptile 0x16 0xA 0x1 0x0
setmaptile 0x17 0xA 0x1 0x0
release
end
 
#org @end
release
end
 

cooley

///Keepin' it simple
1,148
Posts
17
Years
Ok, so like if i was going to make a setmaptile script i cant make it like this

Code:
#Dynamic 0x800000
 
#org @main
checkflag 0x201
if 0x1 goto @change
release
end
 
#org @change
movesprite2 0x15 0x11 0x08
setmaptile 0x14 0x7 0x78 0x1
setmaptile 0x15 0x7 0x79 0x1
setmaptile 0x16 0x7 0x79 0x1
setmaptile 0x17 0x7 0x7A 0x1
setmaptile 0x14 0x8 0x189 0x0
setmaptile 0x15 0x8 0x189 0x0
setmaptile 0x16 0x8 0x189 0x0
setmaptile 0x17 0x8 0x189 0x0
setmaptile 0x14 0x9 0x3E 0x1
setmaptile 0x15 0x9 0x3E 0x1
setmaptile 0x16 0x9 0x3E 0x1
setmaptile 0x17 0x9 0x3E 0x1
setmaptile 0x14 0xA 0x1 0x0
setmaptile 0x15 0xA 0x1 0x0
setmaptile 0x16 0xA 0x1 0x0
setmaptile 0x17 0xA 0x1 0x0
release
end
i have to make it like this for it to work?

Code:
#Dynamic 0x800000
 
#org @main
checkflag 0x201
if 0x0 goto @end
movesprite2 0x15 0x11 0x08
setmaptile 0x14 0x7 0x78 0x1
setmaptile 0x15 0x7 0x79 0x1
setmaptile 0x16 0x7 0x79 0x1
setmaptile 0x17 0x7 0x7A 0x1
setmaptile 0x14 0x8 0x189 0x0
setmaptile 0x15 0x8 0x189 0x0
setmaptile 0x16 0x8 0x189 0x0
setmaptile 0x17 0x8 0x189 0x0
setmaptile 0x14 0x9 0x3E 0x1
setmaptile 0x15 0x9 0x3E 0x1
setmaptile 0x16 0x9 0x3E 0x1
setmaptile 0x17 0x9 0x3E 0x1
setmaptile 0x14 0xA 0x1 0x0
setmaptile 0x15 0xA 0x1 0x0
setmaptile 0x16 0xA 0x1 0x0
setmaptile 0x17 0xA 0x1 0x0
release
end
 
#org @end
release
end
Both ways are good. But setmaptile scripts don't have to include setmaptiles. I don't even think that's the official name for it.
 

KhaosKnight

The 1 and only Khaotic Hacker
355
Posts
16
Years
  • Seen May 28, 2015
Both ways are good. But setmaptile scripts don't have to include setmaptiles. I don't even think that's the official name for it.

So if i was going to make a "setmaptile" level script what would i have to do to make it work? I compiled that script with XSE and applied it using A-map but it didnt work.
 

cooley

///Keepin' it simple
1,148
Posts
17
Years
You aren't supposed to use setmaptile scripts as regular ones...If you'd follow my tutorial, you wouldn't be wondering. setmaptile scripts are the scripts that happens before the map loads, it happens during the black screen that occurs before loading.

You should use the ones in my tutorial. I'll update it today.


OK, Level scripts are all updated! Enjoy, I've included how to make one with Advance map , and XSE.
And I explained it more in-depth with more pictures, etc.

Enjoy, only one more update, until I finish this tutorial.
 
Last edited:

KhaosKnight

The 1 and only Khaotic Hacker
355
Posts
16
Years
  • Seen May 28, 2015
You aren't supposed to use setmaptile scripts as regular ones...If you'd follow my tutorial, you wouldn't be wondering. setmaptile scripts are the scripts that happens before the map loads, it happens during the black screen that occurs before loading.

You should use the ones in my tutorial. I'll update it today.

OK, Level scripts are all updated! Enjoy, I've included how to make one with Advance map , and XSE.
And I explained it more in-depth with more pictures, etc.

Enjoy, only one more update, until I finish this tutorial.

I know i have been using them as level scripts, its just i have been using them on a route map and when you enter a route there is no black screen...
 
7
Posts
16
Years
  • Seen Jul 16, 2010
this tut for the level scripts is now really great, thanks =D
but how can i make this script, that it every start when i enter the map...

and antoher one:
i made a level script with a movement of the camera an a text box, but at the end when the script should be at the end, there comes a text box again with some letters, as like as you forget to change the 0xFFFF to 0x0
 
Last edited:

cooley

///Keepin' it simple
1,148
Posts
17
Years
this tut for the level scripts is now really great, thanks =D
but how can i make this script, that it every start when i enter the map...

and antoher one:
i made a level script with a movement of the camera an a text box, but at the end when the script should be at the end, there comes a text box again with some letters, as like as you forget to change the 0xFFFF to 0x0
1. I don't know, I'm still researching that.
2. You forgot to put something in Advance map...Like the flag? Or you forgot to fix the problem by Using XSE.
 
7
Posts
16
Years
  • Seen Jul 16, 2010
this with the movemnt works now, i made it now with a call and it worked...but that thing thate the script every time work.....i hope you find a way^^
 

cooley

///Keepin' it simple
1,148
Posts
17
Years
Hey guys I've figured something out!

I was working on creating your own multi box, and this is the result:
2s608d4.png


Also, I've seen that Ruby has Diagonal movements, for the player, camera, people, etc.
View My Video
 
5,814
Posts
16
Years
  • Age 30
  • Seen May 19, 2021
Hey guys I've figured something out!

I was working on creating your own multi box, and this is the result:
2s608d4.png


Also, I've seen that Ruby has Diagonal movements, for the player, camera, people, etc.
View My Video

Whoa! :shocked:
That's awesome! :D
Especially the diagonal movement. ;)
 

cooley

///Keepin' it simple
1,148
Posts
17
Years
Whoa! :shocked:
That's awesome! :D
Especially the diagonal movement. ;)
Yes, thank you. The diagonal movement(s), is mainly used in RUBY for camera scripts.
That's why the camera doesn't move if you demonstrate it on the HIRO.
 

twi1ight

Pokemon Paradox Creator
34
Posts
15
Years
umm i did like everything you told me to do but when it starts the main character freezes up and when i decompile it nothing is there, but also the tutorial is very well laid out easy to understand i'm just having problems so help would be appritiated
 

cooley

///Keepin' it simple
1,148
Posts
17
Years
umm i did like everything you told me to do but when it starts the main character freezes up and when i decompile it nothing is there, but also the tutorial is very well laid out easy to understand i'm just having problems so help would be appritiated
Obviously, it's not an XSE problem. It's your ROM, that may be broken or corrupt.
Check to see if it's 16 MB.

And are you trying to do a level script? Or a move camera script?
Either way, XSE's not the problem.
 

torferno lvl-X

learning asm
152
Posts
15
Years
  • Seen Aug 14, 2012
Really good tut, and it is in XSE the tool I use

What is level Scripting? Please can someone explain
 
Last edited:
Status
Not open for further replies.
Back
Top