|
Post by chaosrush on Sept 21, 2010 18:06:02 GMT -5
I can't believe I'm actually having this problem. Anyways, I'm having trouble getting a simple script to work. And by that, I mean, you step on a tile, and something should happen. Well, the problem is, I assigned a trigger event, and when the player steps on the tile, nothing happens. And yes, I've checked, there is a script assigned. All I'm trying to do is re-create the Pallet Town event from the Kanto-based games in Gold. Here is what the trigger properties looks like in MegaMapHere is what the actual script looks like in PKSVI would really appreciate help on this, and I would love to get into GBC hacking. EDIT: Nevermind, I got it working. Thanks Tauwasser and Mateo.
|
|
|
Post by Miksy91 on Sept 21, 2010 23:55:02 GMT -5
I haven't made any trigger event scripts this far so I can't say for sure but I believe the trigger event in Event Data points to a script (soon someone's going to say I'm wrong but I don't mind ). Also, see if you've pointed it correctly to work. If the script doesn't happen at all that may be the problem.
|
|
|
Post by Tauwasser on Sept 22, 2010 2:42:51 GMT -5
You have to insert the map bank and number in the global trigger table at 25:4000. The format is [map bank][map number][ram address (2b)] IIRC. So you will need to replace a current map in the table or find a guaranteed unused byte in RAM.
cYa,
Tauwasser
|
|
|
Post by Mateo on Sept 23, 2010 0:54:59 GMT -5
If you are making a hack where you start in pallet town, as it appears you are, then you probably won't be needing triggers in New Bark town. So in that case, you could replace New Bark Town with Pallet Town in the trigger table, and not have to worry about adding a new entry to the list.
|
|
|
Post by chaosrush on Sept 23, 2010 17:44:42 GMT -5
You have to insert the map bank and number in the global trigger table at 25:4000. The format is [map bank][map number][ram address (2b)] IIRC. So you will need to replace a current map in the table or find a guaranteed unused byte in RAM. cYa, Tauwasser That can be done with a hex editor, correct? I tried calculating the offset (25:4000) with PKSV's offset converter, but it didn't work, so I'm currently stuck at finding the trigger table... Yeah, basically I'm trying to re-create the original games in Gen II. In case you haven't noticed, I've referred to Secrets and Rumours since it re-created some R/B/Y stuff. EDIT: nvm, I think I found the offset 094000. EDIT: OMG IT WORKS!!!!! Thanks guys, you don't know how awesome this is. EDIT: Even though I got it working, I want to make sure I did it correctly. I changed the bytes at 094000 to 0D 02 C6 E8. Is that okay?
|
|