Jump to content

Recommended Posts

  • 2 months later...

Updated the framework to version 1.1.5b. Here is a more detailed summary:

 

Added function GetBaseAPI() to APPS_FW_Core

Allows a mod to access the base API without creating a property for it or by extending APPS_FW_Registrar.

 

Added function WouldGiveRP() to APPS_FW_Relationship

This function returns how much RP would be given, when a mod wants to add a certain amount of Relationship Points. Useful for breakpoints which are between two Relationship Ranks, ie:

 

If(CurrentRP < 150)
    If(RS.WouldGiveRP(Foreman, PlayerFirewoodCount * JsonUtil.GetFloatValue("FavorReturnOverhaul", "RPPerFirewood") + RS.GetRelationshipPoints(Foreman)) >= 150)
        RS.SetRelationshipPoints(Foreman, 150)
    Else
        RS.ModRelationshipPoints(Foreman, PlayerFirewoodCount * JsonUtil.GetFloatValue("FavorReturnOverhaul", "RPPerFirewood"))
    EndIf
EndIf
Added private function _CalculateRP() to APPS_FW_Relationship

Unless you know what you are doing, you shouldn't use this function. Only noted down for changelog documentation.

 

Added interface support for common know languages

Although all languages except German are still in English.

Link to comment
  • 3 weeks later...

Updated the framework to version 1.1.7b

 

Added new functionality to the framework which allows mods to group actors together and update their Relationship Points by a common value. Also mods now can link global variables to those groups and get them updated by the framework whenever one of the actor in the group was updated.

 

New functions added:


      • CreatePrivateGroup() : Create a group which is only accessable by your mod
      • CreatePublicGroup() : Create a group which can be shared through every mod
      • DeletePrivateGroup() : Deletes a private group
      • DeletePublicGroup() : Deletes a public group. Should be used with care because other mods could rely on the group
      • IsPublicGroupCreated() : Checks if a public group exists
      • AddToPrivateGroup() : Adds an actor to the specified private group
      • AddToPublicGroup() : Adds an actor to the specified public group
      • RemoveFromPrivateGroup() : Removes an actor from a private group
      • RemoveFromPublicGroup() : Removes an actor from a public group
      • ModPrivateGroupRS() : Applies the specified RP to all actors in the private group
      • ModPublicGroupRS() : Applies the specified RP to all actors in the public group
      • LinkPrivateGroupWithGV() : Link a global variable with a private group and get this global updated everytime the RP of any actor changes
      • LinkPublicGroupWithGV() : Link a global variable with a public group and get this global updated everytime the RP of any actor changes

 

Global variable links can be of one of the three types:

  1. Highest: The global variable will be updated with the highest RP of any actor has in the group
  2. Lowest: The global variable will be updated with the lowest RP of any actor in the group
  3. Average: The global variable will be updated with the average RP of all actors in the group

Link to comment
  • 2 weeks later...
  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use