STAR TREK 2d20
  1. #1

    Massive Damage: System Shock

    Hi Guys.

    I have successfully modified the manager_action_save.lua file and successfully debugged the issues I was having. (Mainly ending elseif statements in the wrong place and forgetting formatting)

    The only problem is... FG is not reading from that file.
    The modifications call for a d20 roll instead of a d10 and should have effects applied automatically.
    Instead the application defaults to its standard behavior after the file has been modified and inserted back into the .pak file.

    Whenever system shock damage is called for the standard d10 and options are performed.
    This is infuriating me!

    Any help would be much appreciated.
    Another thought is, should I have just made this an .ext file instead?

  2. #2
    Zacchaeus's Avatar
    Join Date
    Dec 2014
    Location
    Scotland
    Posts
    20,828
    Quote Originally Posted by Frank_Jager View Post
    Another thought is, should I have just made this an .ext file instead?
    Yes
    If there is something that you would like to see in Fantasy Grounds that isn't currently part of the software or if there is something you think would improve a ruleset then add your idea here https://www.fantasygrounds.com/featu...rerequests.php

  3. #3
    Can you override just a single function in a LUA file in that way?

  4. #4
    Zacchaeus's Avatar
    Join Date
    Dec 2014
    Location
    Scotland
    Posts
    20,828
    I don't know, but what I can say is that anything like this should be done as an extension rather than changing the ruleset directly otherwise you'll miss out on updates.

    I suspect that you'll have to do more than just update a single function anyway.
    If there is something that you would like to see in Fantasy Grounds that isn't currently part of the software or if there is something you think would improve a ruleset then add your idea here https://www.fantasygrounds.com/featu...rerequests.php

  5. #5

    Join Date
    Apr 2009
    Location
    Fullerton, CA.
    Posts
    625
    Zacchaeus is right in regards to updates, whenever FG updates, you would have to modify the manager_action_save.lua file.

    If you must change a function in one of the manager_xxx.lua files then you are changing a high level file and there will be some maintenance on your part over time to keep it working as FG updates. Probably not a lot, but it's worth mentioning.

    Wrapping your changes in an extension is a better practice than replacing the function for each FG update.

  6. #6
    I am curious if anyone has found a solution to this... making a custom extension to augment or change the standard System Shock (heavy damage) roll.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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
  •  
FG Spreadshirt Swag

Log in

Log in