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)
-   -   Dastana Problem (http://forums.wolflair.com/showthread.php?t=7865)

Lawful_g August 25th, 2008 06:04 PM

Dastana Problem
 
THere is a piece of armor I am trying to enter into Hero Lab with the editor and having trouble with, the Dastana.

"This pair of metal bracers can be worn in addition to some other types of armor to provide an additional armor bonus that stacks with both the foundation armor and any shield worn. You can wear dastana with padded, leather, or chain shirt armor. You need the Armor Proficiency (light) feat to wear dastana without penalty."

How do I program this so that it only gives the AC bonus with those specific armors? Also, I was going to enter it as a shield, how do I make it so that it can be worn along with other shields without giving a validation error from having 2 shields equipped?

Lawful_g August 25th, 2008 06:24 PM

Another issue, I'm adding an armor extra called "Quick escape" and was trying to pattern it after Armor spikes.

Unfortunately, I cannot find the Armor Spikes entry in the editor. From what I have seen adding them through the normal engine, they seem to be lumped together with the 'Item Power' category, but the editor's field reveals no Armor spikes entry after hitting the new (copy) button. Where are they?

I think I found an error as well. When creating a custom armor, the "Armor Spikes (Magical)" entry is not selectable because the program says my fighter is not proficient with the magical ones. They must have a seperate proficiency currently than mundane armor spikes, because the normal ones are selectable.

Lawful_g August 25th, 2008 08:40 PM

Also, has the ability to enter custom special materials been added to Hero Lab? I don't see any way to edit that either.

Colen August 29th, 2008 03:46 PM

Dastana Problem
 
Lawful_g wrote:
>
>
> Another issue, I'm adding an armor extra called "Quick escape" and was
> trying to pattern it after Armor spikes.
>
> Unfortunately, I cannot find the Armor Spikes entry in the editor. From
> what I have seen adding them through the normal engine, they seem to be
> lumped together with the 'Item Power' category, but the editor's field
> reveals no Armor spikes entry after hitting the new (copy) button. Where
> are they?

Armor Spikes are kinda funky; since they're a weapon, they have to be
treated specially by HL. What does the "Quick Escape" extra do? If it's
just another magical armor ability, you can just copy it from one of the
other abilities.


> I think I found an error as well. When creating a custom armor, the
> "Armor Spikes (Magical)" entry is not selectable because the program
> says my fighter is not proficient with the magical ones. They must have
> a seperate proficiency currently than mundane armor spikes, because the
> normal ones are selectable.

Thanks, I'll fix this.



--
Colen McAlister, colen@wolflair.com

Colen August 29th, 2008 04:06 PM

Re: Dastana Problem
 
Quote:

Originally Posted by Lawful_g
THere is a piece of armor I am trying to enter into Hero Lab with the editor and having trouble with, the Dastana.

"This pair of metal bracers can be worn in addition to some other types of armor to provide an additional armor bonus that stacks with both the foundation armor and any shield worn. You can wear dastana with padded, leather, or chain shirt armor. You need the Armor Proficiency (light) feat to wear dastana without penalty."

How do I program this so that it only gives the AC bonus with those specific armors? Also, I was going to enter it as a shield, how do I make it so that it can be worn along with other shields without giving a validation error from having 2 shields equipped?

I think you'd be better entering it as a wondrous item. It sounds like they should take up a wrist slot, since they look similar to bracers?


As for how to do it, this script should do the trick:

Code:

~ Initialize a variable that we unset if we find illegal armor
var islegal as number
islegal = 1

~ Go through all our pieces of light, medium and heavy armor
foreach pick in hero where "mClass.Light | mClass.Medium | mClass.Heavy"

  ~ If this armor is equipped, we need to check it - otherwise,
  ~ we don't care about it
  if (each.field[gIsEquip].value <> 0) then

    ~ If this is not padded, leather, or chain shirt armor, we're
    ~ not legal, so unset our flag
    if (each.tagis[thingid.mPadded] + each.tagis[thingid.mLeather] + each.tagis[thingid.mChainShr] = 0) then
      islegal = 0
      endif
    endif
 
  ~ Go on to the next piece of armor
  nexteach

~ If we are legal and equipped, add the bonus to our armor class
if (islegal <> 0) then
  if (field[gIsEquip].value <> 0) then
    hero.child[ArmorClass].field[tACMisc].value += 3
    endif
  endif

I'm assuming a bonus of +3, but you could use anything you wanted.

Colen August 29th, 2008 04:10 PM

Dastana Problem
 
Lawful_g wrote:
>
>
> Also, has the ability to enter custom special materials been added to
> Hero Lab? I don't see any way to edit that either.


Not yet, unfortunately. :( I'll try and knock it into shape for the next
release, since it's been overdue for a long time.


--
Colen McAlister, colen@wolflair.com


All times are GMT -8. The time now is 09:13 PM.

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