View previous topic :: View next topic |
Author |
Message |
Uranos
Joined: 12 Nov 2009 Posts: 1
|
Posted: Thu Nov 12, 2009 12:26 Post subject: Material and quality in 1.69 |
|
|
Hi
1.69 has added 2 new properties that can be added on items: material and quality. Two specific values for material that I'm interested are "silver" and "cold iron". I would like to make special weapons with this parameter so that they are the only weapons that can deal phisical damage to specific monsters (silver - ghosts/wraiths/spectre; cold iron - demons and few outsiders). Any weapons without these properties are to deal 0 phisical dmg against those creatures even if a weapon is +20 (energy and elemental damage will apply though).
At first there was an idea to set dmg reduction at 50/+6 and giving silver and cold iron weapons a +6 attack bonus (normal weapons have max +5 - with spells), but it doesn't fix the issue with Arcane Archer - which is intended that he used silver/cold iron arrows as well to do any harm)
I would appreciate some help on solving the above matter.
Please note that I am a beginner with nwnx though I do use C/C++.
Many thanks for your support
Uranos |
|
Back to top |
|
|
Baaleos
Joined: 02 Sep 2007 Posts: 830
|
Posted: Fri Nov 13, 2009 13:11 Post subject: nwn events? |
|
|
Its just a thought, but perhaps the nwn_events plugin might be the way to work on this?
It has, I believe, an Attack event, which you can hook onto.
It might be possible to perform your own verification within the Attack hook, so you can verify the weapon being used for the attack, and depending on whats being used, either negate the damage, or increase it etc.
Just a guess though. |
|
Back to top |
|
|
ShaDoOoW
Joined: 20 Aug 2005 Posts: 584
|
Posted: Fri Nov 13, 2009 13:59 Post subject: Re: nwn events? |
|
|
Baaleos wrote: | Its just a thought, but perhaps the nwn_events plugin might be the way to work on this?
It has, I believe, an Attack event, which you can hook onto.
It might be possible to perform your own verification within the Attack hook, so you can verify the weapon being used for the attack, and depending on whats being used, either negate the damage, or increase it etc.
Just a guess though. | thats not possible
My thought is to use No Melee Damage item property and then add physical damage, or/and enhancement as new itemproperty vs race
Not sure how no meelee damage work though _________________ Community Patch / NWNX Patch / NWNX Files / NWNX Connect |
|
Back to top |
|
|
Squatting Monk
Joined: 28 Jun 2007 Posts: 76
|
Posted: Mon Nov 16, 2009 1:55 Post subject: Re: nwn events? |
|
|
ShaDoOoW wrote: | thats not possible |
Err... why not? Sure, there's no way to be sure which weapon is being used if the player is dual-wielding, but for normal attacks you can just use GetItemInSlot() and check the item properties.
I'd suggest a more low-tech solution, though: give the creatures immunity to all the physical damage types, then give items made of cold iron or silver a magical damage bonus (equal to the base damage type of the item) versus those races. No NWNX required. |
|
Back to top |
|
|
ShaDoOoW
Joined: 20 Aug 2005 Posts: 584
|
Posted: Mon Nov 16, 2009 2:22 Post subject: Re: nwn events? |
|
|
Squatting Monk wrote: | ShaDoOoW wrote: | thats not possible |
Err... why not? Sure, there's no way to be sure which weapon is being used if the player is dual-wielding, but for normal attacks you can just use GetItemInSlot() and check the item properties.
I'd suggest a more low-tech solution, though: give the creatures immunity to all the physical damage types, then give items made of cold iron or silver a magical damage bonus (equal to the base damage type of the item) versus those races. No NWNX required. | its not possible from the nature how OnAttack works. It fire script when you click on enemy nothing more. You can change your weapon after it.
As for your idea, not very possible too because there is strenght factor too.
Squatting Monk wrote: | So, by "not possible" you mean "not optimal". |
kind of _________________ Community Patch / NWNX Patch / NWNX Files / NWNX Connect
Last edited by ShaDoOoW on Mon Nov 16, 2009 16:54; edited 1 time in total |
|
Back to top |
|
|
Squatting Monk
Joined: 28 Jun 2007 Posts: 76
|
Posted: Mon Nov 16, 2009 6:20 Post subject: |
|
|
So, by "not possible" you mean "not optimal". |
|
Back to top |
|
|
kucik
Joined: 11 Feb 2009 Posts: 19 Location: Czech Republic
|
Posted: Thu Nov 26, 2009 15:37 Post subject: |
|
|
Why don't You add OnHitItem* property to theese weapons? Then make script which deals damage to creature if creature and weapon meets specific criteria. Then make damage reduction for creature.
Of course, this solution have some weakneses, but it should work. |
|
Back to top |
|
|
kucik
Joined: 11 Feb 2009 Posts: 19 Location: Czech Republic
|
Posted: Wed Jan 13, 2010 23:10 Post subject: Re: nwn events? |
|
|
ShaDoOoW wrote: | its not possible from the nature how OnAttack works. It fire script when you click on enemy nothing more. You can change your weapon after it.
|
I don't think it's true. I made some archery targets yesterday (target is creature) and OnAttacked event fired on every attack. |
|
Back to top |
|
|
|