Skeetendo

’Cause all games were better on the GBC

You are not logged in.

  • Index
  • → Generation II
  • → Pokecrystal - Editing trainers to have held items that don't normally

#1 2020-12-30 03:17:26

BOOST15673
New member
Registered: 2020-12-30
Post 1/2

Pokecrystal - Editing trainers to have held items that don't normally

My example is the first rival battle. In data/trainers/parties.asm, RIVAL1 (3) uses Totodile. I am attempting to give it a Berry to simulate actually having stolen it from the lab since your starter also holds a Berry.

By changing the trainer type to "TRAINERTYPE_ITEM" and then adding it to the line beneath it "TOTODILE, BERRY", it does nothing. I even made sure by checking the Pokefan entries to make sure my syntax is correct. The rom builds just fine, but in game it does nothing when getting low on health, as if it wasn't holding anything, the amount of spaces between Totodile and Berry don't seem to make a difference either despite seeming like it should by other trainers.

I also thought to go a step further by simply changing the trainer type to "TRAINERTYPE_ITEM_MOVES" and then adding it to the line beneath it "TOTODILE, BERRY, WATER_GUN, NO_MOVE, NO_MOVE, NO_MOVE".

Again, checking some Cooltrainer entries like BETH confirms my syntax seems correct. In this example, the movepool test, only knowing water gun, works, Totodile never scratches, only uses water gun like it should, but again, the Berry does not work. Even if I use per se, "PSNCUREBERRY", poisoning him does nothing to trigger the held berry either.

Is it possible that Berries only work by Pokefan teams, and items as a whole with custom movesets only by certain cooltrainers? Can I not make a trainer use items that doesn't normally? Adding custom movesets is fine it would seem, with or without custom held items, just the held items themselves seem finicky?

I must be missing something simple since some Crystal mods have Gym Leaders with held items functioning just fine.

Offline

#2 2020-12-30 19:47:07

ElectroMan
New member
Registered: 2018-05-14
Post 8/9

Re: Pokecrystal - Editing trainers to have held items that don't normally

Unlike every other trainer, the first rival encounter is hardcoded to not have an held item.

Offline

#3 2020-12-30 20:05:24

BOOST15673
New member
Registered: 2020-12-30
Post 2/2

Re: Pokecrystal - Editing trainers to have held items that don't normally

Hmpf! Figures I oversaw this. I checked the hardcoded logic section before and must've missed it. I apologise for my ignorance. I wonder if anything can be done sometime though, Spawn points when you start and finish the game allows you to change the map and coordinates, so I wonder if anything will budge here. Well thanks so much again.

Now to figure out Lv 1 Eggs and Gym Leader & E4 rematches. Of course I probably missed a tutorial somewhere again, so I'll start there.

Offline

  • Index
  • → Generation II
  • → Pokecrystal - Editing trainers to have held items that don't normally

Board footer

Powered by FluxBB