• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Illusion

8
Posts
9
Years
    • Seen Dec 19, 2014
    I haven't tested it 100%, but I know it works in singles (haven't had the time to test it for double battles, but it should theoretically work, but you know how it is with code :) )
    Anyway, here it is:
    Spoiler:

    I know this should probably go to the Gen 6 project but I haven't had the time to check out the compiled scripts file, though I don't think there should be any conflicts, but I just wanted to post the script so people could test it.
     
    8
    Posts
    9
    Years
    • Seen Dec 19, 2014
    Oh, you mean this:
    Code:
        if genderA==0 # Male
          textpos.push([_INTL("♂"),genderX,6,false,Color.new(48,96,216),shadow])
        elsif genderA==1 # Female
          textpos.push([_INTL("♀"),genderX,6,false,Color.new(248,88,40),shadow])
        end
    Yeah, that was a small oversight on my part, I forgot to copy these lines of code too.

    Anyway, I've also made a little AI snippet to make it so that the AI doesn't completely see through your Illusion: (all it affects is the type-related stuff, but at least it makes the AI looks like it cheats less than it actually does :P - though it will only affect higher level trainers due to how the AI works)
    Spoiler:
     
    8
    Posts
    9
    Years
    • Seen Dec 19, 2014
    Oh yeah, thanks for pointing that out, it should also make Transform not work as well.
    Spoiler:
     
    8
    Posts
    9
    Years
    • Seen Dec 19, 2014
    Sorry for the double post, but here is a quick fix from mej71:

    In PokeBattle_Battler replace
    Code:
        if isConst?(self.ability,PBAbilities,:ILLUSION) #Illusion 
          [email protected](@index)
           party=party.find_all {|item| item && !item.egg? && item.hp>0
          if party[party.length-1] != @pokemon
             @effects[PBEffects::Illusion] = party[party.length-1]
           end
         end #Illusion
    with
    Code:
        if isConst?(self.ability,PBAbilities,:ILLUSION) #Illusion
           [email protected](@index)
           party=party.find_all {|item| item && !item.egg? && item.hp>0 }
           if party[party.length-1] != @pokemon
             @effects[PBEffects::Illusion] = party[party.length-1]
           else
             @effects[PBEffects::Illusion]      = nil
           end
         else
           @effects[PBEffects::Illusion]      = nil
        end #Illusion
     

    Ekulchu

    Professional Self-Deprecator
    4
    Posts
    6
    Years
  • What are you using to edit abilities?
    I couldn't find anything but name changing when I looked...
     
    Back
    Top