The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   Script Team Rocket Changes (https://www.pokecommunity.com/showthread.php?t=452020)

SixtySixRoses May 24th, 2021 11:14 PM

Team Rocket Changes
 
I want to make a very specific scenario change to the Silph Co. mission. You see this gentleman right here
https://scontent.fyip1-1.fna.fbcdn.net/v/t1.6435-9/191500154_10221597644955823_8239024470750277594_n.jpg?_nc_cat=108&ccb=1-3&_nc_sid=730e14&_nc_ohc=Ql5_ggcOd_IAX-aYQiC&_nc_ht=scontent.fyip1-1.fna&oh=e7d6f26541fbb31ffb39cdd7405e6e9c&oe=60D3A392
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.

Asith May 25th, 2021 4:31 AM

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

Momoro May 27th, 2021 12:36 PM

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).


All times are GMT -8. The time now is 9:16 AM.


Like our Facebook Page Follow us on Twitter © 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.