Jump to content

biceryen

Veterans
  • Posts

    9
  • Joined

  • Last visited

 Content Type 

Profiles

Forums

Events

Reborn Development Blog

Rejuvenation Development Blog

Starlight Divide Devblog

Desolation Dev Blog

Posts posted by biceryen

  1. Still working on Sucker Punch, was sidetracked by EV training.

    At the same time, why don't one of us look into the coding for double battles?

    If we understand the logic behind those scripts, we can easily trace out a few methods we can piece together to fix Flame Burst, perhaps use/define a method that checks if the move is used during a double battle and a conditional checking that there are no nil placeholders (on the case that the receiving side has 1 pokemon left on the field).

    Pseudo code could be as follows in flame burst's defined method (should not be additionaleffect, because we want to apply only burn damage, not base damage + burn damage)

    If double battle is in effect
             Apply damage equal to 1/16th of the respective pokemon's total HP
             UNLESS : the side receiving the attack does have a nil placeholder
    

    Just looked into it. Looks like there's something similar with the move Encore in PokeBattle_Battle. So, shouldn't be too difficult.

  2. Yes, a function needs to be defined before it can be used. That is a core element of writing functions.

    And as much as I'd like to assign myself the EV Judge, I suppose I should look into the functionality of Magic Guard and Trick Room as they were significant in episode 9's storyline.

    ...which leads me to the query of which essentials version are we using Ame? v12? 12.1? 12.2?

    It's 12.2.

    Also, my bad for double post.

  3. Thank you for the explanation. I guess I do have the ability to script, it's just figuring out where to put it exactly is my problem. Also maybe the syntax still. But it seems all new script will start with def unless it's added in with with an already existing defined script. Like with Moxie.

  4. I stated to put it after Mummy simply for the sake of convenience and order, I am certain though, that Mummy will activate first to negate Moxie regardless of the order. But I cannot test this because I'm too lazy, if you find a trainer with at least 2 pokemon and opens up with a pokemon with Mummy, be my guest to test if Moxie is negated.

    That's not what I was asking. Earlier, when I was trying to script Moxie, I had made it a separate script from the others. Stand-alone, for my own organization's sake. However, it didn't work. And I tried the same with yours and it gives me an error or user,nil. So I guess it just doesn't have the reference available when it's on its own.

    So, guess added scripts should be included within an already existing script.

  5. Just woke up, got 1 class in the morning and I'll be happy to code all evening.

    So Moxie's code is applied directly after Mummy's code in the PokeBattle_Battle script. The code for Moxie should start at line 1966.

    [ code ] doesn't combo with Spoilers :(

    if isConst?(user.ability,PBAbilities,:MOXIE) && user.hp>0 && target.hp<=0
    
            if !user.pbTooHigh?(PBStats::ATTACK)
    
              user.pbIncreaseStatBasic(PBStats::ATTACK,1)
    
              pbCommonAnimation("StatUp",user,nil)
    
              pbDisplay(_INTL("{1}'s Moxie raised its Attack!",user.pbThis))
    
            end
    
    end

    That is EXACTLY the script I wrote myself at one point. So the added on scripts have to be in the right places for them to work? Or is that just for organization?

    EDIT: Also, might I suggest something? Skype. And a shared Dropbox folder.

  6. Bice Ryen signing in! Can't make any promises that I'll be of much help, but I'll sure as hell try my best.

    I certainly understand the script itself. It's easy to read and figure out. I think my problem just lies with the initial syntax and how to add on to existing scripts with my own.

    Anyway, happy to be of service, hopefully not a nuisance.

×
×
  • Create New...