The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Team Rocket Changes

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 May 24th, 2021 (11:14 PM).
SixtySixRoses SixtySixRoses is offline
 
Join Date: May 2021
Posts: 5
I want to make a very specific scenario change to the Silph Co. mission. You see this gentleman right here

I want to move him to in front of an area I'm adding to Saffron city, and replace him with a "permanent" NPC. Essentially, I want to force the player to take a side route into Silph Co. This has presented me with two problems.
1. His script forces him to stand in front of Silph Co until you beat Giovanni in the Rocket hideout.
'---------------
#org 0x1673B9
lock
checkflag 0x23C
if 0x1 goto 0x81673D7
applymovement 0x6 0x81A75E1
waitmovement 0x0
msgbox 0x81812CA MSG_KEEPOPEN '"I'm a security guard.\pSuspicious ..."
release
end

'---------------
#org 0x1673D7
textcolor 0x3
msgbox 0x8181302 MSG_KEEPOPEN '"[.]\nSnore[.]\pHah! He's taking a ..."
release
end


'---------
' Strings
'---------
#org 0x1812CA
= I'm a security guard.\pSuspicious kids I don't allow in!

#org 0x181302
= [.]\nSnore[.]\pHah! He's taking a snooze!


'-----------
' Movements
'-----------
#org 0x1A75E1
#raw 0x4A 'Face Player
#raw 0xFE 'End of Movements

I don't know how to change it without breaking him completely.

2. Second problem ties into making changes to Team Rocket in general. I don't know how to make the Grunts disappear once Giovanni is defeated in Silph Co. If it's their person I.D. or something else I'm missing.
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old May 25th, 2021 (4:31 AM).
Asith's Avatar
Asith Asith is offline
Uwao
 
Join Date: Nov 2020
Posts: 204
There's nothing in the script you've posted that causes him to stand there, move, or disappear at any point. It's most likely a level script in Saffron City itself (and a level script in Silph Co that makes the grunts disappear too). Look up a level script tutorial
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old May 27th, 2021 (12:36 PM). Edited May 27th, 2021 by Momoro.
Momoro's Avatar
Momoro Momoro is offline
I'm gonna put some dirt in your eye..
 
Join Date: Aug 2019
Location: Castelia City, Unova
Gender: Male
Posts: 269
Already tested with a 1.0 FireRed ROM, it's a level script. It has nothing to do with the grunt's own script. You can use Advance Map + any script editor (when I say "any" I mean XSE..) to edit this. When opening the level script using Advance Map and XSE, it comes out as:

Code:
'---------------
#org 0x167365
setworldmapflag 0x89A
checkflag 0x23C
if 0x0 call 0x8167372
end

'---------------
#org 0x167372
movesprite2 0x6 0x21 0x1F
return
(since you just want to remove him from the front of Silph Co. altogether, just remove the two lines after setworldmapflag)

Open Advance Map (I recommend using 1.92 - 1.95). Load your ROM, navigate to Saffron City (and double-click it). Click the "Header" tab. Scroll down to "Map script", and then click "Open script". And, make sure you have a defined script editor (again, strongly suggest XSE for this..)

...

As for the grunts in Silph Co., it's (probably, not 100% sure) involved with the script tiles that activate Giovanni's battle sequence at the final floor of the Silph Co. building. The Person Event for Giovanni does not directly have a script on him, it's controlled by the script tile. (note: Every grunt and scientist in the building has a Person ID of 53..)

The level script(s) of the Silph Co. building have nothing to do with the grunts (they only mess with the tiles of the room).

Also, when creating a new script, re-point it to free space (FreeSpaceFinder is your friend), and don't just overwrite old offsets (can be game-breaking).
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
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 9:16 AM.