• 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

Selected skill as class skill

Illyahr

Well-known member
Ran into an issue that I'm having trouble with. There are feats/abilities in the Rokugan Campaign Setting that allow you to select cross-class skills and add them as class skills and I'm having trouble getting it to script properly

This is what I have so far. Kolat Agent ability "Broadened Skill Base" has two "Broadened Skill" things bootstrapped. The feat "Versatile" will have similar coding once this one is done.

Code:
      ~ If we're disabled, do nothing
      doneif (tagis[Helper.FtDisable] <> 0)

      call fTargetFoc
      doneif (state.isfocus = 0)

      ~ Add chosen to class skills
      var index as number
      var target as string
      target = field[fChosen].chosen
      index = hero.child[cHelpKol].assign[ClassSkill.target]

      ~ Add 1 to our chosen skill
      focus.field[Bonus].value += 1

Any thoughts?
 
Ran into an issue that I'm having trouble with. There are feats/abilities in the Rokugan Campaign Setting that allow you to select cross-class skills and add them as class skills and I'm having trouble getting it to script properly

This is what I have so far. Kolat Agent ability "Broadened Skill Base" has two "Broadened Skill" things bootstrapped. The feat "Versatile" will have similar coding once this one is done.

Code:
      ~ If we're disabled, do nothing
      doneif (tagis[Helper.FtDisable] <> 0)

      call fTargetFoc
      doneif (state.isfocus = 0)

      ~ Add chosen to class skills
      var index as number
      var target as string
      target = field[fChosen].chosen
      index = hero.child[cHelpKol].assign[ClassSkill.target]

      ~ Add 1 to our chosen skill
      focus.field[Bonus].value += 1

Any thoughts?

"target = field[fChosen].chosen" isn't going to do anything. You need to point it to a tag or a field or something. Like this:

Code:
target = field[fChosen].chosen.tagid[thingid.?]

Incidentally, you can always test your variables with with the "debug" command.

For example, if you add the line "debug target" at the bottom of your script, then recompile, you can see what target is set to by going Develop -> Floating Info Windows -> Show Debug Output in your portfolio.
 
Ok, not getting syntax errors anymore, but now it's saying that there is an invalid use of a reserved word on line 11.
 
Last edited:
Ok, not getting syntax errors anymore, but now it's saying that there is an invalid use of a reserved word on line 11.

probably this line:

Code:
index = hero.child[cHelpKol].assign[ClassSkill.target]

you can't use a variable like this. try:

Code:
target = "ClassSkill." & target
index = hero.child[cHelpKol].assignstr[target]
 
Let me re-write the above as what you have is mix of different scripts I have to assume.

Here:
Code:
      ~ If we're disabled, do nothing
      doneif (tagis[Helper.FtDisable] <> 0)

      call fTargetFoc
      doneif (state.isfocus = 0)

      ~ Get the class skill tag from the focus
      perform focus.pulltags[ClassSkill.?]

      ~ Assign this to our hard-coded class?
      perform hero.child[cHelpKol].pushtags[ClassSkill.?]

      ~ Add 1 to our chosen skill
      focus.field[Bonus].value += 1

Do you really want to hard-code the class in this feat? The feat ONLY works with this specific class?
 
This one is class specific. Another that doesn't boost isn't.

Tried the script, doesn't add to class skills. What timing should it be?
 
This one is class specific. Another that doesn't boost isn't.

Tried the script, doesn't add to class skills. What timing should it be?
Any timing before Pre-Levels/1000 is working for me. I changed the script to work for a fighter. I selected Bluff and the fighter gets Bluff as a class skill.

I also found the other "easier" way to do this script is to set the ClassSkill.? tag onto the hero as that makes the skill a class skill for the character.
 
Hey mates, your coding talk is beyond my 3rd grade level, but if I'm reading this right, you are making a feat that adds a class skill to a class and gives it a +1 bonus?

If so, I have a gazillion uses for a feat like that, would it be possible for you to post the user file here, Illyahr?
 
Hey mates, your coding talk is beyond my 3rd grade level, but if I'm reading this right, you are making a feat that adds a class skill to a class and gives it a +1 bonus?

If so, I have a gazillion uses for a feat like that, would it be possible for you to post the user file here, Illyahr?
Here is the test .user file I was playing around with.
 

Attachments

Finished up the feat, as well as the source of the feat. That one is class specific, but there is an actual feat that makes two skills class skills. Here is the file, if you want to use it.

Warning, may still be a little buggy. Still programming.
 

Attachments

When Oriental Adventures was released based on the Legend of the Five Rings setting, the L5R guys made supplementary material that fleshed it out more for the d20 system. It's a series of d20 books that are based around Japanese mythology and culture.
 
I meant the land and politics, I am familiar with the setting, at least it's existence, and I own all the books for D&D for the setting, but mostly I just red markered all the cultural stuff and adapted the rest to my own oriental culture in D&D
 
Back
Top