• 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

Deleting Class Skills

AndrewD2

Well-known member
I've got an oracle curse that gives a -5 penalty to some skills and removes it as a class skill.

so I started with

Post-Levels 10000
Code:
     ~if we're not shown, just get out now
      doneif (tagis[Helper.ShowSpec] = 0)

      doneif (hero.tagis[Hero.NoNegCurse] <> 0)

      foreach pick in hero from BaseSkill where "thingid.skBluff|thingid.skDiplo|thingid.skIntim|thingid.skSenseMot"
          eachpick.field[Penalty].value -= 5
          perform eachpick.delete[Helper.ClassSkill]
       nexteach

And it worked, until I added a mystery that granted any of those skills and it overrode it, so I adjusted timiing up and down, all the way up to final 10000 as I knew the class skill bonus is asigned at final 20000 and so it would need to be deleted before that.

Didn't work, so then I tried deleting the ClassSkill.<insert skills> on every pick on the hero to try and remove it adjusting timing from Post Levels 10000 to Final 100000

Code:
      foreach pick in hero
          perform eachpick.delete[ClassSkill.skBluff]
          perform eachpick.delete[ClassSkill.skDiplo]
          perform eachpick.delete[ClassSkill.skIntim]
          perform eachpick.delete[ClassSkill.skSenseMot]
      nexteach

That was added to the previous script. Still no luck, so I'm looking for help, any ideas?

Andrew
 
I'm no expert (more like naive novice), but best guess for me is to either:

A) run your script at final 15000 (Something else happens at final 10000 (Eval Rule 1, whatever that is) and see if that intercedes; or

B) somewhere after final phase 20000, change the field skClsKsBon to a value of 0, then strip the ClassSkill tags

Not sure if either would work, but that is my 2 cents....
 
Right-click any skill on the character, and choose "Show Debug Tasks for XXXXX".

Now, look at the list of scripts running on that skill - you'll see that one of them is named "Field Calculate - Field "Modified Level" (skTotal)". So, you know that being a class skill adds +3 to skTotal, so therefore, you'll need to control whether it's a class skill before that script runs, because that's probably the script that's testing for that tag.
 
So this was one of those idiot moments where you're testing one thing and looking at another. I was testing using the Bluff skill but my mind was set on it being Perception, so I was confused why Perception wasn't going away as a class skill ... I go hang my head in shame now.
 
Back
Top