Results 1 to 6 of 6

Thread: How to decrease multiple values

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default How to decrease multiple values

    Hey,

    is it possible to for example decrease the melee_attack of all units by 5? At the moment I have to change every single value and that's pretty tedious

  2. #2
    FaLKReN's Avatar Civis
    Join Date
    Sep 2013
    Location
    Budapest, Hungary
    Posts
    196

    Default Re: How to decrease multiple values

    Yes, if you export the table as a TSV then open it with Excel you'll be able to do it.

    Then right click on the land_units_tables in your expamle and select ..Add/DB File from TSV.

    The pack file manager will do the rest for you.
    #

  3. #3
    Kurisu Paifuaa's Avatar Biarchus
    Join Date
    Mar 2009
    Location
    Pennsylvania, US
    Posts
    621

    Default Re: How to decrease multiple values

    There is also a function in PFM to perform a math operation on a column of data. I believe if you combine this with a filter, it will apply only to what is visible.

    Filter your table down to a specific unit class (or whatever) you want to edit and right click on the column header for the relevant statistic (e.g. melee_attack) and select Apply Expression. Then fill the dialogue box with an appropriate expression (e.g. -15, *.25 etc).

    That should do what you want without having to export.

  4. #4
    crzyrndm's Avatar Artifex
    Join Date
    Feb 2011
    Location
    New Zealand
    Posts
    2,576

    Default Re: How to decrease multiple values

    Quote Originally Posted by Kurisu Paifuaa View Post
    I believe if you combine this with a filter, it will apply only to what is visible.
    Or just select/highlight the relevant entries.
    It’s better to excite some and offend others than be bland and acceptable to all
    Creating a mod.pack with PFM - Database Table Fragments

  5. #5
    Kurisu Paifuaa's Avatar Biarchus
    Join Date
    Mar 2009
    Location
    Pennsylvania, US
    Posts
    621

    Default Re: How to decrease multiple values

    Quote Originally Posted by crzyrndm View Post
    Or just select/highlight the relevant entries.
    Ahah, yes. You can select values and right click those (instead of the header) and get the same option in the context menu. Thanks

  6. #6

    Default Re: How to decrease multiple values

    Thanks for the advice.

    +rep
    Last edited by Master.Mind; January 02, 2014 at 05:59 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •