Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - d20 System (http://forums.wolflair.com/forumdisplay.php?f=46)
-   -   Removing atk bonus on weapons (http://forums.wolflair.com/showthread.php?t=13426)

falcarrion July 6th, 2011 04:08 PM

Removing atk bonus on weapons
 
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.

chiefweasel July 7th, 2011 09:01 AM

is this a special ability that reduces the attack bonus of its weilder to 0?

falcarrion July 7th, 2011 10:52 AM

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

falcarrion July 7th, 2011 11:09 AM

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>

ShadowChemosh July 7th, 2011 01:11 PM

You should be able to put in a eval script that does the following:
Code:

field[wAttBonus].value = 0
For phase and timing I would go with Pre-Attributes 10,000.

Nigel Fogg The Wayfarer July 7th, 2011 03:17 PM

Quote:

Originally Posted by falcarrion (Post 58287)
I'm making a wand of magic missles that shows up under weapons.
file Wand.user
...

Silly question....why do you want to make this as a weapon and not just as a regular magic item like other wands?

Nigel Fogg, aka The Wayfarer

falcarrion July 7th, 2011 08:58 PM

Quote:

Originally Posted by ShadowChemosh (Post 58297)
You should be able to put in a eval script that does the following:
Code:

field[wAttBonus].value = 0
For phase and timing I would go with Pre-Attributes 10,000.

Thanks I'll give it a try.

falcarrion July 7th, 2011 09:14 PM

Quote:

Originally Posted by Nigel Fogg The Wayfarer (Post 58301)
Silly question....why do you want to make this as a weapon and not just as a regular magic item like other wands?

Nigel Fogg, aka The Wayfarer

This way it shows up on the character sheet with the other weapons showing the damage amount. If I should pick up another wand of magic missles I could then have it show also with a different amout of damage. I then can keep easy track of the charges on each.
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.

falcarrion July 7th, 2011 10:38 PM

Quote:

Originally Posted by ShadowChemosh (Post 58297)
You should be able to put in a eval script that does the following:
Code:

field[wAttBonus].value = 0
For phase and timing I would go with Pre-Attributes 10,000.

I must be doing something wrong as I can't get it to work.
how do I set up the timing?
I haven't done eval scripts before.

bodrin July 7th, 2011 10:45 PM

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!


All times are GMT -8. The time now is 01:59 AM.

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