• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Trying to make special item

Corwyn

Active member
I saw that I couldn't do what I want back a year or two ago, but I can't find out if they fixed it, or if someone knows another way to do this.


Basically, I'm trying to make the following item.

= Pair of gauntlets - pieces of metal (copper) embedded in them - any weapon gains shocking quality.

Any help?
Thanks,
Corwyn
 
I have not found a convenient way to actually add the shocking quality to a weapon from a script. Main reason is, if it isn't a custom magic weapon, you can't actually add picks to it.

You best bet is to have it add "+ 1d6 electricity" to the end of the damage string. You can look at Shadow's Weapon Elemental Dmg, Electricity adjustment for inspiration.
 
RE: Special Item

I was afraid of that, I scoured the forums and read everything I could find, before throwing up my hands, then asking for any ideas.

I will look at that and see if I can make it work, maybe make the item a slotless one (like an ioun stone?), do you think that might work, or is it just the fact that you still can't put a weapon special ability on a wondrous item?

Thanks,
Corwyn
 
No reason to make them a slotless item. You should be able to make them a set of gauntlets (hand slot). You can have said gauntlets apply the "+ 1d6 Exectricity" text to whatever weapon is being wielded.

The issue isn't that you can't put a special ability on a wondrous item, its that you can't put a special ability on a normal weapon. But since all this particular special ability does, is add some text to the damage line, ANY script can do that. You don't have to do anything with the actual shocking item power (ipShocking).
 
Here is a quick script I worked up for this. Essentially, what it does, is if the gauntlets are equipped (The line about spcDisable), it will loop through all weapons on the hero. if the weapon is Metal, and is in either the Main Hand or the Off Hand, it will add the extra damage.
Code:
doneif (tagis[Helper.ShowSpec] = 0)
doneif (tagis[Helper.SpcDisable] <> 0)

foreach pick in hero from BaseWep
  if (eachpick.tagis[component.BaseWep] <> 0) then
    if (eachpick.tagis[EquipType.Metal] <> 0) then
      if (eachpick.tagis[Hero.MainHand] + eachpick.tagis[Hero.OffHand] > 0) then
        #extradamage[eachpick," plus 1d6 electricty",field[name].text]
      endif
    endif
  endif
nexteach
Some improvements that should be made:
  1. Check if the item already has the Shock ability, and if so, do not do anything.
  2. Add a 'gauntlet' weapon to the character, and add shocking damage to it if equipped as a weapon.

Number 1 would require checking if the weapon is a custom weapon, and if so, check its picks looking for the Shock item power. Number 2 would require bootstrapping the gauntlet to the hero. (for cleanliness, it should be verified that the Hero doesn't already have gauntlets being granted from armor).
 
Thanks

Thanks for all your help, and explaining it to me Fuzzy. I've been working on the scripts, but my days of writing code are far behind me and then I try and over complicate things and they don't work. chuckle.
I appreciate your help,
Thanks,
Corwyn
 
Back
Top