• 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

Totem Warrior SCAG Choices

dropbear8mybaby

Well-known member
Hi, new troll here :)

I'm very new to all this scripting/HL stuff so I might not understand instructions. Please bear with me :)

I'm trying to add in the Tiger Aspect of the Beast as the current community pack version just has "Placeholder..." and does nothing. I think it's based off of the Bear Encumbrance one as the scripting in it seemed to indicate that. Anyway, I copied it to my homebrew data file, and copied the scripting from the Skilled feat, took out some conflicting, unnecessary stuff, changed it to 2 abValue, and so far it actually works. It grants two extra proficiencies when taken, which is great.

My problem is that it grants not only from the entire list, rather than just the ones available to the totem ability, and it also allows choosing from the Tools proficiencies.

How do I change the scripting or what options do I choose in the Tools Editor to restrict the choices to just the ones that are supposed to be available to it?
 
You are calling 5CAddProf right?

Change you variable name from "NumOfProf" to "NumOfSkill" . That will restrict the choices to skills only.

Now, for a complete solution:

1) Open your thing (I'm not sure if you're using a class Special or custom ability)
2) Click on bootstrap
3) Bootstrap cfg5CProf
4) Add the following fields:
Field id: cSkillMax Value: 2 Assign.
Field id: cSkCandExp Value: component.BaseSkill & (Reference.idskill | Reference.idskill )

Where idskill is the skill thing name. For example, perception would be skPercep . Example 2, to offer Athletics and survival:

component.BaseSkill & (Reference.skAthletic | Reference.skSurvival )

Thats it. The proficiencies tab should open and allow only the selected skills.
 
You are calling 5CAddProf right?

Change you variable name from "NumOfProf" to "NumOfSkill" . That will restrict the choices to skills only.

Now, for a complete solution:

1) Open your thing (I'm not sure if you're using a class Special or custom ability)
2) Click on bootstrap
3) Bootstrap cfg5CProf
4) Add the following fields:
Field id: cSkillMax Value: 2 Assign.
Field id: cSkCandExp Value: component.BaseSkill & (Reference.idskill | Reference.idskill )

Where idskill is the skill thing name. For example, perception would be skPercep . Example 2, to offer Athletics and survival:

component.BaseSkill & (Reference.skAthletic | Reference.skSurvival )

Thats it. The proficiencies tab should open and allow only the selected skills.

Yes, I was using

Code:
      ~ If we're disabled, do nothing & 
      doneif (tagis[Helper.Disable] = 1)

      var NumOfProf as number
      ~ Increase or decrease the number of proficiencies 
      NumOfProf = field[abValue].value
      call 5CAddProf

Copied from... err... I think it was the Skilled feat. So I'll change that to NumOfProf to NumOfSkill, thanks.

I don't quite understand what you mean by inputting the value for cSkCandExp though. Is all of that put into the tiny value box? And is it an assign as well or a thing or something else?

I'll tinker to try and figure it out without your answer to the above but I don't like my chances :)

EDIT: Yeah, I'm doing something wrong somewhere. It compiles and is chooseable for the barbarian as a proper aspect and all, but when I go to the new Proficiencies tab and click to choose a proficiency, the following error comes up:

Syntax error in dynamic 'candidate' tag expression.

So does that mean I have to add a new tag or did I mess up somewhere else?
 
Last edited:
No, it means the expression for cSkCandExp is wrong somewhere. Usually means the tags chosen are invalid.

Could you post the field content here?
 
No, it means the expression for cSkCandExp is wrong somewhere. Usually means the tags chosen are invalid.

Could you post the field content here?

So, I'm not too bright when it comes to this stuff so sorry if I'm not following 100%. When you say from the "field content" I'm assuming you mean from the Fields within the Bootstrap you said to create and not the stand-alone Field button in the Tool Editor?

If that's the case, then here it is:

Code:
component.BaseSkill & (Reference.skAthletics | Reference.skAcrobatics | Reference.skStealth | Reference.skSurvival )
 
Precisely, the fields from the bootstrap.

The problem was with the ids of the skills, as I thought. Here's the correct string:

component.BaseSkill & (Reference.skAthletic | Reference.skAcrobat | Reference.skStealth | Reference.skSurvival )

The skills ids all start with sk followed by the skill name, but the whole string cannot be bigger than 10 characters.

If you enable the Data file debug (in the Develop menu), you can check the id of the skills by right clicking the (?) button in them in the character, and choosing copy unique id to clipboard.

Hope that helps.
 
Hope that helps.

OMG yes!

It's those little things, like knowing that the "string" can't be more than 10 characters that trips plebs like me up :)

Thanks again.


EDIT: OK, I spoke too soon. It's now giving me a validation error saying that there are too many tool proficiencies chosen after choosing a skill. I can't even find a reference to any tools anywhere in it so I have no idea where that's coming from or what it's conflicting with.
 
Last edited:
Interesting. I didn't spot it because I used it to allow for both skills and tools. By looking at the code of 5CAddProf and cfg5CProf , it seems they copy the values of cSkillMax cToolMax around, in order to implement the possibility of choosing either skill or tool. So, in your case, you start with:

cSkillMax = 2 (I guess)
cToolMax = 0

And internaly the code updates the variables that count how many things you selected:

cSkillCur and cToolCur. So, after selecting your skills, you end up with cToolCur > cToolMax , which generates the warning.

To make a long story short, to fix it:

1) Go back to the bootstrap of cfg5CProf
2) Rename the field cSkillMax to cSkillMax2
3) Rename the field cSkCandExp to cSkCandEx2
4) Test it.

What you get: The selections you get now look like the skills in the Skills tab, with the skill name, the skill bonus, the (?) button, and no (x) to remove the selection. You need to right click the selection and choose delete. Awful, if you ask me.

To be honest, don't do that. We just need to circunvent those calculations:

1) Undo the changes above
2) Go to the thing where you bootstrapped cfg5CProf and click on eval scripts
3) Add a new eval script:

Phase: Post-attributes
Priority: 10000
Index: 1


Code:
=================================

hero.childfound[cfg5CProf].field[cToolCur].value = 0

=================================

What you get: No more validation messages from tool proficiencies.


Let me know of your questions.
 
Last edited:
Hehe, stream of consciousness posting?

Did the second part with the new eval script and it all seems to be working fine :)

Thanks again, I never would've figured this out by myself.
 
Back
Top