Log in

View Full Version : Bug: Party sheet code, drag/drop xp number to character XP field in Party sheet.



celestian
December 15th, 2023, 04:09
When reviewing why this wouldn't work I found this in CoreRPG



<number_ps name="exp">
<anchored position="insidetopleft" offset="195,10" width="65" height="20" />
<stateframe>
<drophilight name="fieldfocusplus" />
</stateframe>
<script>
function onDrop(x, y, draginfo)
if draginfo.isType("number") and Session.IsHost then
PartyXPManager.awardXPtoPC(draginfo.getNumberData( ),window.link.getTargetDatabaseNode());

return true;
end
end
</script>
</number_ps>


It should be
PartyXPManager.awardXPtoPC(window.link.getTargetDa tabaseNode(),draginfo.getNumberData());

Note that the number is last now.

Moon Wizard
December 15th, 2023, 04:15
Thanks for the note. I've pushed a hot fix. Please run a new Check for Updates.

Regards,
JPG