The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Camera xse script?

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old November 19th, 2019 (7:10 AM). Edited November 19th, 2019 by Hcram03.
Hcram03 Hcram03 is offline
 
Join Date: Nov 2019
Posts: 6
How do I move the camera to another location where the [player] isn't there?

For example, [player] talk to npc about the on-going robbing on a mart. Then the camera will show the inside of the mart to show what's happening there. Then the camera will move back to the [player].

Maybe I'm bad at searching but I've wasted all day looking up for script tutorial for this one but to no avail, just the move camera. But that isn't what I'm looking for??

Thanks.
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old November 19th, 2019 (7:17 AM).
kalarie kalarie is offline
 
Join Date: Jun 2008
Posts: 760
Quote:
Originally Posted by Hcram03 View Post
How do I move the camera to another location where the [player] isn't there?

For example, [player] talk to npc about the on-going robbing on a mart. Then the camera will show the inside of the mart to show what's happening there. Then the camera will move back to the [player].

Maybe I'm bad at searching but I've wasted all day looking up for script tutorial for this one but to no avail, just the move camera. But that isn't what I'm looking??

Thanks.
https://www.youtube.com/watch?v=CukAvOWy8pU&list=PLfI5DBI4tNyLBYGNhf1Ee8cgdmMtiilps&index=12
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old November 19th, 2019 (7:28 AM).
Hcram03 Hcram03 is offline
 
Join Date: Nov 2019
Posts: 6
Thank you for the answer but I'm afraid that isn't what I'm looking for.

What I want to happen is like warp the camera to other location. Let's say the [player] is in Pallet Town, when he talk to a npc there, the camera will shift to the inside of the mart in the Viridian City.

Well, is this even possible to do in FR version?
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old November 19th, 2019 (8:47 AM).
kalarie kalarie is offline
 
Join Date: Jun 2008
Posts: 760
Quote:
Originally Posted by Hcram03 View Post
Thank you for the answer but I'm afraid that isn't what I'm looking for.

What I want to happen is like warp the camera to other location. Let's say the [player] is in Pallet Town, when he talk to a npc there, the camera will shift to the inside of the mart in the Viridian City.

Well, is this even possible to do in FR version?
Yea, it's possible but pretty specific. It would need a little more advanced scripting. You would need to use the warp(muted) command to warp to the mart and then make the player sprite invisible before the map loads with a type 04 Level script. After that you can script it however you want with a type 02 level script.
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old November 19th, 2019 (6:50 PM). Edited November 19th, 2019 by Hcram03.
Hcram03 Hcram03 is offline
 
Join Date: Nov 2019
Posts: 6
Quote:
Originally Posted by kalarie View Post
Yea, it's possible but pretty specific. It would need a little more advanced scripting. You would need to use the warp(muted) command to warp to the mart and then make the player sprite invisible before the map loads with a type 04 Level script. After that you can script it however you want with a type 02 level script.
I see! I get it now. I actually thought of the warp but hiding the sprite didn't occur to me. I always believed there's a specific script for that kind of action. Anyway, thank you very much!
Reply With Quote
  #6   Link to this post, but load the entire thread.  
Old November 21st, 2019 (5:37 AM). Edited November 21st, 2019 by DrFuji.
Hcram03 Hcram03 is offline
 
Join Date: Nov 2019
Posts: 6
I can't seem to make it work. Obviously, it's not as simple as what I thought...

I'll post my script in a bit, I really hope somebody can provide me the help I need.

Here it is.

Once the [player] talk to the npc below, the camera will shift to the school in Viridian City.
https://photos.google.com/photo/AF1QipP3Qw1wAX3KE2H3NMKrfuFeUrU5rj0aR_Ct9Xp5

This is the script:
Quote:
#dynamic 0x800ABF

#org @start
lock
faceplayer
msgbox @talk 0x6
warpmuted 0x5 0x2 0xFF 0x5 0x4
release
end

#org @talk
= Let's warp the camera to the\nVIRIDIAN CITY's school!
Then this is the level script upon entering the map 5.2 which is the school in Viridian City. I also added some scene before shifting the camera back to the Pallet Town.

Quote:
#dynamic 0x8009D9

#org @start
lock
hidesprite 0xFF
msgbox @question 0x6
pause 0x20
msgbox @answer 0x6
warpmuted 0x3 0x0 0xFF 0x2 0x3
setvar 0x4889 0x1
release
end

#org @question
= [red_fr]Teacher, what is a POKEBALL?

#org @answer
= [green_fr]It's an item use to catch a\nPOKEMON.\pYou throw it to a POKEMON you\nencounter in the wild if you want\lto capture them.
What happens is upon entering the school, the player sprite would be visible for a brief moment in the middle of the map then it would turn to this...
https://photos.google.com/photo/AF1QipNUTaObUcaKR2_oEc6hnCZR-o2zRI393erbaMcs

Anyone can help me?
Reply With Quote
  #7   Link to this post, but load the entire thread.  
Old November 21st, 2019 (6:38 AM).
kalarie kalarie is offline
 
Join Date: Jun 2008
Posts: 760
Quote:
Originally Posted by Hcram03 View Post
Here it is.

Once the [player] talk to the npc below, the camera will shift to the school in Viridian City.
https://photos.google.com/photo/AF1QipP3Qw1wAX3KE2H3NMKrfuFeUrU5rj0aR_Ct9Xp5

This is the script:


Then this is the level script upon entering the map 5.2 which is the school in Viridian City. I also added some scene before shifting the camera back to the Pallet Town.



What happens is upon entering the school, the player sprite would be visible for a brief moment in the middle of the map then it would turn to this...
https://photos.google.com/photo/AF1QipNUTaObUcaKR2_oEc6hnCZR-o2zRI393erbaMcs

Anyone can help me?
You'll need to make a type 04 level script to hide the player's sprite first. A type 04 level script runs before the screen is loaded visually. Put in a script like hidesprite 0xFF (not sure if it works in a type 04 level script) or:
applymovement 0xFF @movement1

@movement1
#raw 0x60
#raw 0xFE

That should work.
Reply With Quote
  #8   Link to this post, but load the entire thread.  
Old November 21st, 2019 (7:56 AM). Edited November 21st, 2019 by Hcram03.
Hcram03 Hcram03 is offline
 
Join Date: Nov 2019
Posts: 6
Quote:
Originally Posted by kalarie View Post
You'll need to make a type 04 level script to hide the player's sprite first. A type 04 level script runs before the screen is loaded visually. Put in a script like hidesprite 0xFF (not sure if it works in a type 04 level script) or:
applymovement 0xFF @movement1

@movement1
#raw 0x60
#raw 0xFE

That should work.
Thank you!! It really worked!

Now my problem is that how do I do the script for the convo of the student and teacher and warping the camera back to Pallet Town.

I tried using the 02 and 03 level script but after talking with the npc in Pallet Town I got black screen.
Reply With Quote
  #9   Link to this post, but load the entire thread.  
Old November 21st, 2019 (8:04 AM).
Hcram03 Hcram03 is offline
 
Join Date: Nov 2019
Posts: 6
Quote:
Originally Posted by Hcram03 View Post
Thank you!! It really worked!

Now my problem is that how do I do the script for the convo of the student and teacher and warping the camera back to Pallet Town.

I tried using the 02 and 03 level script but after talking with the npc in Pallet Town I got black screen.
I tried it again and it work. I have no idea how it didn't the first time though. Anyway thank you again! You're a great help!
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
Ad Content

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 9:15 AM.