aliens

Author Topic: Altering existing item's values the have been added by other mods  (Read 2772 times)

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
If you are altering the values of an item that was introduced in a different mod, what is the best way to go about it?

Should the "- delete: STR_ITEM_NAME" command be used and then the entire item be redefined in your new mod?

Or can individual values be changed from within your mod while leaving the source mods values untouched?

Example, change the weight and accuracy of the laser rifle without redefining it entirely:

Code: [Select]
  - type: STR_LASER_RIFLE
    weight: 12
    accuracyAimed: 9
    listOrder: 50


Or for example adding the variable that prevents HWP from accessing their inventory during battle:
Code: [Select]
armors:
  - type: EXAMPLE_ARMOR
    allowInv: false

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: Altering existing item's values the have been added by other mods
« Reply #1 on: December 05, 2017, 03:17:28 am »
individual values can be changed from within your mod, while leaving the source mods values untouched.

mod load order dictates the final value.

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
Re: Altering existing item's values the have been added by other mods
« Reply #2 on: December 08, 2017, 06:41:58 pm »
Perfect! ^_^

Thank you for the information.