• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • 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] Remove Damage Rolls

  • 67
    Posts
    4
    Years
    • He/Him
    • Seen Nov 16, 2023
    So all pokemon games and essentials have a damage roll or like range not a set number of how much damage you do besides dragon rage, sonic boom, night shade, etc. what I wanna do is get rid of that make the damage roll the middle roll each time is there a way to do that I'm gonna be looking into the code as this post is up if I figure it out I'll post it but if somebody else figures it out could you post it on here so I may use it and so others in the future can use it if they want to?
     
    I'm asking for version 17.2 but if you do it for v18 I guess thats cool too
     
    Never Mind it was easier than I thought I just changed this line of code

    '# Random variance
    if (options&NOWEIGHTING)==0
    [email protected](16)
    damage=(damage*random/100.0).floor
    end'

    to

    '# Random variance
    if (options&NOWEIGHTING)==0
    [email protected](1)
    damage=(damage*random/100.0).floor
    end'

    so that it would only choose one random option out of 1 option I didn't want to get rid of it cause I thought it might mess up my essentials plus I'm to lazy to test it rn but if it doesn't mess anything up by removing it completely let me know :)
     
    Back
    Top