View Single Post
RavenX
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2011
Location: Nowhere, Virginia
Posts: 3,633

Old June 30th, 2023, 07:04 PM
Quote:
Originally Posted by TCArknight View Post
Hi all!

I'm working on coding an ability that will give the user a choice of 2 Cantrips from the Wizard list.

They are a half-caster otherwise with their on spell list. How can I limit the Cantrips to the wizard list and not allow wizard spells for their normal selection?

(If I add sClass.cHelpWiz then cantrips and their normal spells can be chosen from Wizard spells. )

Thanks!
TC
I don't know how this is coded, but if I had to take a guess, something like adding & "(sClass.cHelpWiz & sLevel.0)" to the spell choice tag expression would do you. I think you need to use parenthesis to force it to just give cantrips. Remember the symbols are boolean operators. An "|" between the cHelpWis and sLevel would be "or", but putting an ampersand between them means "and". If you want both conditions required, you gotta use the and symbol to force it to do what you want in the tag expression.

RavenX Pronouns: She/Her

Please do not PM me to inquire about datafiles I coded "for personal use" such as Exalted, World of Darkness, AD&D, or Warhammer 40K Roleplaying. I appreciate your interest, but I do not own the Intellectual Property rights to these game systems. Nor do I have permission from any of the Publishers to distribute the data files. As such, I cannot distribute the work I have done with community on these files. They are "for personal use" only. Thank you.

I am far too busy these days to answer emails. If you message me here there is no guarantee I will get back to you at all.

Last edited by RavenX; June 30th, 2023 at 07:23 PM.
RavenX is offline   #4 Reply With Quote