PDA

View Full Version : Setting Item to be identified by default



AmadanNaBriona
March 26th, 2020, 04:12
Adding items to a character inventory sheet, it seems to default to "nonid" which means the name entered in the inventory list is the Non-ID Name. Even though by default the "Item Identified" icon is enabled for newly created items.

If I click the "Item Identified" icon (making it "not identified") and then click it again, thereafter dragging the item onto a character's inventory shows the proper name.

How do I make it show the IDed name by default?

Here is the relevant code from the character record inventory xml:

<windowclass name="char_invitem">
<margins control="0,0,0,2" />
<script>
function onInit()
onIDChanged();
getDatabaseNode().onDelete = onDelete;
end

function onIDChanged()
local bID = ItemManager.getIDState(getDatabaseNode(), true);
name.setVisible(bID);
nonid_name.setVisible(not bID);
end

function onDelete(node)
ItemManager.onCharRemoveEvent(node);
end
</script>
<sheetdata>
<hn name="isidentified">
<script>
function onValueChanged()
window.onIDChanged();
end
</script>
</hn>

Zacchaeus
March 26th, 2020, 10:41
What ruleset?

AmadanNaBriona
March 26th, 2020, 11:28
I'm creating one from The Fantasy Trip, based on the GURPS ruleset.

Talyn
March 26th, 2020, 12:14
I'd contact the GURPS ruleset author then. The CoreRPG default was changed to identified like two-ish years ago, so something in GURPS might be overriding that. Bring it to their attention.