FG Spreadshirt Swag
  1. #1

    Effect modifier linked to stat

    Hi, a question:
    I'm building an extension for my 3.5 house rules and I'd like to add a set of effects linked to a specific stat in the character sheet.
    For example if I added a new secondary stat (something like fatigue, sanity, etc.), I'd like to create an effect with power equal to that stat value.
    He effect should then be applied to skill rolls.
    I started adding this effect in manager_action_skill.lua in the modSkill function, but I have no idea how to link the character node of the db.
    in the end the effect should be something like:
    nAddMod = nAddMod - something(.. "stat.fatigue.score" ..);

    Is this possible (and doable without modifying too much the ruleset)?

    Thank you!

  2. #2
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,404
    Quote Originally Posted by Claneidosyan View Post
    but I have no idea how to link the character node of the db.
    local sActorType, nodeActor = ActorManager.getTypeAndNode(rSource); should give you the DB node of the source of the skill action roll in nodeActor.
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  3. #3

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
DICE PACKS BUNDLE

Log in

Log in