Mephisto
February 21st, 2023, 23:04
Hi all,
I have some troubles with function CombatManager.rollStandardInit and groups.
In the 5E Combat Manager, function rollRandomInit is defined, which is assigned to the CoreRPG COmbatManager to be the function handling NPC init rolls. The 5E rollRandomInit is very short and basically just rolls a D20 and determines ADV and DIS, nothing else.
In my ruleset, I need to have a more complex init roll. I have build this in manager_action_init. I assign the perfomRoll function of the Manager to be used by CoreRPG and it works just fine except if I roll init for groups.
The issue seems to be the order of function calls. FGU runs through rollStandardInit, which triggers the performRoll function in manager_action_init. However, it runs through the loops defined for group init rolls without waiting for the roll result of the first NPC called via performRoll. Consequently, the first NPC has no init value and cannot inherit anything to other group NPCs. They all get a init of zero assigned.
56303
Any ideas on how to resolve this?
I have some troubles with function CombatManager.rollStandardInit and groups.
In the 5E Combat Manager, function rollRandomInit is defined, which is assigned to the CoreRPG COmbatManager to be the function handling NPC init rolls. The 5E rollRandomInit is very short and basically just rolls a D20 and determines ADV and DIS, nothing else.
In my ruleset, I need to have a more complex init roll. I have build this in manager_action_init. I assign the perfomRoll function of the Manager to be used by CoreRPG and it works just fine except if I roll init for groups.
The issue seems to be the order of function calls. FGU runs through rollStandardInit, which triggers the performRoll function in manager_action_init. However, it runs through the loops defined for group init rolls without waiting for the roll result of the first NPC called via performRoll. Consequently, the first NPC has no init value and cannot inherit anything to other group NPCs. They all get a init of zero assigned.
56303
Any ideas on how to resolve this?