Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 8,232
|
At 09:19 PM 11/24/2007, you wrote:
Quote:
|
|
#21 |
Senior Member
Join Date: Jul 2007
Location: Syracuse, NY (USA)
Posts: 213
|
Thanks - I've been keeping those to a minimum, using the editor as much as possible. This brings up a couple questions though:
1) I mentioned that the default class panel after I copied the Cleric didn't have anything in it for domains. Is there something else I was supposed to do, but missed? 2) I noticed the "hidden" element only seems to work when it's at the bottom of a datafile. If there are things defined after the "hidden" element, it throws an error. Is this one of those mechanisms that is still evolving? 3) Not a question, just wanted to add that I'm very impressed with HL and how responsive you guys are! |
#22 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 8,232
|
At 05:23 AM 11/25/2007, you wrote:
Quote:
Quote:
Quote:
In general, it's ill-advised to put "hidden" elements into files with other material. I strongly recommend they be placed in a separate file from material being modified with the Editor. For example, you might have a data file named "hidden.dat" that you modify manually, while all other files are modified via the Editor. Quote:
|
||||
#23 |
Senior Member
Lone Wolf Staff
Join Date: Dec 2008
Posts: 4,690
|
Lawful_g wrote:
> I have another question. I'm entering the Mystic class, which is a > spontaneous divine spellcaster that uses the same spell list as the > cleric but only gets one domain. Similarly to the sorceror they can only > know a limited number of spells of each level. I'm having trouble > dealing with the domain. > > I don't know how to make it show up on the panel. I copied the Cleric > class, but I didn't see any bootstrapped abilities that were for the > domains. Looking through the Eval Rules and scripts I couldn't find > anything referencing domains either. I even recopied the cleric class > without any changes other than the name and on the panel for this new > class the section for domain and deity were absent... > > So, how do I add a single domain selection for the Mystic cass? > > A second issue, for after that one is solved. The Mystic gains the > domain spells of his domain as bonus spells known, so for example, at > 1st level he knows 5 0th level spells, 2 1st level spells, and the 1st > level spell for the domain he has chosen. How do I make the domain the > mystic selects add a certain spell as a bonus spell to his spells known? > I understand that I will have to use the "Replaces ID" box and re enter > values for all the domains in the PHB, which is going to be a chore. I'm > asking about the coding aspect here. > > I'll definitely have more questions over the long weekend, when I can > have hero lab open and be visiting this forum simultaneously. I haven't > had Internet at home for the last week or so, but it's supposed to be > turned on tomorrow. I never realize how much I rely on the net for > everything from study to entertainment to business until it is stripped > from me. Hmm... the domains you have are going to be really different from the normal domains, because you'll need to bootstrap the spells that you know. So it probably makes sense to define them differently - as Custom Abilities. Give the Mystic 1 custom ability at all levels, and add one Mystic custom ability for each domain that bootstraps the appropriate spell. That way you don't have to worry about making the Mystic domains overwrite the existing ones. After that, I think everything else should be pretty simple. Actually adding domains to custom classes currently isn't implemented yet. The cleric was the very first class we added to Hero Lab, back when we were showing off the first demos 18 months ago, and we didn't have time to go back and rework it when we added custom abilities to classes. At some point, cleric domains will probably change a bit, and become just like custom abilities. Hope this helps, -- Colen McAlister, colen@wolflair.com Chief Engineer, Lone Wolf Development |
#24 |
Senior Member
Volunteer Data File Contributor
Join Date: Mar 2007
Posts: 1,245
|
Here are another two questions.
I am adding a feat called Shield Focus, which boosts the shield bonus you get from weilding a shield by 1. How would I script "If you have a shield equiped, add +1 shield bonus"? There is also a similar feat called Heavy Armor Optimization, which only works with Heavy Armors, obviously, and I am not sure how to specify the type of Armor. A second issue, I am trying to make a custom staff (The Blue Crystal Staff of Mishakal) but I can't figure it out. I copied other staffs and they have bootstraps to things called Charges, one for each spell they cast. I can't find how to make custom charges to bootstrap to my new staff. I seem to remember there being a "charges" tab in the editor a few updates ago, but I don't see it anymore. Is there currently a way to make charges and therefore staffs at this time? |
#25 |
Senior Member
Join Date: Jul 2007
Location: Syracuse, NY (USA)
Posts: 213
|
I believe the tags Hero.EquipShld tells you a shield is equipped, and Hero.HeavyArmor tells you heavy armor is equipped.
As for the charges, the only way I can see adding new ones is to edit the dat files by hand. If you take a look at srd_charges.dat you can see how the default ones are defined. |
#26 |
Senior Member
Volunteer Data File Contributor
Join Date: Mar 2007
Posts: 1,245
|
Thank's I'll give those tags a try for the feats.
As for the charges, I'm not comfortable editing such things by hand, so I'll just have to ask Rob and Colen to add charges back into the editor next release. |
#27 |
Junior Member
Join Date: Dec 2007
Posts: 22
|
Quote:
Code:
var result as number var x as number ~ usable Wisdom bonus times per day x = hero.child[aWIS].field[aModBonus].value ~ minimum 1 if (x <= 0) then x = 1 endif ~ set charges field[hTotal].value = x ~ show in charges tab result = assign[Helper.ShowCharge] [edit]And if I go and read what you're /actually/ trying to do ... here's how I'd handle it. I'd create Specials for each of the spells it can cast (if there's a separate pool), and link those in as bootstraps. Make sure that there's the (Blue Crystal Staff) as the source, and everything should be clear.[/edit] Laz Beware the JabberOrk |
|
#28 |
Senior Member
Volunteer Data File Contributor
Join Date: Mar 2007
Posts: 1,245
|
This Shield Focus feat is still kicking me arse. I can't seem to get the tag recognition right. here is what I have so far, what am I doing wrong?
Phase: Final Priority: 10000 Index: 1 var bonus as number if (#hasfeat[fShieldFoc] + #hasfeat[fGrShieldF] = 1) then bonus = 1 elseif (#hasfeat[fShieldFoc] + #hasfeat[fGrShieldF] = 2) then bonus = 2 endif if (tagcount[Hero.EquipShld] = 1) then ~ Add a +1 Shield Bonus to our armor class hero.child[ArmorClass].field[tACFlat].value = hero.child[ArmorClass].field[tACFlat].value + bonus hero.child[ArmorClass].field[tAC].value = hero.child[ArmorClass].field[tAC].value + bonus endif If I remove the "if (tagcount[Hero.EquipShld] = 1) then" and the endif at the end, the bonus is applied even when a shield is equipped, but when I add that line the bonus is never shown, whether a shield is equipped or not. I tried a different tack as well, placing before the "var bonus as number" ~ If we're not equipping a shield, just get out now if (tagis[Hero.EquipShld] = 0) then done endif and again, the bonus never shows.... |
#29 |
Junior Member
Join Date: Dec 2007
Posts: 22
|
try hero.tagis[Hero.EquipShld]. Assuming that Hero.EquipShld is the correct tag, of course (I don't know, haven't taken a look at that section yet)
Laz Beware the JabberOrk |
#30 |
|
|