[Ohrrpgce] SVN: teeemcee/7845 Add script error checking for most hero commands. Added valid_hero_cater

subversion at HamsterRepublic.com subversion at HamsterRepublic.com
Sun Mar 20 07:39:15 PDT 2016


teeemcee
2016-03-20 07:39:15 -0700 (Sun, 20 Mar 2016)
411
Add script error checking for most hero commands. Added valid_hero_caterpillar_rank

Added errlvl arg to findhero. Notably, textbox conditionals for locking,
swapping, etc, heroes should now show warnings if the hero doesn't exist.

Luckily these commands all used low <= retval AND retval <= high checking.
Many of the remaining commands without error checking use bound(), which
needs to be treated carefully.
---
U   wip/game.bas
U   wip/moresubs.bi
U   wip/moresubs.rbas
U   wip/scriptcommands.bas
U   wip/scriptcommands.bi


More information about the Ohrrpgce mailing list