Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 1970-01-01 00:33:30

Chaos Rush
Member
Registered: 2010-10-16
Post 1/62

Generic Script not working (Gold)

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 MegaMap

Here is what the actual script looks like in PKSV

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

Offline

#2 1970-01-01 00:33:30

Miksy91
Member
Registered: 2010-10-16
Post 149/2,305

Re: Generic Script not working (Gold)

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

Also, see if you've pointed it correctly to work.
If the script doesn't happen at all that may be the problem.

Offline

#3 1970-01-01 00:33:30

Tauwasser
Member
Registered: 2010-10-16
Post 47/447

Re: Generic Script not working (Gold)

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

Offline

#4 1970-01-01 00:33:30

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 303/3,456

Re: Generic Script not working (Gold)

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.

Offline

#5 1970-01-01 00:33:30

Chaos Rush
Member
Registered: 2010-10-16
Post 2/62

Re: Generic Script not working (Gold)


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


Quote:

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.

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!!!!!
kantoincolor.png

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?

Offline

Board footer

Powered by FluxBB