• 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

gain skill proficiency

Caedhros

Member
gain skill proficiency - script help expertise

I am trying to add a skill expertise gained on a later level of a custom class through a class special. I added the proficiency as a tag (like on level 1) but it isn't doing anything. Is there a script I could reference to try to accomplish this. I have been looking but don't see an equivalent.

It's a warrior class that gains proficiency in Insight at level 3 as an ability, but I've been coding forever and making no progress. Can someone point me in the right direction?
 
Last edited:
script

So I have changed the focus to the expertise in insight later in the class.

I am using the scripts from Experise and all is working except I can't get ONLY Insight to appear in the drop down box. If I remove the thieves tools language (scroll right line 8), it goes from two options (insight and thieves tools) to ALL the options ever (beyond skills). Can someone see why and offer a correction? I'm stumped.

PHP:
     var tagexpr as string

      foreach pick in hero from BaseSkill where "Helper.Proficient"
        perform eachpick.pulltags[ProfSkill.skInsight]
        nexteach

      if (tagis[ProfSkill.skInsight] <> 0) then
        tagexpr = "(component.BaseSkill & (" & tagids[ProfSkill.skInsight, " | "] & ")) | thingid.gTooThieve"
      
      else
        
        endif

field[usrCandid1].text = tagexpr
 
If you only want "one" Pick to be displayed in the dropdown box what is the point of the dropdown box?

Can you explain what you are trying to accomplish in plain English without the HL script talk? I am sorry but the script you posted does not logically make allot of sense and does not help explain what your trying to accomplish. :(

Re-reading your first post you are just trying to make the skill "Insight" be proficient right?

So the script on a class ability would be:
Post-Level/10000:
Code:
      ~ If we're not shown, just get out now
      doneif (tagis[Helper.ShowSpec] <> 1)
      ~ if we've been disabled, get out now
      doneif (tagis[Helper.Disable] <> 0)

      ~ Make skill Insight proficient
      perform hero.childfound[skInsight].assign[Helper.Proficient]
 
That works for the first part - adding the proficiency at level 3. Thank you - I wasn't coding the assign correctly.

What I was trying to do was add Insight expertise at level 10. I just couldn't get it to work without using a drop down, which I took from the expertise script (bard). It works if you select Insight, but I can't get it to show as the only option. I am going to try to assign it like you did for proficiency, since I now know I was doing that incorrectly. Thank you!
 
Hrm - proficiency is actually not working now. Looks like it should, and it is marked on the skill list, but doesn't actually add the proficiency bonus to the skill bonus shown on the chart. So insight is marked as proficient, but only the Wis mod is taken into account.
 
Hrm - proficiency is actually not working now. Looks like it should, and it is marked on the skill list, but doesn't actually add the proficiency bonus to the skill bonus shown on the chart. So insight is marked as proficient, but only the Wis mod is taken into account.
What timing are you using? I just tested using a quick adjustment script at Post-Level/10000 and its working. Shows the +2 plus Wisdom bonus.
 
What I was trying to do was add Insight expertise at level 10.
Just FYI I don't play 5e at all so mentioning a class ability means very little to me. :)

What does "Insight Expertise" suppose to do? I know HL scripting really well but I only just "barely" know 5e....

Looking at the bard ability. Its trying to assign the Helper.ProfDouble tag to the skill. The above script logic will let you do that to a single skill Insight.
 
Last edited:
Just FYI I don't play 5e at all so mentioning a class ability means very little to me. :)

What does "Insight Expertise" suppose to do? I know HL scripting really well but I only just "barely" know 5e....

Looking at the bard ability. Its trying to assign the Helper.ProfDouble tag to the skill. The above script logic will let you do that to a single skill Insight.

To answer your other question expertise doubles the proficiency bonus. I think you have given me a lot to work with, as I haven't tried this particular assignment before. I'm going to eat and play with it and see what I can come up with. Thanks for the pointers!
 
so I got those two working - had to tweak the timing for what I already have, but all good. I was thinking - hey if they work separately, can I use them together?

I have a friend who asked about a casting class with a level that would grant arcana proficiency if the hero didn't have it already, but if he did, it would grant nature proficiency.

I tried to just plunk the two that I was working on together, but clearly my if/then is not targeting the right tag (as it ALWAYS just grants proficiency in Arcana) but I'm not sure why.

PHP:
     ~ if not shown, get out 
      doneif (tagis[Helper.ShowSpec] <> 1)
      ~ if  disabled, get out 
      doneif (tagis[Helper.Disable] <> 0)

~do we have arcana proficiency
if (tagis[ProfSkill.skArcana] = 0) then

      ~ NO - Make skill Arcana proficient
      perform hero.childfound[skArcana].assign[Helper.Proficient]

else

      ~ YES - Make skill Nature proficient
      perform hero.childfound[skNature].assign[Helper.Proficient]

endif


I have to tell you, I've taken some time away from HL and I must be rusty or something. I have coded hundreds of pieces of classes in HL and am a tad irked that this has me feeling all noob today. Here's to like-minded helpers!
 
Looks pretty close to me but the ProfSkill.? tag is on the hero not the class special.

So this
Code:
~do we have arcana proficiency
if (tagis[ProfSkill.skArcana] = 0) then
needs to become
Code:
~do we have arcana proficiency
if ([B]hero.[/B]tagis[ProfSkill.skArcana] = 0) then

Now then the only issue is that I don't know when in 5e the ProfSkill.? gets added to the hero. It maybe VERY late in timing as I suspect its around for Pre-Req scripts.

Meaning you maybe safer to check around Post-Level/20000+ like this:
Code:
~do we have arcana proficiency
if (hero.childfound[skArcane].tagis[Helper.Proficient] = 0) then
 
Perfect!

PHP:
~ if not shown, get out 
      doneif (tagis[Helper.ShowSpec] <> 1)
      ~ if  disabled, get out 
      doneif (tagis[Helper.Disable] <> 0)

~do we have arcana proficiency
if (hero.tagis[ProfSkill.skArcana] = 0) then

      ~ NO - Make skill Arcana proficient
      perform hero.childfound[skArcana].assign[Helper.Proficient]

elseif (hero.tagis[ProfSkill.skArcana] <> 0) then

      ~ YES - Make skill Nature proficient
      perform hero.childfound[skNature].assign[Helper.Proficient]

endif
timing: Post-levels 1000
 
Back
Top