Junior Member
Join Date: Aug 2007
Posts: 10
|
I trying to make a weapon called Wand. I have it made but don't know how to set the Attack bonus to stay at zero. i'm new to eval scripts and can't get it to work.
please help. |
#1 |
Senior Member
Join Date: Aug 2008
Location: Miamisburg, OH
Posts: 1,322
|
is this a special ability that reduces the attack bonus of its weilder to 0?
Web site - Cheese Weasel Logistics - www.cheeseweasel.net Twitter - @CheeseWeaselGMZ For user created content check out www.d20pfsrd.com and www.cheeseweasel.net For video demos of Hero Lab go to http://www.youtube.com/user/TheChiefweasel?blend=9&ob=5 |
#2 |
Junior Member
Join Date: Aug 2007
Posts: 10
|
I'm creating a wand of magic missles that will show up with the rest of the weapons. to do this I needed to create a weapon called wand. Then I was able to create a magic weapon called magic missle. For now I have the Attack Modifier set to -6.
Weapon = Wand Fields: gWeight wFixDamage 2d4+2 wAttBonus -6 Tags: wMain 1d4_4 wProfReg simple EquipType wood wclass Light wGroup cHelpDrd cHelpMnk cHelpWiz Weapon,Magic = Wand of Magic Missles total charges = 50 fields: hTotal 50 gCost 100 wFixDamage 2d4+2 wAttBonus -6 Tags: Helper EquipAvail Helper EquipMag gType Wand Bootstraps: Thing: Magic Missle (charge) hMagicMsl Gizmo: Enity Unique Id wSpecMagic Bootstraps: Thing: Wand(weapon) wWand |
#3 |
Junior Member
Join Date: Aug 2007
Posts: 10
|
I'm making a wand of magic missles that shows up under weapons.
file Wand.user <?xml version="1.0" encoding="ISO-8859-1"?> <document signature="Hero Lab Data"> <thing id="wWand" name="Wand" compset="Weapon"> <fieldval field="gWeight" value="4"/> <fieldval field="wFixDamage" value="2d4+2"/> <fieldval field="wAttBonus" value="-6"/> <tag group="wMain" tag="1d4_4"/> <tag group="wProfReq" tag="Simple"/> <tag group="EquipType" tag="Wood" name="Wood" abbrev="Wood"/> <tag group="wClass" tag="Light" name="Light" abbrev="Light"/> <tag group="wGroup" tag="cHelpDrd" name="Druid" abbrev="Druid"/> <tag group="wGroup" tag="cHelpMnk" name="Monk" abbrev="Monk"/> <tag group="wGroup" tag="cHelpWiz" name="Wizard" abbrev="Wizard"/> </thing> </document> file Wand of MagicMissle.user <?xml version="1.0" encoding="ISO-8859-1"?> <document signature="Hero Lab Data"> <thing id="imgcmssle" name="Wand of magic missles" description="\n\n Magic missile (1 charge)" compset="MagicWep"> <fieldval field="hTotal" value="50"/> <fieldval field="gCost" value="100"/> <fieldval field="wFixDamage" value="2d4+2"/> <fieldval field="wAttBonus" value="-6"/> <tag group="Helper" tag="EquipAvail"/> <tag group="Helper" tag="EquipMag" name="EquipMag" abbrev="EquipMag"/> <tag group="gType" tag="Wand" name="Wand" abbrev="Wand"/> <bootstrap thing="hMagicMsl"> <autotag group="ChargeUse" tag="1"/> </bootstrap> <child entity="wSpecMagic"> <bootstrap thing="wWand"></bootstrap> </child> </thing> </document> |
#4 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
You should be able to put in a eval script that does the following:
Code:
field[wAttBonus].value = 0 Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
#5 |
Senior Member
Volunteer Data File Contributor
Join Date: Feb 2009
Location: Virginia
Posts: 364
|
|
#6 |
Junior Member
Join Date: Aug 2007
Posts: 10
|
|
#7 |
Junior Member
Join Date: Aug 2007
Posts: 10
|
Quote:
Basicly this becomes a template I can use when creating new and unusal types of wands. For instant a toad wand. It fires out toads. The toads hit with enough force to do 1d6 damage. |
|
#8 |
Junior Member
Join Date: Aug 2007
Posts: 10
|
Quote:
how do I set up the timing? I haven't done eval scripts before. |
|
#9 |
Senior Member
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265
|
In the editor you'll see an eval script button, when you click it a new window opens where you can enter the script. At the top is a dropdown selection boxes that says phase and at the side of that is the priority field. Put the relevent data in those, don't forget to test thing afterwards though.
Hope this helps! |
#10 |
|
|