Author Topic: More ModScript examples  (Read 1093 times)

Offline Yankes

  • Moderator
  • Commander
  • ***
  • Posts: 2336
    • View Profile
Re: More ModScript examples
« Reply #15 on: July 16, 2020, 02:29:58 am »
`battle_action` is value you seek for point 1)
Second point is on TODO list. Probably in this month I will have some things finished.

Offline KingMob4313

  • Commander
  • *****
  • Posts: 537
  • Never let me down again.
    • View Profile
    • Mod Hub for Equal Terms 2.0
Re: More ModScript examples
« Reply #16 on: July 17, 2020, 12:35:36 am »
`battle_action` is value you seek for point 1)
Second point is on TODO list. Probably in this month I will have some things finished.

Thank you, Yankes, but no need to hurry.

The scripting is pretty intuitive as long as the scope is limited.  Still figuring out how to go from mode to mode, but the examples provided help.

I've just been playing with different things.  Got it to stop happening for smoke pretty easily and have it re-rolling damage rolls if the damage is under orig_power so that it will give base damage to 150% on a crit.

Offline Yankes

  • Moderator
  • Commander
  • ***
  • Posts: 2336
    • View Profile
Re: More ModScript examples
« Reply #17 on: August 02, 2020, 05:56:00 pm »
I now added support to query damage type of rule item, two new operations `getDamageType` and `getMeleeDamageType`, each one return object that can be check for exact bonuses or random logic its use.