• 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

Domain Scripting help

TheNewProgrammer

Active member
Hi, I wanted to create a custom domain that reduces the number of domains the cleric can have by 1. (This is so I can make a domain that takes 2 domain slots) Archetypes do not use scripts, but I found the feat Believer's Boon and it uses the following script:

hero.childfound[cfg(???)].field[cfgMax1].value += 1

(I don't remember what was here)

I assume cfg points to believer's boon somehow?

clrMax1 doesn't work.

Was I on the right track?

What is a script that would work?
 
Believer's Boon creates a new tab for you to choose a domain. It has nothing to do with how many domains a cleric can select. To alter this, you would need to change the following field:

Code:
hero.childfound[cHelpClr].field[cGiveSpec].value -= 1

I suspect you'll need to do this after Post Levels/10000 as that is when the field is initially set.
 
Thanks! I found cHelpClr, but I wasn't sure it was correct. I thought it would use domain somewhere in the title not help.
 
Last edited:
Thanks! I found cHelpClr, but I wasn't sure it was correct. I thought it would use domain somewhere in the title not help.

cHelpClr is the class helper for Cleric (all class helpers start with cHelp). You're basically just telling the program to reduce the number of custom abilities the Cleric gets (I think in PF1 they get up to 4). Domains is just the name of the first set of custom abilities a Cleric gets so there isn't anything named domain as far as a thingid in this case.
 
oh!, thanks

is there any way to add cantrips to the domain spells?

i can add it to the list, but I don't know how to add 0-level spells to the number of preparable domain slots.

also, How do I add my domain to deities portfolios(?)?

finally, is there a way to add domain spells to the cleric's spell list?

thanks so much!
 
It's not as easy to find an example of (it's primarily used in the custom race builder), but if the CustomCost.2 tag is present on an ability like a domain, that should make the ability cost 2 slots instead of the default 1 slot. This way, you don't need any script to alter the cost of the domain. Tags are added through the Tags button on the right-hand side of the editor.

I'm afraid I'm in the middle of a project and don't have time to look up your second, third, fourth, etc. questions right now - if no-one's gotten back to you by this weekend I should be able to delve into that and refresh my memory on how this works in this game system.
 
It's not as easy to find an example of (it's primarily used in the custom race builder), but if the CustomCost.2 tag is present on an ability like a domain, that should make the ability cost 2 slots instead of the default 1 slot. This way, you don't need any script to alter the cost of the domain. Tags are added through the Tags button on the right-hand side of the editor.

Thanks, Mathias! Didn't know about that tag.

is there any way to add cantrips to the domain spells? i can add it to the list, but I don't know how to add 0-level spells to the number of preparable domain slots.

Are you asking how to allow a cleric to prepare 0-level domain spells as they would any other level? If so, use this:

Code:
hero.childfound[cHelpClr].field[cSecMax].arrayvalue[0] += 1

Not sure about the timing, but a similar script runs at Final/10000 so I'd give that a shot.

also, How do I add my domain to deities portfolios(?)?

Go to the genral tab in the editor. There you will see three text blocks. In the first, put the thingid of the deity you are adding the domain to. In the second, "AllowDom", and in the third the thingid of your domain. Once you create the first one you should be able to hit duplicate and it will automatically populate the 2nd and 3rd entries.

finally, is there a way to add domain spells to the cleric's spell list?

Do you mean so they can select them as regular spells? I think the procedure for that looks like this:

Code:
perform hero.childfound[cHelpClr].assign[sClass.cdWater]

Replace cdWater with the thing id of your domain. Make sure all domain spells have this tag (if they don't already, you can use the same procedure as above to assign these tags). I would do this early. First/10000 should work.
 
Thanks! this was very helpful

#1 worked

#2, I got it to work, but not with my custom domain

#3, Same

#4, does not work for me for any domain. I already have something at first/10000 can that be an issue?

thanks for all your help!
 
Thanks! this was very helpful

#1 worked

#2, I got it to work, but not with my custom domain

#3, Same

#4, does not work for me for any domain. I already have something at first/10000 can that be an issue?

thanks for all your help!

Hmm...not unless they counter each other. Any chance you can post the .user file? I usually find it easier to figure out stuff like this if I can see it.
 
error #1 id assign

Thing extension "deiGozreh" - tag "cdTempest" not defined

So, a little weird, but I had to make a dummy deity and assign cdTempest as an allowed domain before this would work. I can only assume that the inner mechanics require this tag to exist on a deity somewhere before it qualifies as "existing" in the system. I added this to your file and attached here. Unfortunately, the Helper.Helper tag isn't preventing it from showing in the Deity selection list, so you will probably want to change this. You have two options:

Create your own deity, or new (copy) an existing one and use the replace thingid. Either way, as long as your deity has this tag, you can use the extend thing on any other deities you want to allow this domain.

Code:
error #2 add domain spells

script has no errors, but the spells do not appear on the spell list.

Yea, so this didn't work as I'd hoped. The solution probably depends on how many spells you want to grant the Cleric. I tried using a selection with some pulltags, replacetags, pushtags shenanigans, but it crashed the system so that's not ideal.

Instead, what I've done is replace your script and assigned ClsAllowSp.spFogClo2 to the domain as a test. The script takes any tags with this precursor (ClsAllowSp.?) and assigns it to the Cleric. This allows the spell to be taken. If you have a small number of spells you want to allow this way, just add any additional tags like this to the domain.

It you want it to be more dynamic, we may need another solution.

Also, it should be noted that by specifically applying the changes you're making to the Cleric class, other classes that can allow domains won't get these changes. Something to consider if you want to allow that.

Finally, I used Mathias's suggestion to add the CustomCost.2 tag to the domain and removed the script for you. This is a better solution for the reasons stated above.

sorry for the wait. I wanted to get to your message earlier, but college.

*grumble* darn kids *grumble* ... er, I mean, no problem!
 

Attachments

view


https://drive.google.com/file/d/1PVZWkjf-_O7u2LRv3NOrHQ6U_MU5JJWX/view?usp=sharing
 
Back
Top