feroulm / rptoolsRQ

rpTools Macro for RuneQuest
GNU Affero General Public License v3.0
0 stars 0 forks source link

Manage a global history log per token to track event which happens outside a combat #85

Closed feroulm closed 2 months ago

feroulm commented 6 months ago

Principles for the first version

No archiving at this stage :

Macros related to the feature ONLY :

Other macros which are modified for this feature :

sessionName is defined the campainDesc property of lib:RQII token on _Main_AE map.

In order to log an action on both the combatLog and the tokenLog the addCombatLogEntry macro must be called with an additional param set to 1.

As for example in the updateCombatProactive macro

[h, if (action == "firstCast"), code:{
    [h: "<!-- We log also to the tokenLog -->"]
    [h: addCombatLogEntry(tokenId,"proactiveAction",logMsg,logComment,"1")]
  };{
    [h: addCombatLogEntry(tokenId,"proactiveAction",logMsg,logComment)]
  }]

Related wiki documentation :