<p></p>
<p>Here is a strange one.</p>
<p>The "add hero" command is documented as returning the party slot number that the hero was added into.</p>
<p>However, it seems that the actual return value is always zero.</p>
<p>The implementation in scriptcommands.bas is quite simple, and looks correct.<br>
Even adding the following to the end verifies that scriptret is set correctly<br>
<code>debuginfo "add hero scriptret=" & scriptret</code></p>
<p>However, to the calling script, the return value is always 0</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/ohrrpgce/ohrrpgce/issues/1186">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AMWGWZUJ74N3IPJZEEVGIRDSWZWPTANCNFSM4VKJ2YQQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AMWGWZQ5Z7HJLEJKAXHKEOTSWZWPTA5CNFSM4VKJ2YQ2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4LRQYQMA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/ohrrpgce/ohrrpgce/issues/1186",
"url": "https://github.com/ohrrpgce/ohrrpgce/issues/1186",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>