- 853
- Posts
- 4
- Years
- Seen Nov 9, 2023
Made a new ability and got it working just need some helping getting it to work with my custom health functions.
What i did was in the pokemon.c I changed the shedinja health equation. First I flipped the two, so shedinja has normal health, and everything else has the old shedinja max 1 hp, and no growth on lvl up. Then I set it so instead of it being based on species shedinja, its on shedinja's ability wonder guard.
That's worked fine, But now that I've added a new ability and with an "OR" statement to my function I can't get my second logical argument to use the same function as the first, while leaving everything else to use the second function.
I gave up on using "else" in the first part, since I read that else applies itself to the innermost if function, so that just ensured that my second statement used the health function I didn't want it to. Right now I'm trying to get it work with specific statements and != operands.
Attached is my file with a summary txt, with the lines for the relevant functions.
I'm close to it being right, I just need a little help.
What i did was in the pokemon.c I changed the shedinja health equation. First I flipped the two, so shedinja has normal health, and everything else has the old shedinja max 1 hp, and no growth on lvl up. Then I set it so instead of it being based on species shedinja, its on shedinja's ability wonder guard.
That's worked fine, But now that I've added a new ability and with an "OR" statement to my function I can't get my second logical argument to use the same function as the first, while leaving everything else to use the second function.
I gave up on using "else" in the first part, since I read that else applies itself to the innermost if function, so that just ensured that my second statement used the health function I didn't want it to. Right now I'm trying to get it work with specific statements and != operands.
Attached is my file with a summary txt, with the lines for the relevant functions.
I'm close to it being right, I just need a little help.
Attachments
Last edited: