• 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

Weapon Bonus Damage

Frodie

Well-known member
I am in the Item Powers and makeing a magical effect that justs gives a damage bonus.
What is the script for giving a bonus to just damage. i.e. a +3 damage bonus to an bow.

Thanks,
 
And, while we're at Bonus Damages for Weapons...
Should'nt the bonus Damage from Flaming also appear in the damage-line, like:
Melee +2 Flaming Burst Rapier +18/+13/+8 (1d6+6 plus 1d6 fire/15-20/x2)?
 
I am in the Item Powers and makeing a magical effect that justs gives a damage bonus.
What is the script for giving a bonus to just damage. i.e. a +3 damage bonus to an bow.

Go into the editor, select the help menu, and select "Help On Using the Editor".

In the page that pops up, scroll down until you find the "Reference Information" link and go there. There's an index at the top there, so click on weapons in the index. Looking through what's available to a weapon, you'll see that the wDamBonus field is a modifier to damage only.
 
And, while we're at Bonus Damages for Weapons...
Should'nt the bonus Damage from Flaming also appear in the damage-line, like:
Melee +2 Flaming Burst Rapier +18/+13/+8 (1d6+6 plus 1d6 fire/15-20/x2)?

Yes it should. I haven't had the chance to implement this (or the related problem of getting special abilities like grab to add text to weapons), but it's on my to-do list.
 
Ok, still getting errors, here is the script

hero.child[Damage].field[wDamBonus].value += 3

Thank you!
 
wDamBonus only exists on individual weapons, not on the Damage pick (which is damage bonuses that are applied to all weapons).

From within a script on the weapon, you don't need to transition to the hero, then to the Damage pick, you can just alter the wDamBonus field on that weapon:

field[wDamBonus].value += 3
 
Thanks, but the error is:

Attempt to access field 'wDamBonus' that does not exist for thing 'ipExplosiv'
- - -
Attempt to access field 'wDamBonus' that does not exist for thing 'ipExplosiv'
 
Attempt to access field 'wDamBonus' that does not exist for thing 'ipExplosiv'
Location: 'eval' script for Thing 'ipExplosiv' (Eval Script '#1') near line 1
- - -
Attempt to access field 'wDamBonus' that does not exist for thing 'ipExplosiv'
Location: 'eval' script for Thing 'ipExplosiv' (Eval Script '#1') near line 1
 
Thanks, but the error is:

Attempt to access field 'wDamBonus' that does not exist for thing 'ipExplosiv'
- - -
Attempt to access field 'wDamBonus' that does not exist for thing 'ipExplosiv'
Item powers go on Magic weapons which are actually a Container that contains the base weapon. So you actually need to modify the Container's value not the item power itself.

User this code instead:
Code:
~ We need to alter our parent if we are a magic item
if (container.ishero = 0) then
   container.parent.field[wDamBonus].value += 3
endif
 
Back
Top