OpenXcom Forum

Modding => Help => Topic started by: Emmanon on August 23, 2021, 08:13:36 pm

Title: First Modding Attempt
Post by: Emmanon 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.
Title: Re: First Modding Attempt
Post by: Solarius Scorch 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.
Title: Re: First Modding Attempt
Post by: The Martian 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) (https://www.ufopaedia.org/index.php/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 (https://www.ufopaedia.org/index.php/Ruleset_Reference_Nightly_(OpenXcom)#Power_and_Damage_types).
Quote
DamageType:
    0 - None
    1 - Armor Piercing
    2 - Incendiary
    3 - High Explosive
    4 - Laser
    5 - Plasma
    6 - Stun
    7 - Melee
    8 - Acid
    9 - Smoke