Spyke
August 4th, 2008, 15:11
When re-opening an Item, the 'At a glance' text is shared even if the 'When identified' checkmark is ticked.
To reproduce this:
1. As GM open an Item and enter some text in the 'At a glance' and 'When identified' boxes.
2. Tick the 'When identified' checkmark.
3. Share the sheet with a player. Note that the 'When identified' text is displayed for the player.
4. Close the Item for All.
5. Open the same item. Note that the 'When identified' tick is still present.
6. Share the sheet with a player. Note that the 'At a glance' text is displayed for the player. This is incorrect.
7. Choose 'Update Shared Sheet', or toggle the checkmark off and on again. The 'When identified' text is now displayed correctly for the player.
To fix this, I think you need to change the onInit() function in the stringfield "identified" for the "item_client" window in adventure_items.xml from:
function onInit()
identifynode = getDatabaseNode().createChild("isidentified", "number");
identifynode.onUpdate = identifyUpdated;
end
to:
function onInit()
identifynode = getDatabaseNode().createChild("isidentified", "number");
identifynode.onUpdate = identifyUpdated;
identifyUpdated();
end
Spyke
To reproduce this:
1. As GM open an Item and enter some text in the 'At a glance' and 'When identified' boxes.
2. Tick the 'When identified' checkmark.
3. Share the sheet with a player. Note that the 'When identified' text is displayed for the player.
4. Close the Item for All.
5. Open the same item. Note that the 'When identified' tick is still present.
6. Share the sheet with a player. Note that the 'At a glance' text is displayed for the player. This is incorrect.
7. Choose 'Update Shared Sheet', or toggle the checkmark off and on again. The 'When identified' text is now displayed correctly for the player.
To fix this, I think you need to change the onInit() function in the stringfield "identified" for the "item_client" window in adventure_items.xml from:
function onInit()
identifynode = getDatabaseNode().createChild("isidentified", "number");
identifynode.onUpdate = identifyUpdated;
end
to:
function onInit()
identifynode = getDatabaseNode().createChild("isidentified", "number");
identifynode.onUpdate = identifyUpdated;
identifyUpdated();
end
Spyke