This evening, I re-opened the ongoing campaign I've been running in 1.3.91 and something weird is going on. I have a macro for "onCampaignLoad" that displays a form and then sets a macro to run anytime a token is clicked, to display the stat sheet on the form. It looks like this...
Code: Select all
[h: link = macroLinkText("NewStatBlock@Lib:PC_CombatMacros", "none", "", getSelected())]
[frame("New Stat Block"):
{
<html>
<head>
<link rel="onChangeSelection" type="macro" href="[r:link]">
<link rel='stylesheet' type='text/css' href='StyleSheet@Lib:PC_CombatMacros'></link>
<title>New Stat Block</title>
</head>
<body>
<div class="statBlock">
<p><strong>Select token,then dock window accordingly to preferences</strong></p>
</form>
</div>
</body>
</html>}
]
Error in body of roll.
Statement options (if any): h, if(displayStatBlock == 1), code Statement Body : { [h : switchToken(getSelected())] [h, if(getPropertyType() != "Pathfinder Player") : displayStatBlock = 0] }
In my "NewStatBlock" macro, I can see where this line is but I haven't changed this in months. It looks like this...
Code: Select all
[h : displayStatBlock = 1]
[h, if(getSelected() == "") : displayStatBlock = 0]
[h : allSelected = getSelected()]
[h, if(listCount(allSelected) > 1) : displayStatBlock = 0]
[h, if(displayStatBlock == 1), code : {
[h : switchToken(getSelected())]
[b][h, if(getPropertyType() != "Pathfinder Player") : displayStatBlock = 0][/b]
}]
[h, if(displayStatBlock && !isGM()), code : {
[h, if(isOwner() == 0) : displayStatBlock = 0]
}]
Error in body of roll.
Statement options (if any):
Statement Body : broadcast("Step 1")
I had this campaign open and had no issues in 1.3.91 not two days ago. The ONLY thing I've done in Maptool was to fire up 1.4 to check it out. Please tell me that didn't somehow mess up my 1.3.91 campaign!!!
I have a session this Friday and so am in a bit of a panic!