Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Neverwinter Nights: Enhanced Edition has been released! Visit nwn.beamdog.com to make an order. NWN:EE FAQ is available.
Soundtracks for BG:EE, SoD, BG2:EE, IWD:EE, PST:EE are now available in the Beamdog store.
Attention, new and old users! Please read the new rules of conduct for the forums, and we hope you enjoy your stay!

to hit and combat rules

someone knows where is the code for combat and to hit? and is there any way to mod it?

Comments

  • DJKajuruDJKajuru Member Posts: 2,738
    There are 2da files for thac0/character class and level , you can also edit how strength and dexterity affect combat .You can do all of that with Near Infinity, is that what you're looking for?

  • dorpinchdorpinch Member Posts: 5
    no, but thanks
    The to hit mechanic works like that, right?:
    if thac0-ac<=d20 its a hit, and than you have to roll the damage.
    I want to change it to this:
    ((thac0+d20)-(ac+d20))*z=damage taken.
    so basically each character gets more thac0 and ac when they level up. z is a number that represent the basic damage every weapon makes, and you multiply it by the difference between the hit roll and the dodge roll. so a good attacker with HIGH thac0 will have more chance causing more damage, and a good defender with HIGH ac will reduce the injury he gets.
    I just need to be able to modify this code

    Loldrup
  • subtledoctorsubtledoctor Member Posts: 9,694
    d20+AC>=thac0 is a hard-coded roll made for weapon attacks. I'm pretty sure there's no way to change that. (Though you can of course modify thac0 and/or AC however you like.)

    There's no way to record the difference between the two sides if that equation and use the resulting value to modify a damage roll.

Sign In or Register to comment.