• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Help with Modifying 3.5

I've been working with some of the more difficult feats to make work. Two of those are Extra Spell (which adds an extra spell known to a sorcerer, for instance) and Extra Slot (which adds an extra spell that can be cast per day). I see that the Adjustment tab has the ability to do this, and I looked into it and noticed that there is a piece of code I like.

spelllevel = field[pSpellLvl].value

Where does pSpellLvl come from? I can't find it anywhere.

This piece of code allows there to be a chooser menu of spell levels. Obviously, I can't use this in Feat creation, but is there something similar in creating Feats that will? Actually, it's a little more complex than that, I would like to be able to choose that spell level maximum from the spell level maximum that the class can cast (I know how to get the Class chooser menu, that's built in)?

Here's what I want to do, I want to be able to choose the class that I'm adding the feat to (that's been done) and then check against that class's maximum spell level that it can cast, and choose from those spell levels. I see that the Hero has tags for Arcane and Divine that I can count, but I have no way of knowing if that caster Class in Arcane or Divine, much less be able to differentiate between Bard/Sorcerer or Ranger/Druid spell levels, since they don't follow the same methodology. Thanks in advance.
 
Last edited:
I've been working with some of the more difficult feats to make work. Two of those are Extra Spell (which adds an extra spell known to a sorcerer, for instance) and Extra Slot (which adds an extra spell that can be cast per day). I see that the Adjustment tab has the ability to do this, and I looked into it and noticed that there is a piece of code I like.

spelllevel = field[pSpellLvl].value

Where does pSpellLvl come from? I can't find it anywhere.

This piece of code allows there to be a chooser menu of spell levels. Obviously, I can't use this in Feat creation, but is there something similar in creating Feats that will? Actually, it's a little more complex than that, I would like to be able to choose that spell level maximum from the spell level maximum that the class can cast (I know how to get the Class chooser menu, that's built in)?

Here's what I want to do, I want to be able to choose the class that I'm adding the feat to (that's been done) and then check against that class's maximum spell level that it can cast, and choose from those spell levels. I see that the Hero has tags for Arcane and Divine that I can count, but I have no way of knowing if that caster Class in Arcane or Divine, much less be able to differentiate between Bard/Sorcerer or Ranger/Druid spell levels, since they don't follow the same methodology. Thanks in advance.

Of course, the problem I'm seeing with this is, unlike Adjustments, I don't have a second field available to choose the spell level after choosing the Class. I can make the feat add +1 to spells known for Extra Spell at one level lower than what can be known by the caster, but it adds it to ALL the levels below the maximum spell level, sigh. Still working on it, but any help would be appreciated.
 
Crap, I made some changes to my files and remade my classes and now I'm getting that doubled class tab again. I'm getting the old class tab and the new class tab, even though I've replaced the helper id and the class id. I can't figure this out, as I want to replace the classes with my classes, and I can't remember how to fix this. I thought it was just tied to the Replaces Thing Id, but I've done that and they are still showing up. Not sure how to get rid of this.
 
No, I've replaced one class with my version of the same class using the Editor. I've used the Replace Things Id for both the Class and Class Level. However, when I get back into HL, when I chose that class, it gives me two tabs of the same Class when I leveled, one is mine, and one is the previous version. I had this solved before, I just can't remember what I did, and all I can recall was the Replace Things Id as the culprit. I've done that, restarted HL, and I'm still getting the same problem. That is what I am talking about.
 
Ok. i just re-created it by copying the Wizard class. I think what you need to do is actually remove the "Replaces Thing ID" from the Class, but keep the one for Class Level.
 
Well, crap. Give me a step by step how you did it, so as I may compare how I did it. I just have no idea. Same thing is happening with each class I create, some first level ability is causing an error in each. Annoying.
 
Nevermind, I figured it out. Yeesh, you have to jump through hoops with this. You do things out of order, things blow up. Essentially, you can't let the files reload, and you have to Replace Things Id on the Class Level tab first before the Class tab (if I do it the other way, I get the errors). Then remove it from the Class tab after saving and testing it. Thank god, I thought I was never going to get this to work again.
 
Actually, I've found something out. The error does not appear UNTIL you reload the files. Then the errors appear. So, create a Barbarian fine, but then reload the files with the newly created Barbarian and see if you get these errors or not. I just can't track down where it is coming from, it's the Barbarian's illiteracy, the Bards "hBrdMusic" which I have no idea what it is. Only these two classes do this, and I don't know why. All the other classes work fine using the same method of creation, just not these. What the hell is going on with this, is this just a bug on my end? And how do I track it down? Anyone? Mathias, you come across this at any time?

I've included three screenshots. The first are the errors on Barbarians, Bards get the hBrdMusic error in addition to the table errors here. All the other classes are just getting the table errors now. All I've done is reload HL, and these cropped up. The last two just shows you that I am doing the correct thing in the Editor.

NEW INFO: The table error is being caused by my bootstrapping a custom ability to the class. Why it is happening is baffling me.
 

Attachments

  • Errors.jpg
    Errors.jpg
    129.5 KB · Views: 3
  • Errors1.jpg
    Errors1.jpg
    117.1 KB · Views: 2
  • Errors2.jpg
    Errors2.jpg
    111.8 KB · Views: 3
Last edited:
Solved the table problem, I didn't realize I had to designate things as user content under source. That fixed the problem. Still having the problem with Barbarians and Bards, screenshots included.
 

Attachments

  • Error3.jpg
    Error3.jpg
    119.3 KB · Views: 4
  • Error4.jpg
    Error4.jpg
    117.5 KB · Views: 3
Each of those errors means your class is looking for something in an eval script, but the thing does not exist on the hero.

Barbarian - Bootstrap the kLiterBbn skill to your class helper, that way when it is added the eval script in the class ability "cBbnIllit" will find it.

Bard - When you replaced the Class Helper for Bard you had to have changed the unique ID, the class ability "hBrdMusic" is searching for the old unique ID. Make a copy of hBrdMusic that replaces the old one. Go into the eval script on your copy and change all references to cHelpBrd to whatever the Unique ID of your new bard class helper is.

I think that should fix it.
 
Ok, I had seen the hBrdMusic script in the XML file in my directory, however I can't find that ability anywhere, not in the Class Specials, not in the Custom Abilities, and not in the Specials tabs. I've been trying to make a copy of it, I just can't find it.

As for the kLiterBbn skill, why does the regular Barbarian copy work then, if this needs bootstrapping? All I did is copy the Barbarian and replace the ids, it should have been working all along. For that matter, why didn't the hBrdMusic recognize my replaced Bard helper id? Kinda wierd.

BTW, I have a custom ability that I need to use on all the classes, however I don't want that ability to show up in the Specials on the hero, is there a way I can make it undisplay, but still be active for the hero?
 
Ah, I see the problem. In the past there was a tab in the editor called "Charges", but it was taken out. The "hBrdMusic" thing is a Charge, and since it is no longer possible to copy or edit, or create charges, you should delete it from your class helper, and then make a new special to count the number of daily uses a bard gets.
 
Try replacing cBbnIllit with a new one then, and go into the eval script, and change the script from...

Now I am looking at the eval script, I don't see where the problem is. Below is the script:

~ Available if we have only 1 class (i.e. the barbarian) - otherwise
~ the tag needs to be deleted
var result as number
if (hero.tagunique[Classes.?] - hero.tagis[Classes.Race] - hero.tagis[Classes.Template] > 1) then
result = delete[Helper.ShowSpec]
endif
if (#skillranks[kLiterBbn] >= 1) then
result = delete[Helper.ShowSpec]
endif

Normally I'd recommend changing "hero.child" to "hero.childfound" but there are none...
 
Back
Top