- hello,

trying to customize a standard "light armor" item gives the error

PreClass on equipment: Chain Shirt pre: at least 1 levels of BARD

--> the implementation of the Bard "avoid spell failure" is incorrect

current implementation:

BONUS:EQMARMOR|SPELLFAILURE|-N|PRECLASS:1,Bard=1

possible alternative

BONUS:EQMARMOR|SPELLFAILURE|(-N*(CLASS=Bard))

where "N" is the base number in SPELLFAILURE:N

autobuild timestamp "200404241914"

regards,

--

Steinar Hauan, dept of ChemE -- hauan@...

Carnegie Mellon University, Pittsburgh PA, USA - Steinar Hauan wrote:

>hello,

That would be completely ineffective, as there is no such variables as

>

> trying to customize a standard "light armor" item gives the error

>

>PreClass on equipment: Chain Shirt pre: at least 1 levels of BARD

>

> --> the implementation of the Bard "avoid spell failure" is incorrect

>

>current implementation:

> BONUS:EQMARMOR|SPELLFAILURE|-N|PRECLASS:1,Bard=1

>possible alternative

> BONUS:EQMARMOR|SPELLFAILURE|(-N*(CLASS=Bard))

>

> where "N" is the base number in SPELLFAILURE:N

>

CLASS=Bard. I'm not even sure what that's supposed to represent.

--

Soylant Clear: Clearly less people, Clearly less fat. - --- In pcgen@yahoogroups.com, Emily Smirle <smirle4498@r...> wrote:
> Steinar Hauan wrote:

error

>

> >hello,

> >

> > trying to customize a standard "light armor" item gives the

> >

incorrect

> >PreClass on equipment: Chain Shirt pre: at least 1 levels of BARD

> >

> > --> the implementation of the Bard "avoid spell failure" is

> >

In a formula, CLASS=Bard should return 1 if you have a Bard class

> >current implementation:

> > BONUS:EQMARMOR|SPELLFAILURE|-N|PRECLASS:1,Bard=1

> >possible alternative

> > BONUS:EQMARMOR|SPELLFAILURE|(-N*(CLASS=Bard))

> >

> > where "N" is the base number in SPELLFAILURE:N

and 0 if you don't. CLASSLEVEL=Bard would return how many Bard

levels you have. so -N*(CLASS=Bard) will return -N if you have at

least one level of Bard, otherwise it will return 0. -N*

(CLASSLEVEL=Bard) will return -N*2 if you had 2 levels of Bard.

This should work in any formula that accepts variables. I'm not sure

if this is documented or not.... if not, it should be. :)

-Bryan

> >

variables as

>

> That would be completely ineffective, as there is no such

> CLASS=Bard. I'm not even sure what that's supposed to represent.

>

> --

> Soylant Clear: Clearly less people, Clearly less fat. - <quote who="merton_monk">
> --- In pcgen@yahoogroups.com, Emily Smirle <smirle4498@r...> wrote:

It is currently docuemnted under the "DEFINES" section:

>> Steinar Hauan wrote:

>> >current implementation:

>> > BONUS:EQMARMOR|SPELLFAILURE|-N|PRECLASS:1,Bard=1

>> >possible alternative

>> > BONUS:EQMARMOR|SPELLFAILURE|(-N*(CLASS=Bard))

>> >

>> > where "N" is the base number in SPELLFAILURE:N

>

>> That would be completely ineffective, as there is no such

> variables as

>> CLASS=Bard. I'm not even sure what that's supposed to represent.

>

> In a formula, CLASS=Bard should return 1 if you have a Bard class

> and 0 if you don't. CLASSLEVEL=Bard would return how many Bard

> levels you have. so -N*(CLASS=Bard) will return -N if you have at

> least one level of Bard, otherwise it will return 0. -N*

> (CLASSLEVEL=Bard) will return -N*2 if you had 2 levels of Bard.

> This should work in any formula that accepts variables. I'm not sure

> if this is documented or not.... if not, it should be. :)

CL

Class Level of this class.

CL=name

Class Level of the named class.

CLASS=name

Returns a 1 if the character has the named class, otherwise 0.

CLASSLEVEL=name

Class Level of the named class, replacing { with ( and } with ). e.g.

CLASSLEVEL=Warrior {Ruby} would return the level of Warrior (Ruby) since

( and ) have other meanings in DEFINE variables.

--

regards,

Frugal

-OS Chimp - On Fri, 2004-04-30 at 00:31, merton_monk wrote:
> In a formula, CLASS=Bard should return 1 if you have a Bard class

it is documented -- that's at least how i found it in the first place.

> and 0 if you don't. CLASSLEVEL=Bard would return how many Bard

> levels you have. so -N*(CLASS=Bard) will return -N if you have at

> least one level of Bard, otherwise it will return 0. -N*

> (CLASSLEVEL=Bard) will return -N*2 if you had 2 levels of Bard.

> This should work in any formula that accepts variables. I'm not sure

> if this is documented or not.... if not, it should be. :)

the formulae also works; i've tested it.

regards,

--

Steinar Hauan, dept of ChemE -- hauan@...

Carnegie Mellon University, Pittsburgh PA, USA