Inn routine

TURBU

Inn routine

 

Calls the inn.

 

Syntax

 

function inn(messageStyle: byte; cost: integer): boolean;

 

Description

 

The inn routine begins the Inn system.  It asks if the party would like to rest at the inn, and presents a choice.  If the party does not have at least cost gold on hand, the "Yes" option is grayed out.  If the player chooses "Yes", all heroes are fully healed via the fullheal routine, and the function returns true.  If the player chooses "No" or presses the cancel button, the function returns false.

NOTE: Certain MIDI files will not work correctly with this routine.  See MIDI Lead-in Issue for details.

This help file was created with the free trial version of HelpScribble.