• 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

Please help -replacing the alchemist spell list with 2 subschools

nmilasich

Member
Hello,

I'm looking for either the way to use the editor or for an eval script for my alchemist archetype that will remove the alchemist spell list from the archetype and replace it with the metal subschool and another subschool I've already created. I've been working on this all day, but I'm at the end of my abilities.

Thanks for the help!

Nick
 
easiest solution would be to make an archetype that removes and adds in what you want. make a duplicate of your existing archetype with the changes you need/want.
 
You could probably do that with an eval script that overwrites the "cSpellExpr" field on the Alchemist class helper. It'd go REALLY late in Final and look something like this:

"(sSchool.Metal | WHATEVER.WHATEVER) & !Helper.Hide & !Helper.Obsolete & !Helper.Helper & !(component.EffectWord | component.MetaWord) & !Helper.WordSpell"

I'm assuming here you mean the Metal School, since I don't see any metal subschool/descriptor currently existing. WHATEVER would be replaced by the other thing you made.
 
Thanks, Aaron. I honestly don't know how to put together a complete script to do this at all. The other item is sSubschool.ssODclwk. I am looking for the metal school.

My XML is quite weak, I'm really just modifying what I find. If you would please assume I am a slow child and give me a complete script to undertake this task, I would really appreciate it.

drakhan, thanks for the advice, but the archetype does not allow me to replace the spell list from the choice and buttons as far as I know. Is there a specific way to do this?

Thanks,
Nick
 
Last edited:
I'm gonna give you the step by step, please don't be insulted if you already know or could figure out one or more of these steps.

In the editor, go to the alchemist archetype you created.

In the upper right is a button marked "Eval scripts". Click on that, and at the top there will be a bit of text "Click to add another eval script", which you should click on. The window will change to a header with "Phase", "Priority", and "Index" over a big grey box. In the dropdown to the right of Phase, choose "Final", and in the small box to the right of Priority enter "99999999" (but without the quotation marks, just the number). That is 8 Nines. Index is not important, you can leave that alone.

Now, in the big grey box paste the following script:
Code:
  ~ We must overwrite the Spellbook expression, since we need to make them use a different spell list. Since Alchemists create their allowed spells from the ones in their book, we don't need to do anything further than this.
   linkage[varies].field[cSplBkExpr].text = "(sSchool.Metal | sSubschool.ssODclwk) & !Helper.Hide & !Helper.Obsolete & !Helper.Helper & !(component.EffectWord | component.MetaWord) & !Helper.WordSpell"

Now hit the OK button to close the Eval script window. In the upper left of the editor, hit the blue "Test Now" button while the archetype is selected.

Now create a new portfolio to test things out on. Add a level of alchemist, go to the alchemist tab, and click on the spellbook. Click the button to add a spell. You should see the normal variety of alchemist spells.

Back out and return to the Classes tab, and add your archetype. Then return to the alchemist tab, click on the spellbook again, and again add a spell. If you followed the steps above, you should see a different set of spells to select from. If you don't, then something went wrong, and double check your work. All else fails, give the forums another shout and we'll see what we can do.
 
Aaron,
Thanks for being really clear, I was not insulted at all. I appreciate your effort. The metal subschool spells showed up, the eval script ran, but the subschool (clockwork) spells did not. Is there a way I can ask for the spells by name? Or is there a way I can get the script to find the subschool? Anyway, thanks a lot for your help so far!
 
That script worked when I tested it with the "sSubschool.Creation" tag.

Have you marked any existing spells with the sSubschool.ssODclwk tag, or did you only create the subschool? To add a tag to an existing spell, go to the spell tab in the editor, hit the "New (Copy)" tag in the lower left, then choose the spell you want to modify from the list. Give it a new Unique ID, and enter the old Unique ID for this spell in the "Replaced Thing ID" box in the lower right. Then make any modifications to the spell you like, such as clicking on the "Subschool" button and checking the box for Clockwork subschool.
 
Aaron,

I figured it out. It's not the id of the subschool, .ssDOclwk, it's the name, clockwork, that has to go after sSubschool. It now works! Thank you so much, I am learning a lot and I really happy that works out. I have so much to learn!

thanks again,
Nick
 
Aaron,

I hate to bother you again. I've looked for examples in the files and searched on the site, but my basic programming is unfortunately weak. I would very much like to be able to remove individual custom abilities for the alchemist 'discoveries' like acid bomb cAlcBoAcid. Could you please show me an eval script that would remove acid bomb?
Thanks,
Nick
 
Back
Top