ENDING ESSENTIALS STANCES AT THE END OF THE ENCOUNTERNote: As pointed out later in the thread, at-will essentials stances do not end at the end of the encounter (Rules compendium, page 120). As such, this mod is not needed for at-will stances like the knight's (or the later beast form macro). I leave it here in case it become relevant later.Current:Currently, the framework does not end essentials stances at the end of the encounter. Once a token is in a stance, it stays in one. This can cause (minor) problems when, for example, a Knight gets a surprise round and is in a stance it should not be in.
Proposed improvement:Automatically end stances when the PC takes a short or extended rest.
Method:Find the Lib:4e.
Find the 'Short Rest' macro.
Replace this text:
Code:
After a breather, [r:getName()] has recovered all Encounter powers.
with this:
Code:
[h:mbaTemp = json.get(Powers, "Melee Basic Attack")]
[h:rbaTemp = json.get(Powers, "Ranged Basic Attack")]
[h:mbamodAttack = json.get(mbaTemp, "attack")]
[h:rbamodAttack = json.get(rbaTemp, "attack")]
[h:mbaSTAT=substring(mbamodAttack,0,3)]
[h:rbaSTAT=substring(rbamodAttack,0,3)]
[h:mbamodAttack = mbaSTAT]
[h:rbamodAttack = rbaSTAT]
[h:mbaTemp = json.set(mbaTemp, "attack", mbamodAttack, "appStateHit", "", "doesSplashDmg", "", "splashDmgInfo", "", "hitEffect", "--none--", "missEffect", "--none--", "otherMissDmg", 0)]
[h:rbaTemp = json.set(rbaTemp, "attack", rbamodAttack, "appStateHit", "", "doesSplashDmg", "", "splashDmgInfo", "", "hitEffect", "--none--", "missEffect", "--none--", "otherMissDmg", 0)]
[h:Powers = json.set(Powers, "Melee Basic Attack", mbaTemp)]
[h: Powers = json.set(Powers, "Ranged Basic Attack", rbaTemp)]
[h:Stance =""]
After a breather, [r:getName()] has recovered all Encounter powers. All stances end.
Then edit the 'Extended Rest' macro by replacing this text:
Code:
After an extended rest, [r:getName()] has recovered all healing surges and all Daily and Encounter powers.
with this:
Code:
[h:mbaTemp = json.get(Powers, "Melee Basic Attack")]
[h:rbaTemp = json.get(Powers, "Ranged Basic Attack")]
[h:mbamodAttack = json.get(mbaTemp, "attack")]
[h:rbamodAttack = json.get(rbaTemp, "attack")]
[h:mbaSTAT=substring(mbamodAttack,0,3)]
[h:rbaSTAT=substring(rbamodAttack,0,3)]
[h:mbamodAttack = mbaSTAT]
[h:rbamodAttack = rbaSTAT]
[h:mbaTemp = json.set(mbaTemp, "attack", mbamodAttack, "appStateHit", "", "doesSplashDmg", "", "splashDmgInfo", "", "hitEffect", "--none--", "missEffect", "--none--", "otherMissDmg", 0)]
[h:rbaTemp = json.set(rbaTemp, "attack", rbamodAttack, "appStateHit", "", "doesSplashDmg", "", "splashDmgInfo", "", "hitEffect", "--none--", "missEffect", "--none--", "otherMissDmg", 0)]
[h:Powers = json.set(Powers, "Melee Basic Attack", mbaTemp)]
[h: Powers = json.set(Powers, "Ranged Basic Attack", rbaTemp)]
[h:Stance =""]
After an extended rest, [r:getName()] has recovered all healing surges and all Daily and Encounter powers. All stances end.
Outcome:When the PC takes a short or extended rest, all stances on the token should turn off.