Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2016-01-07 03:36:12

Fotomac
Member
Registered: 2015-10-25
Post 133/293

Confusing Imakuni? AI

I'm currently in the process of injecting Imakuni? into my pokered hack, and the intention is for each of his Pokémon to start their fight confused. How do I put it down in trainer_ai.asm?

Offline

#2 2016-01-07 03:51:02

comet
Member
Registered: 2012-04-09
Post 622/672

Re: Confusing Imakuni? AI

what does that have to do with ai?

Offline

#3 2016-01-07 04:00:28

Fotomac
Member
Registered: 2015-10-25
Post 134/293

Re: Confusing Imakuni? AI

Well, I'm planning to include him as a trainer in Beta 2 of my hack, and I'm planning to homage his infamous TCG card.

"Your active Pokémon is now confused. Imakuni? wants you to play him as a Basic Pokémon, but you can't. A mysterious creature not listed in the Pokédex. He asks kids around the world, 'Who is cuter--Pikachu or me?'"

Offline

#4 2016-01-07 12:25:35

Crystal_
Member
From: Spain
Registered: 2012-09-16
Post 355/411
Website

Re: Confusing Imakuni? AI

What comet meant is that it has nothing to do with ai. ai controls the actions of the enemy trainer and pokemon, not whether your pokemon start the battle confused or not. Thus, there's nothing to do in trainer_ai.asm.

Look for the functions that send a pokemon into battle (there's one for player and one for enemy), and modify them so that whenever a pokemon is sent out its battle status bit corresponding to the confusion status becomes set, assuming that the trainer class is Imakumi or whatever you're doing.

Offline

#5 2016-01-07 14:35:15

Fotomac
Member
Registered: 2015-10-25
Post 135/293

Re: Confusing Imakuni? AI

That's what I'm talking about: Imakuni?'s Pokémon, not the player's.

Offline

#6 2016-01-07 16:14:35

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

Re: Confusing Imakuni? AI

That's what Crystal_ is talking about too. The point is that what you are looking for is not in trainer_ai.asm. As he said, there is a routine that handles sending your Pokémon into battle, AND one for the enemy. So you just find the one for the enemy and add in the Imakuni? check.

Offline

Board footer

Powered by FluxBB