Senior Member
Join Date: Oct 2011
Posts: 6,793
|
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))) |
#11 |
Junior Member
Join Date: Feb 2016
Posts: 9
|
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. |
#12 |
Member
Join Date: Feb 2013
Posts: 67
|
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...)
|
#13 |
Junior Member
Join Date: Feb 2016
Posts: 9
|
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 |
#14 |
Member
Join Date: Feb 2013
Posts: 67
|
Quote:
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) |
|
#15 |
Junior Member
Join Date: Feb 2016
Posts: 9
|
Thank you for that, now to delve into the scripting to handle it.
Cheers |
#16 |
Member
Join Date: Feb 2013
Posts: 67
|
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 |
#17 |
Junior Member
Join Date: Feb 2016
Posts: 9
|
you are a legend hehe
|
#18 |
Member
Join Date: Feb 2013
Posts: 67
|
Here's my code for Bladesong.
First Eval Script - Post-Attributes Phase Code:
field[abValue].value = #attrbonus1[aINT] 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 Last edited by Elindor; February 3rd, 2016 at 04:41 AM. Reason: Correcting priority comment. |
#19 |
Junior Member
Join Date: Feb 2016
Posts: 9
|
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. |
#20 |
|
|