Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - D&D 5th Edition SRD
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old February 2nd, 2016, 07:58 PM
You need to put ands or ors between each of the tags in that expression

"and" is "&"
"or" is "|"
"not" is "!"

Just like order of operations in math, you can use parenthesis to group things together and control the sequence things are resolved in.

Here are some example expressions:

"Weapons that are melee and light"
component.BaseWep & wCategory.Melee & Property.Light

"Weapons that are ranged and not Heavy"
component.BaseWep & wCategory.Ranged & !Property.Heavy

"Weapons that are ranged and light or melee and heavy"
(component.BaseWep & ((wCategory.Ranged & Property.Light) | (wCategory.Melee & Property.Heavy)))
Aaron is offline   #11 Reply With Quote
Nevyn
Junior Member
 
Join Date: Feb 2016
Posts: 9

Old February 2nd, 2016, 09:37 PM
Thank you for the examples

This is what I am trying to use, Have not figured out how to eliminate magic items like staves and rods yet !component.BaseMagicI does not seem to work for me.

(component.BaseWep & ((wCategory.Melee & wProperty.Light) | (wCategory.Melee & wProperty.Versatile) | (wCategory.Melee & wProperty.Finesse)))


Just a pity there is no weapon proficiencies group object to use as the base.

Last edited by Nevyn; February 2nd, 2016 at 09:51 PM.
Nevyn is offline   #12 Reply With Quote
Elindor
Member
 
Join Date: Feb 2013
Posts: 67

Old February 2nd, 2016, 11:20 PM
I'm having a similar issue (which I had set aside as I can add weapon proficiency with an adjustment) - but for 1 handed weapon, try using !wProperty.TwoHanded - because everything that is a one handed weapon is, by definition, not a two handed weapon (and they don't have 3+ handed weapons...)
Elindor is offline   #13 Reply With Quote
Nevyn
Junior Member
 
Join Date: Feb 2016
Posts: 9

Old February 3rd, 2016, 12:11 AM
I have tried using !wProperty.TwoHanded

I had to remove natural weapons and I am still left with being unable to remove the magic staffs and rod of lordly might.

Time to put this aside and just give the needed wep prof by eval script for now

Hope you have better luck
Nevyn is offline   #14 Reply With Quote
Elindor
Member
 
Join Date: Feb 2013
Posts: 67

Old February 3rd, 2016, 12:22 AM
Quote:
Originally Posted by Nevyn View Post
I have tried using !wProperty.TwoHanded

I had to remove natural weapons and I am still left with being unable to remove the magic staffs and rod of lordly might.

Time to put this aside and just give the needed wep prof by eval script for now

Hope you have better luck
Got it

component.BaseWep & !wProperty.TwoHanded & wCategory.Melee & !wGroup.Natural & !Helper.Helper

!Helper.Helper removes the weapons which are Helper Only (that is, those added for Magic Items in scripts)
Elindor is offline   #15 Reply With Quote
Nevyn
Junior Member
 
Join Date: Feb 2016
Posts: 9

Old February 3rd, 2016, 12:52 AM
Thank you for that, now to delve into the scripting to handle it.

Cheers
Nevyn is offline   #16 Reply With Quote
Elindor
Member
 
Join Date: Feb 2013
Posts: 67

Old February 3rd, 2016, 02:48 AM
I modified the code from the Weapon Proficiency Adjustment

Code:
      ~If we're not selected, get out

      doneif (tagis[Helper.Disable] <> 0)

      perform hero.assign[ProfSkill.skPerform]
      perform hero.assign[ArmProfGrp.ArmorLight]

      ~ If we've not chosen anything, get out
      doneif (field[usrChosen1].ischosen = 0)

      ~ Assign the identity tag for the proficiency
      var id as string
      id = field[usrChosen1].chosen.idstring
      perform field[usrChosen1].chosen.forward[WepProf.?]
      foreach pick in hero where "IsWeapon." & id
        perform eachpick.assign[Broadcast.WepProf]
        perform eachpick.assign[Helper.ExoticProf]
        nexteach
Elindor is offline   #17 Reply With Quote
Nevyn
Junior Member
 
Join Date: Feb 2016
Posts: 9

Old February 3rd, 2016, 02:59 AM
you are a legend hehe
Nevyn is offline   #18 Reply With Quote
Elindor
Member
 
Join Date: Feb 2013
Posts: 67

Old February 3rd, 2016, 04:38 AM
Here's my code for Bladesong.

First Eval Script - Post-Attributes Phase

Code:
field[abValue].value = #attrbonus1[aINT]
Second Script - Post-Attributes Phase, priority must be greater than the first script

Code:
      doneif (tagis[Helper.ShowSpec] = 0)

      doneif (tagis[Helper.Disable] <> 0)

      doneif (field[abilActive].value = 0)

hero.childfound[ArmorClass].field[Bonus].value += field[abValue].value
hero.child[Speed].field[Bonus].value += 10
#situational[hero.child[svCON],"+ Intelligence Modifier (minimum 1) to maintain concentration",field[thingname].text]
#situational[hero.child[skAcrobat],"Advantage on Acrobatics checks",field[thingname].text]

doneif (#levelcount[Wizard] < 14)

       foreach pick in hero from BaseWep where "wCategory.Melee"
           eachpick.field[dmmBonus].value += field[abValue].value
       nexteach
This means that Bladesong will calculate the +Int to AC, and the +Int to damage if the character has Song of Victory. Song of Defense is just plain text.

Last edited by Elindor; February 3rd, 2016 at 04:41 AM. Reason: Correcting priority comment.
Elindor is offline   #19 Reply With Quote
Nevyn
Junior Member
 
Join Date: Feb 2016
Posts: 9

Old February 3rd, 2016, 05:36 AM
Thank you muchly, I was watching the third utube tutorial to work out what I had done wrong.... not checking for activation of the ability !!!

Blade Singer now usable Now to copy a few feats and hope someone figures out the Eldritch Knight. But I am not sure that is possible without some way to add spellcasting from a class ability.
Nevyn is offline   #20 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 03:56 PM.


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