aliens

Author Topic: First Modding Attempt  (Read 1927 times)

Offline Emmanon

  • Squaddie
  • *
  • Posts: 1
    • View Profile
First Modding Attempt
« on: August 23, 2021, 08:13:36 pm »
Forgive me if there is already a thread for this. I just want to edit the time unit costs of stock weapons. Specifically, modify the Heavy Plasma rifle. I've attempted to edit weapon mods for OXCE. They throw errors. There are several variables I don't have documentation for like Damage Type. Any help or direction to an existing thread is greatly appreciated. I'm overwhelmed by the amount of information.

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11730
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: First Modding Attempt
« Reply #1 on: August 27, 2021, 02:46:29 pm »
Code: [Select]
items:
  - type: STR_HEAVY_PLASMA
    tuAuto: 10
    tuSnap: 5
    tuAimed: 25

Now the three firing modes have TU costs: 10%, 5% and 25% respectively.

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
Re: First Modding Attempt
« Reply #2 on: August 28, 2021, 01:59:42 pm »
here are several variables I don't have documentation for like Damage Type.

There is a very useful web site that covers the majority of variables and commands available for modding via .rul file in OpenXcom:
UFOpaedia: Ruleset Reference Nightly (OpenXcom)

Just remember that DamageType: 0 can also be used to create an extra resistance type if you need it and that in OXCE you can make another 10 resistance types in addition to the standard ones. (DamageType: 10-19)

Here is a link to the section of the documentation covering the DamageType: variable.
Quote
DamageType:
    0 - None
    1 - Armor Piercing
    2 - Incendiary
    3 - High Explosive
    4 - Laser
    5 - Plasma
    6 - Stun
    7 - Melee
    8 - Acid
    9 - Smoke
« Last Edit: August 28, 2021, 02:16:46 pm by The Martian »