[Ohrrpgce] [Bug 63] New: Crash when trying to rename a hero not in
party
bugzilla-daemon at cyberverse.com
bugzilla-daemon at cyberverse.com
Mon May 16 14:37:53 PDT 2005
http://HamsterRepublic.com/bugzilla/show_bug.cgi?id=63
Summary: Crash when trying to rename a hero not in party
Product: OHRRPGCE
Version: 20040628 Ozarks
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P3
Component: Plotscripts
AssignedTo: Bob at HamsterRepublic.com
ReportedBy: caron.mike at gmail.com
CC: ohrrpgce at lists.motherhamster.org
If you try to use the "rename hero" command (or, rather, the underlying "rename
hero by slot" command) when the hero in question is not in the party (active or
reserve), the program will terminate with an "Out of Bounds" error.
This issue can be resolved in two ways: Fixing game.exe or kludging plotscr.hsd.
The kludge involves rewriting the "rename hero" script in plotscr.hsd:
script,renamehero,who,begin #old version
renameherobyslot(findhero(who))
end
To ->
script,renamehero,who,begin #new version
if(find hero(who)>>-1) then (renameherobyslot(findhero(who)))
end
Or even
script,renamehero,who,begin
if(find hero(who)>>-1) then (renameherobyslot(findhero(who)),return (true))
else (return(false))
end
--
Configure bugmail: http://HamsterRepublic.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the Ohrrpgce-motherhamster.org
mailing list