tutorialb scripts
The tutorial scripts are a tad... overgenerous I think.
Since perl doesn't have a case/switch construct I can use to rewrite the code, it's an elsif rewrite...
The simple if ($itemcount{}) in the EVENT_ITEM sub allows major player shortcuts if you attempt the turn in for the biggest item first... With the series of independent
if this
if that
if otherthing
you also get any of the other items that require some sub-combination of components.
This is probably old news to anyone who has run their server for more than a week, but I'm just working mine up from the beginning...
|