• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • 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.

[Scripting Question] Gen 7 Move Script Problems

Lazy Catalyst

What you do, the way you think, makes you differen
  • 91
    Posts
    7
    Years
    Hi Guys
    I used some move script that I found on the community but some of them are giving me an error
    Please help me, I am new to scripting and Ruby language
    The first one is Spotlight:
    Spoiler:

    Next one is Throat Chop:
    Spoiler:

    Next one is Laser Focus:
    Spoiler:
     
    I'm not really good with errors but I'll try.

    I think you probably have to initialize the effects value for your abilities. I keep noticing ">" and "=" in your errors. So I think that might be the problem. For example, for Laser Focus it would look like this:
    Code:
    @effects[PBEffects::LaserFocus] = 0
    I think the place to put it is in PokeBattle_Battler, under @effects[PBEffects::Yawn]. I did so for Laser Focus and it works correctly. I have not tried Throat Chop or Spotlight, yet, but I think the same method should work.
     
    I sent to you about Laser Focus:
    Spoiler:


    Throat Chop:
    Spoiler:
     
    Last edited:
    I sent to you about Laser Focus:
    Spoiler:


    Throat Chop:
    Spoiler:

    Thanks you so much Wolf bro
    Now the only one remaining is the Spotlight
     
    Back
    Top