Author Topic: melee stun hard coded?  (Read 676 times)

Offline Nirran

  • Captain
  • ***
  • Posts: 94
    • View Profile
melee stun hard coded?
« on: November 04, 2023, 05:12:43 am »
i wanta add melee stun to an item,is it possible?

coincidentaly,is multi post frowned on?i can make one thread if multiple threads bugs

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8631
    • View Profile
Re: melee stun hard coded?
« Reply #1 on: November 04, 2023, 10:58:27 am »
coincidentaly,is multi post frowned on?i can make one thread if multiple threads bugs

making separate threads for separate questions/issues is preferred

Offline Nord

  • Commander
  • *****
  • Posts: 1643
  • The Gate is open.
    • View Profile
Re: melee stun hard coded?
« Reply #2 on: November 04, 2023, 11:21:20 am »
i wanta add melee stun to an item,is it possible?
...
All these commands you can see here:
Ruleset reference nightly

As for melee stun:
Code: [Select]
   meleeeAlter:
     ToStun: 1.0 #or anything
In an item description.

Offline Nirran

  • Captain
  • ***
  • Posts: 94
    • View Profile
Re: melee stun hard coded?
« Reply #3 on: November 04, 2023, 06:15:12 pm »
Thank You very much !

Offline Nirran

  • Captain
  • ***
  • Posts: 94
    • View Profile
Re: melee stun hard coded?
« Reply #4 on: November 04, 2023, 09:00:56 pm »
making separate threads for separate questions/issues is preferred

ok thanks
« Last Edit: November 04, 2023, 09:49:42 pm by Nirran »

Offline Nirran

  • Captain
  • ***
  • Posts: 94
    • View Profile
Re: melee stun hard coded?
« Reply #5 on: November 05, 2023, 12:55:40 am »
got it working,but how do i change TU for melee/hit?
tried
Code: [Select]
    tuHit: 20
    tuMelee: 20

Offline Nord

  • Commander
  • *****
  • Posts: 1643
  • The Gate is open.
    • View Profile
Re: melee stun hard coded?
« Reply #6 on: November 05, 2023, 11:10:10 am »
Here is an example of melee weapon. Definitions of these words you can see in ruleset reference (link in a previous post).
Code: [Select]
  - type: STR_HUNT_KNIFE
    categories: [STR_HUMAN_EQUIPMENT, STR_CIVILIAN_EQUIPMENT, STR_MELEE]
    size: 0.05
    costBuy: 50
    costSell: 40
    weight: 3
    bigSprite: 361
    floorSprite: 510
    handSprite: 1340
    meleeHitSound: 101
    meleeAnimation: 4
    power: 3
    damageType: 7
    damageBonus:
      melee: 0.1
    accuracyMelee: 100
    tuMelee: 6
    flatRate: true
    meleeMultiplier:
      melee: 1.0
    costMelee:
      time: 6
      energy: 2
    costThrow:
      energy: 6
    battleType: 3
    clipSize: -1
    invWidth: 1
    invHeight: 2
    armor: 60
    experienceTrainingMode: 13
    attraction: 10
    listOrder: 500