’Cause all games were better on the GBC

You are not logged in.

#1 2016-02-26 23:22:59

Registered: 2015-10-25
Post 152/332


I'm thinking of changing its type to Ground for Beta 2.1 (more on that in a different thread) of my TCNS. But first, I'm going to need to make sure it can still hit Flying-types despite the change to Ground-type, as in Gen II. How do you make the game ignore type immunities for a single attack?


#2 2016-02-27 04:08:15

Danny-E 33
Registered: 2012-06-09
Post 937/1,205

Re: Sand-Attack

As usual, the answer is you code the functionality. You ask the question as if there is a magic key, but the truth is you just write the code that accomplishes what you are asking for.

If you want more useful answers from members like me and others, then you have to make an attempt at solving the problem, at the bare minimum, by coming up with a strategy. This way, we can give you advice and critique on the strategy you've laid out.

If all you ask is "how" then the answer is gonna be "code it".

To begin coming up with a strategy to solve this problem, it's a good idea to start by taking a look at the asm routine that usually handles the data in question, in this case being type match-up effectiveness data.

If you have no idea how the original routine accomplishes its task, then there's no way you're gonna be able to magically figure out the changes needed to produce the desired functionality.

Take this post of yours for example. You at least identified the piece of code that you knew was responsible for the behavior that you were trying to change. That's a good first step.

Ideally, you should have had some commentary demonstrating that you struggled with the issue on your own for a while and are stuck, instead of immediately resorting to asking how to do it.
I want to help you, but you have to put more effort into your posts.
It's okay to have questions, but they need to be developed questions.


#3 2016-02-27 23:48:41

Registered: 2016-02-23
Post 4/55

Re: Sand-Attack

Perhaps you can add a new type only for that move, that acts as the 'Normal' type but it's named 'Ground' too?

Or modify the immunity code to check if sand attack was the last move used before applying it.

Last edited by Montblanc (2016-02-28 00:24:05)


#4 2016-02-28 00:34:29

From: Spain
Registered: 2012-09-16
Post 365/450

Re: Sand-Attack

Residual moves don't call move effectiveness unless you specify it. A ground type sand attack is going to hit flying types by default.

Last edited by Crystal_ (2016-02-28 00:34:47)


Board footer

Powered by FluxBB