Senior Member
Volunteer Data File Contributor
Join Date: Mar 2007
Posts: 1,245
|
I am trying to set up a special that has 3 different forms, so I created the special (Blessings of Kord), created the 3 sub specials (+2 Luck bonus to Saves, +2 bonus to Strength, or +10 to speed), and tried to make it so that using one of the lower ones uses the charge of Blessings of Kord.
The template I was using for this are staffs, which have specials bootstrapped with something under the tag button, a [ChargeUse.X] tag. I bootstrapped the subspecials with a [ChargeUse.1] tag to the main special, but it is not working. Using a charge of any of the lowers does not use the higher. I noticed that the old Staves all have subspecials that use the 50 charges of the main staff, but those subspecials were made using the "charges" tab in the editor, that has since been removed. Newer staves, like the ones from Pathfinder, do not even attempt this. Has something changed in HL? Is this no longer possible? |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,217
|
The problem with the ChargeUse.? tags is that the mechanics for that are incorporated into the staff component - they're not a general mechanism.
Ignore staves in Pathfinder for now - I'm in the process of switching them over to a new mechanism. If all three specials cost 1 charge of the ability, I'd suggest just leaving out the charges on the special. If the user can't remember to subtract one use of the main thing each time they use an ability, they're "forgetting" (air quotes there) to use up arrows and wand charges, too. If the user must pick only one version, just put the charges on each version. |
#2 |
Senior Member
Volunteer Data File Contributor
Join Date: Mar 2007
Posts: 1,245
|
I got it working by an Eval script that counts the number of times the ability was used and then adds that to the parent special's hChildUsed field. This example uses Turning for it's charges.
field[hTotal].value = hero.childfound[xTurning].field[hTotal].value var used as number used = field[hUsed].value hero.childfound[xTurning].field[hChildUsed].value += used if (hero.childfound[xTurning].tagis[Helper.ShowSpec] = 0) then perform delete[Helper.ShowSpec] perform delete[Helper.ShowCharge] endif |
#3 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,217
|
Having just worked a lot with the Pathfinder charges, I made a mistake in my earlier post - the reason adding your thing with a ChargeUse.? tag didn't work is that it only functions to connect something to the thing that bootstrapped it. So, you'd have to have the turn undead on Cleric, and Paladin, and any other class that was added with turn undead, bootstrap all of your turn undead specials, and then figure out a way to turn them on and off depending on other picks.
The way you went about it was the way to go. |
#4 |
|
|