Well, first, hi to all! I'm new to the forums (at least posting).
I woud like to ask you for help with some eval scripts that I'm using. I'm creating a data pack for the Dragonlance Campaign Setting from D&D 3.5 to Pathfinder. For the Draconians (and other stuff), I'm practicaly using the work that Lawful_G already did for the d20 OGL, but some scripts that he did doesn't seem to work on PF.
I need to change the description and content of a racial especial (Kapak's Saliva) deppending on the hero's gender. This is the eval script that LG's created and that I'm using:
~ Set the custom description and summary of our Saliva ability.
if (hero.tagis[Hero.Female] <> 0) then
hero.child[rKapSaliva].field[CustDesc].text = "The supernatural saliva of a female kapak cures wounds. If she licks an injured living creature (a standard action), the saliva heals 2d6 points of damage. A creature can only be healed with female kapak saliva once every four hours. The saliva of a female kapak does not heal when delivered by her bite."
hero.child[rKapSaliva].field[xSumm].text = "Standard, licking wounds heals 2d6 hp, target benefits once per 4 hours."
perform hero.child[rKapSaliva].assign[AbilType.Super]
elseif (hero.tagis[Hero.Male] <> 0) then
hero.child[rKapSaliva].field[CustDesc].text = "The extraordinary saliva of a male kapak carries a paralyzing poison (bite or licked weapon, Fort DC 11 + kapak's Con modifier, initial damage 1d6 Dex, secondary damage 1d6 Dex), which can be delivered either through a bite or by licking any piercing weapon. Envenoming a weapon is a full-round action that provokes an attack of opportunity; the poison remains on the weapon for 3 rounds or until the kapak hits with the weapon, whichever comes first."
hero.child[rKapSaliva].field[xSumm].text = "Full round, lick weapon to envenom it."
perform hero.child[rKapSaliva].assign[AbilType.Extra]
endif
The first problem that a find is that the field "xSumm" is not used by Pathfinder data. I don't know wich would be it's equivalent.
Second, and most important, the eval script simply doesn't work. The kapak's saliva racial ability doesn't change at all when I select a different gender.
I also tried changing this part of the eval script: "(hero.tagis[Hero.Female] <> 0)"
For this one: "(hero.child[background].field[bGender].value = 1)", after I searched in the forum for some gender related eval scripts and found a thread about the Qadira princess requisites.
Could you please help me?
I woud like to ask you for help with some eval scripts that I'm using. I'm creating a data pack for the Dragonlance Campaign Setting from D&D 3.5 to Pathfinder. For the Draconians (and other stuff), I'm practicaly using the work that Lawful_G already did for the d20 OGL, but some scripts that he did doesn't seem to work on PF.
I need to change the description and content of a racial especial (Kapak's Saliva) deppending on the hero's gender. This is the eval script that LG's created and that I'm using:
~ Set the custom description and summary of our Saliva ability.
if (hero.tagis[Hero.Female] <> 0) then
hero.child[rKapSaliva].field[CustDesc].text = "The supernatural saliva of a female kapak cures wounds. If she licks an injured living creature (a standard action), the saliva heals 2d6 points of damage. A creature can only be healed with female kapak saliva once every four hours. The saliva of a female kapak does not heal when delivered by her bite."
hero.child[rKapSaliva].field[xSumm].text = "Standard, licking wounds heals 2d6 hp, target benefits once per 4 hours."
perform hero.child[rKapSaliva].assign[AbilType.Super]
elseif (hero.tagis[Hero.Male] <> 0) then
hero.child[rKapSaliva].field[CustDesc].text = "The extraordinary saliva of a male kapak carries a paralyzing poison (bite or licked weapon, Fort DC 11 + kapak's Con modifier, initial damage 1d6 Dex, secondary damage 1d6 Dex), which can be delivered either through a bite or by licking any piercing weapon. Envenoming a weapon is a full-round action that provokes an attack of opportunity; the poison remains on the weapon for 3 rounds or until the kapak hits with the weapon, whichever comes first."
hero.child[rKapSaliva].field[xSumm].text = "Full round, lick weapon to envenom it."
perform hero.child[rKapSaliva].assign[AbilType.Extra]
endif
The first problem that a find is that the field "xSumm" is not used by Pathfinder data. I don't know wich would be it's equivalent.
Second, and most important, the eval script simply doesn't work. The kapak's saliva racial ability doesn't change at all when I select a different gender.
I also tried changing this part of the eval script: "(hero.tagis[Hero.Female] <> 0)"
For this one: "(hero.child[background].field[bGender].value = 1)", after I searched in the forum for some gender related eval scripts and found a thread about the Qadira princess requisites.
Could you please help me?