aliens

Author Topic: [Solved] OXCE polynomial explanation `s: x`, `s: [x]`, `s: [x, y]` etc.  (Read 2195 times)

Offline KingMob4313

  • Commander
  • *****
  • Posts: 543
  • Never let me down again.
    • View Profile
    • Mod Hub for Equal Terms 2.0
This is a monstrously stupid question.

but what does this mean exactly:

Code: [Select]
     
      #each bonus can be written as: `s: x`, `s: [x]`, `s: [x, y]` or `s: [x, y, z]`.
      #where each value represents coefficient of polynomial `x * s + y * s^2 + z * s^3`.

What does s, x, y, z all mean and how would you write in in the rul file?

« Last Edit: February 11, 2023, 05:47:41 pm by Meridian »

Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1931
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: OXCE polynomial explanation `s: x`, `s: [x]`, `s: [x, y]` or `s: [x, y,
« Reply #1 on: November 02, 2018, 07:27:22 pm »
Code: [Select]
items:
  - type: STR_WEAPON_OR_AMMO_WITH_DAMAGE_BONUS
    damageBonus:
      firing: [1.0, 0.01, 0.0001]

This damage bonus will add 100% of the user's firing accuracy to the base power, along with 1% of firing accuracy squared and 0.01% of firing accuracy cubed. According to the variables, s here is firing accuracy, x, y, and z are 1.0, 0.01, and 0.0001, respectively. In other words, s is the unit stat you want the bonus to be based on, and x, y, and z are the polynomial coefficients.
« Last Edit: November 02, 2018, 07:29:16 pm by ohartenstein23 »

Offline Stoddard

  • Colonel
  • ****
  • Posts: 485
  • in a fey mood
    • View Profile
    • Linux builds & stuff
Re: OXCE polynomial explanation `s: x`, `s: [x]`, `s: [x, y]` or `s: [x, y,
« Reply #2 on: November 02, 2018, 08:14:30 pm »
eh, well, I guess if the variable (firing accuracy) was x and coeffiecients (0.1, etc) were a, b, c
and default values of 0 for the coefficients were mentioned,
and also insist on always using full list with explicit zeroes mentioning the old form being deprecated and for backwards-compatability only

it would be more clear