Jump to content

Shiya

Members
  • Posts

    3
  • Joined

  • Last visited

Reputation

0 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Oops, yeah don't want to make Bulbasaur take 4x damage from Nidoran's Poison Sting. XD Really this solution should work quite nicely for these critters as well: I've got to break for today I've thought about Pokémon way too much. I got an exciting day tomorrow as well. Thanks for the help and catching what would have been terrible for the trainers on route 1. EDIT: So I've been checking out all the different scripts to see which parts I need to mod. It looks like I can just add a few into PokeBattle_Move. Specifically something like this but I'm not sure what the Syntax is.. I know am thinking I will need to use something like this but am not super sure where to put it inside the PokeBattle_Move area.. maybe add it onto def pbTypeModifier? ----------------------------------------------------------------------------------------------------------------------- def pbTypeModifier (type, attacker, opponent,zorovar=false) //all the existing things like modifications because of Items and terrain first then mine below// return 8 if isConst?(type,PBTypes,:NORMAL) && opponent.hasType?(:NORMAL) && ifConst?(type,PBTypes,:FIRE) && opponent.hasTYpe?(:FIRE) && if Const?(type,PBTypes:WATER) && opponent.hasType?(:WATER) && if Const?(typePBTypes:ELECTRIC) && opponent.hasType?(:ELECTRIC) && if Const?(typePBTYpes:GRASS) && opponent.hasType?(:GRASS) .... ----------------------------------------------------------------------------------------------------------------------- Another player wanted to add a new type and was told to modify the defpbCalcDamage function much later on for adjusting type on type damage shown here https://www.pokecommunity.com/showthread.php?p=9401592 if I did it that way it might be okay.. I'd kind of like for the type to be checked before any abilities like Dry Skin or wacky items I might implement but I don't really understand why the battle system is made the way it is. For now I'm going to try messing around with the pbTypeModifier section and see if I can't get it to compile and if successful test it out by going to the Ghost gym and using my Golett.
  2. That does sound expedient. Brilliant. As far as actually changing it to neutral damage it would be a matter of just adding a 2.0 multiplier right after the 0.5 multiplier right? Or would you actually remove the 0.5 from the damage calculations.
  3. Alright so basically I am messing with the typical weakness/resistance relationships with the changes below but it's not enough to just change the weaknesses and resistances thanks to design rule #3. Rules 1 and 2 are listed as it wouldn't make much sense on it's own. So rules 1 and 2 require no real difficult work. Just have to edit the types.txt and recompile. Easy. Rule 3 makes me think I might actually have to do one of these: - Do something like ...... if Pokémon is dual type then runBLAH if Pokémon's type A is weak to B then Pokémon takes normal damage from B for this battle. Otherwise runBLEM if Pokémon's type B is weak to type A then Pokémon takes normal damage from A for this battle. Otherwise End End End The idea is that bit of code or script would run after all Pokémon hit the field and whenever a new Pokémon hits the field. It would only bother checking Rule 3 (by running BLAH) and the inverse of Rule 3 (BEM) if a Pokémon was dual type. These values would have to be stored temporarily of course and erase themselves. This would also put into temporary memory conditions that certain types of moves, for the duration of the battle at least, dealt more or less damage to Pokémon referenced by another standalone specific value. Weird things would happen if you referenced by name (cheating the game by naming the Pokémon something silly so all weaknesses are ignored for example). I mean I can have an idea of how this would be done but ... if it's been done or it doesn't need to be a whole new addition to the battle system then no reason for it. So... if somebody has another way of going about this (before I go through the migraine of figuring out the code structure and learning syntax) I'm all game. I suppose I can learn how to code this but.. if there is a few lines or a batch of code from any open source projects ya'll know of I'd love to hear it.
×
×
  • Create New...