Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - D&D 5th Edition SRD (http://forums.wolflair.com/forumdisplay.php?f=89)
-   -   When Duel Wielding - Off hand weapon damage help (http://forums.wolflair.com/showthread.php?t=64893)

jbearwillis October 10th, 2020 02:39 PM

When Duel Wielding - Off hand weapon damage help
 
1 Attachment(s)
Ok, I was wondering if their was a way to have the Extra Damage text that I have added on the weapon, be hidden like the Bonus Damage is in the off-hand, when the character is duel wielding... the Bonus Damage disappears like it should, I would like the Text damage to hide as well, It is on the Extra damage text.... Thanks for any help. I would just like it to work for the 3 Eldritch Weapons I made... Image shows what I mean and want hidden.

DeltaMasterMind October 10th, 2020 07:21 PM

You can either put a doneif statement using wIs2nd tag before the extra damage script or use a if statement using the gIsEquip tag. Using either will do the job, but I am not sure how you have it scripted out.

jbearwillis October 10th, 2020 07:24 PM

DeltaMasterMind here is how I have it scripted... and it works perfectly, other then not hiding the text, which I know I don't have scripted yet... so how would I add what you said....

doneif (tagis[Helper.Disable] = 1)

~ foreach pick in hero from BaseWep
foreach pick in hero from BaseWep where "wGroup.JDWEldFam"
if (#attrmod[aCHA] + eachpick.field[dmrBonus].value = 1)then
eachpick.field[wDamExtra].text = " + 1d2 chaos"
endif
if (#attrmod[aCHA] + eachpick.field[dmrBonus].value = 2) then
eachpick.field[wDamExtra].text = " + 1d4 chaos"
endif
if (#attrmod[aCHA] + eachpick.field[dmrBonus].value = 3) then
eachpick.field[wDamExtra].text = " + 1d6 chaos"
endif
if (#attrmod[aCHA] + eachpick.field[dmrBonus].value = 4) then
eachpick.field[wDamExtra].text = " + 1d8 chaos"
endif
if (#attrmod[aCHA] + eachpick.field[dmrBonus].value = 5) then
eachpick.field[wDamExtra].text = " + 1d10 chaos"
endif
if (#attrmod[aCHA] + eachpick.field[dmrBonus].value = 6) then
eachpick.field[wDamExtra].text = " + 1d12 chaos"
endif
if (#attrmod[aCHA] + eachpick.field[dmrBonus].value = 7) then
eachpick.field[wDamExtra].text = " + 1d10 + 1d4 chaos"
endif
if (#attrmod[aCHA] + eachpick.field[dmrBonus].value = 8) then
eachpick.field[wDamExtra].text = " + 1d10 + 1d6 chaos"
endif
if (#attrmod[aCHA] + eachpick.field[dmrBonus].value = 9) then
eachpick.field[wDamExtra].text = " + 1d10 + 1d8 chaos"
endif
if (#attrmod[aCHA] + eachpick.field[dmrBonus].value = 10) then
eachpick.field[wDamExtra].text = " + 2d10 chaos"
endif
if (#attrmod[aCHA] + eachpick.field[dmrBonus].value = 11) then
eachpick.field[wDamExtra].text = " + 1d10 + 1d12 chaos"
endif
if (#attrmod[aCHA] + eachpick.field[dmrBonus].value >= 12) then
eachpick.field[wDamExtra].text = " + 2d10 + 1d4 chaos"
endif
nexteach

DeltaMasterMind October 10th, 2020 08:05 PM

If this script runs inside the weapon then the below should work.
Quote:

doneif (tagis[Helper.Disable] = 1)
doneif (field[wIs2nd].value = 1)

~ foreach pick in hero from BaseWep
foreach pick in hero from BaseWep where "wGroup.JDWEldFam"
if (#attrmod[aCHA] + eachpick.field[dmrBonus].value = 1)then
eachpick.field[wDamExtra].text = " + 1d2 chaos"
endif
if (#attrmod[aCHA] + eachpick.field[dmrBonus].value = 2) then
eachpick.field[wDamExtra].text = " + 1d4 chaos"
endif
if (#attrmod[aCHA] + eachpick.field[dmrBonus].value = 3) then
eachpick.field[wDamExtra].text = " + 1d6 chaos"
endif
if (#attrmod[aCHA] + eachpick.field[dmrBonus].value = 4) then
eachpick.field[wDamExtra].text = " + 1d8 chaos"
endif
if (#attrmod[aCHA] + eachpick.field[dmrBonus].value = 5) then
eachpick.field[wDamExtra].text = " + 1d10 chaos"
endif
if (#attrmod[aCHA] + eachpick.field[dmrBonus].value = 6) then
eachpick.field[wDamExtra].text = " + 1d12 chaos"
endif
if (#attrmod[aCHA] + eachpick.field[dmrBonus].value = 7) then
eachpick.field[wDamExtra].text = " + 1d10 + 1d4 chaos"
endif
if (#attrmod[aCHA] + eachpick.field[dmrBonus].value = 8) then
eachpick.field[wDamExtra].text = " + 1d10 + 1d6 chaos"
endif
if (#attrmod[aCHA] + eachpick.field[dmrBonus].value = 9) then
eachpick.field[wDamExtra].text = " + 1d10 + 1d8 chaos"
endif
if (#attrmod[aCHA] + eachpick.field[dmrBonus].value = 10) then
eachpick.field[wDamExtra].text = " + 2d10 chaos"
endif
if (#attrmod[aCHA] + eachpick.field[dmrBonus].value = 11) then
eachpick.field[wDamExtra].text = " + 1d10 + 1d12 chaos"
endif
if (#attrmod[aCHA] + eachpick.field[dmrBonus].value >= 12) then
eachpick.field[wDamExtra].text = " + 2d10 + 1d4 chaos"
endif
nexteach
If it runs form another source then the foreach will have to check for the wIs2nd and deny the run.

DeltaMasterMind October 10th, 2020 08:10 PM

Like so:
Quote:

doneif (tagis[Helper.Disable] = 1)

~ foreach pick in hero from BaseWep
foreach pick in hero from BaseWep where "wGroup.JDWEldFam | !Hero.OffHand"
if (#attrmod[aCHA] + eachpick.field[dmrBonus].value = 1)then
eachpick.field[wDamExtra].text = " + 1d2 chaos"
endif
if (#attrmod[aCHA] + eachpick.field[dmrBonus].value = 2) then
eachpick.field[wDamExtra].text = " + 1d4 chaos"
endif
if (#attrmod[aCHA] + eachpick.field[dmrBonus].value = 3) then
eachpick.field[wDamExtra].text = " + 1d6 chaos"
endif
if (#attrmod[aCHA] + eachpick.field[dmrBonus].value = 4) then
eachpick.field[wDamExtra].text = " + 1d8 chaos"
endif
if (#attrmod[aCHA] + eachpick.field[dmrBonus].value = 5) then
eachpick.field[wDamExtra].text = " + 1d10 chaos"
endif
if (#attrmod[aCHA] + eachpick.field[dmrBonus].value = 6) then
eachpick.field[wDamExtra].text = " + 1d12 chaos"
endif
if (#attrmod[aCHA] + eachpick.field[dmrBonus].value = 7) then
eachpick.field[wDamExtra].text = " + 1d10 + 1d4 chaos"
endif
if (#attrmod[aCHA] + eachpick.field[dmrBonus].value = 8) then
eachpick.field[wDamExtra].text = " + 1d10 + 1d6 chaos"
endif
if (#attrmod[aCHA] + eachpick.field[dmrBonus].value = 9) then
eachpick.field[wDamExtra].text = " + 1d10 + 1d8 chaos"
endif
if (#attrmod[aCHA] + eachpick.field[dmrBonus].value = 10) then
eachpick.field[wDamExtra].text = " + 2d10 chaos"
endif
if (#attrmod[aCHA] + eachpick.field[dmrBonus].value = 11) then
eachpick.field[wDamExtra].text = " + 1d10 + 1d12 chaos"
endif
if (#attrmod[aCHA] + eachpick.field[dmrBonus].value >= 12) then
eachpick.field[wDamExtra].text = " + 2d10 + 1d4 chaos"
endif
nexteach

jbearwillis October 11th, 2020 02:36 PM

Thank You


All times are GMT -8. The time now is 05:00 PM.

Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.