Gem Trader LADY Script -- Archived Comment notes removed from
GemTrade.ldy file on June 24, 2002:  By Donald Tidmore
Revised file on July 02, 2002;  October 18, 2006.
---------------------------------------------------------------

Notation for Gemtr107.zip file, for archival backup, and public
distriution.  Copy of Gemtrade.ldy (also included named as
gemtr107.ldy) has been tested and debugged using LORD v4.07 beta,
late May 2002 compilations.  The script should work normally
using LORD v4.05 and LORD v4.06.  If it doesn't, let me know.

Gem Trader v1.08 added to archive.  Fully tested and debugged.
After paying 4 Gems to see Special Deals menu, player may buy
an Horse for 16 Gems.  Archive contains Gem Trader v1.07 also
which does not have special deals code.

Removed from Introduction section:
==================================
; 04/22/2002: Changed script wording.
; 04/22-23 - v1.03: Allows repeat purchase of Hitpoints. 04/23:
; v1.04 - Recoded Strength points handling section.  Added two new
; routines - CHECK-GEMS and NEW-SALE.  v1.05 - Rewrote Defense code
; section. v1.06 - Rewrote PUNISH routine. Script now uses Global
; variables throughout. 06/12/2002: Minor wording/spacing changes made.

Removed from Penalties section:
===============================
; 04/23/02: Switched from using Exp. Points, Gold in Bank, and Charm
;    in levying punishment.  Script revised to take HALF of their
;    Gems, give 90% Hitpoint damage, and charm loss upped to 10%.

Removed from ending of GemTrade.ldy:
====================================
; =================================================================
;  Gem Trader Version History:
;  v1.00 fully tested and released to the public - March 31, 2002.
;  v1.01 now allows player to select how many potions they want.
;        Released to public around April 02, 2002.
;  v1.02 - various wording, color code changes made. mid-April 2002.
;  v1.03 - added code to allow player to make NEW potion purchase
;        of Hitpoints potions only.  Fully tested. 4/23/02 1:00 am.
;  v1.04 - Rewrote HP/AS sections, and did initial revision of script
;          to use Global Variables.  Strength code now allows repeat
;          sales.  Finished testing at 2:45 am.
;  v1.05 - Rewrote Defense code section.  Finished testing. 3:29 am.
;  v1.06 - Rewrote the Punishment subroutine.  Finished adapting script
;          to use standardized global vars throughout. Finished debugging
;          changed punishment code.  Script revision completed 4:48 am.
;  v1.06 - 04/27/02 - Checked on some reported problems.
;  v1.07 - 06/12/02 - Reworded the Punishment scene.
;  v1.08 - 07/02/02 - Public release of Script update featuring
;          Horse purchase for 20 gems total price.
; =================================================================
; v1.09a - Bug-fix code - to correct some errors.
; v1.09b - Special Deals section completely rewritten.  Horse trade
;          code fully tested as of 2:00 am July 25th.
; v1.09c - Fairy trade code fully tested on July 26th.
; v1.10 - Publicly released Gem Trader script - July 26 late evening.

; v1.08 notes: Started Horse for Gems trade work on June 20th.
; Still debugging script, fine-tuning Special Deals section. 06/27.
; Finished testing phase for Horse code of script. 07/01/02.
;   v1.09 Bug fix - When player exited script with 3 or less gems, it
; was not displaying their Defense stats correctly. v1.09b - Rewrote
; Special Deals section fully tested as to Horse Trades. v1.09c -
; Integrated Fairy Trade into script. Which requires user to be using
; LORD v4.07, post-April 2002 compilation.  

Removed from dgt-lady.txt on August 17: Some parts reworded.
==================================
   v1.06 allows user to make several purchases if desired, until they
     run out of Usable Gems for deal-making.  
   v1.07 has an rewritten Punishment Routine.
   -------------------
   v1.08 - Added Special Deals Menu. Requires 4-gems payment to see
     options.  Code for Gem Trade for Horse, 16-gem price, tested.
     Released publicly on July 02.   v1.09a - minor bug-fix release.
   v1.09b - Rewrote Special Deals menu code.  Rewrote Horse trade
     routine, and retested all scenarios.  Finished on July 25.
   v1.09c - Fairy trade code integrated into Script's Special Deals
     section.  Fully tested and debugged as of July 26. Cost of Fairy
     is 32 Gems, plus the 4-Gem Admission Fee to Special Deals area.

   Important note:  Fairies have always been acquireable via an IGM,
   or in LORD itself by succeeding at catching one.  However, for LADY
   Scripts, the script variable &Pfa for Fairy became usable in April
   2002.  So in order to actually GET the fairy, you will have to be
   running post-March 2002 compilation of LORD v4.07 beta.  Those using
   older versions or compiles will have their gems deducted if they try
   to buy a Fairy.  But you will NOT actually get one.

   Only other contemplated work for Gem Trader is as follows:
   ----------------------------------------------------------
   (1) Try usage of v4.07-ONLY script math symbol support - which allows
       direct manipulation of an LORD stat using +/- for add/subtract, etc.
   (2) When usable, also v4.07-ONLY, have script write to Daily Happenings
       when various events take place in Peddler Jack's camp.
   (3) When usable, v4.07-ONLY, have support for displaying ANSI or SANSI
       screen at beginning or end of script.
   (4) MAYBE allow player to trade for Orphans.  However, it would penalize
       anyone trying to buy a Child who already had 50 or more Kids.

Archived on 11/16/02 from GemTrade.ldy:
=======================================
;    v1.11: Changed script's label names.  Payment of extra Gems for
; Horse/Fairy - grant 3 Charm points.  Added variable charm point loss
; for Horse bite/Fairy bolt injury. v1.12: off-loaded Fairy script
; component into subsidiary script file, which will run ONLY under
; LORD v4.07 beta.  08/24/02.  v1.13: Added Max stats handling section.
; 11/02/02: Changed script to accept 4-digit gem conversion requests.
;

Merged into GT_LADY.TXT 10/18/06 from GT-COMME.DAT file:

File was created to remove data from GEMTRADE.LDY to improve its
compatibility with LORD for Windows v4.07 Beta.
========================================

; Fairy code in Special Deals section requires LORD v4.07 beta,
; specifically post-March 2002 compilations. v1.10 released 07/26/2002.
;
; Advisory to end-user:  This script is VERY complex.  It should be
; run as a SEPARATE script!  If you ignore my warning, I am NOT
; responsible if your LORD game crashes as a result, from it being
; run from another script, containing other scripts!! 08/16/2002 Note.
;
; Testing Notes:  This script has been tested under DOS LORD v4.05pb,
; DOS LORD v4.06, DOS LORD v4.07, and DOS LORD v4.08 beta.  It is
; *NOT* usable with April 2006 compilations of LORD/32 for Windows,
; v4.07 beta.  Usability with September 2006 compilation of LORD/32,
; v4.08 beta, has not been determined yet.
; ====================================================================
;

; The Gem Trader v2.10 LORD IGM:  Available from this URL:
; http://www.filegate.net/camelot/lordfile/gemtr210.zip - 10/07/03 note.
;
; The Gem Trader v2.20 LORD IGM:  Available from this URL:
; http://www.filegate.net/camelot/lordfile/gemtr220.zip - 11/10/03 note.
; ===============================================================

;          ** Archived here 10/18/06 from gemtrade.ldy **
; ===============================================================
; 11/02/02: Changed script to accept 4-digit gem conversion requests.
; 11/16/02: Added support for Peddler Jack to sell Charm Point potions. (v1.14)
; ---------------------------------------------------------------
; 03/19/03: No longer grants free Max Hitpoint if you have 0-2 gems.
;    Instead, you just get 1 temporary Hitpoint. (v1.15)
;
; 12/15/03: first draft - adding Children option to Special Deals Menu.
; 12/17/03: v1.18 - finished testing of Adoptions code.
; ---------------------------------------------------------------
; 12/05/04: Changed version to 1.20 from 1.18 for script.
;           Renamed label SELL-POTIONS to JACK_POTIONS-SALE.
;           Renamed label Honest-HP to JACK_HITMAX.
;           Renamed label HONEST-AS to JACK_STRENGTH.
;           Renamed label HONEST-DP to JACK_DEFENSE.
;           Renamed label HONEST-CH to JACK_CHARM.
;           Renamed label Potion-Penalty to JACK_POTION-PENALTY.
;           Renamed label DEALS-MENU to JACK_DEALS-MENU.
;           Renamed label ADOPTIONS to JACK_ADOPTIONS.
;           Renamed label HORSE-SALE to JACK_HORSE-SALE.
;           Renamed label PUNISH-CHEATERS to JACK_PUNISH-CHEATERS.
;           Renamed label MAX-STATS to JACK_MAX-STATS.
;           Renamed label CHECK-GEMS to JACK_CHECK-GEMS.
;           Renamed label NEW-SALE to JACK_NEW-SALE.
;           Renamed label ZERO-POTIONS to JACK_ZERO-POTIONS.
;
; v1.22: Rewrote Max HitPoints Trade code 02/13/05. Verified that it
; works satisfactorily using Sept. 2004 compilation of LORD 4.07 beta.
; v1.24: Rewrote Strength Points trade code 02/14/05. Verified use.
; v1.26: Rewrote Defense Points trade code 02/14/05.  Verified use.
; v1.28: Rewrote Charm Points trade code 02/14/05.    Verified use.
;
; 02/14/05: Renamed label JACK_CHECK-GEMS to JACK_CHECK_GEMS.
; v1.30: Added short encounter with Samantha, who grants free healing
;    if the player needs it. Dialogue is primarily aimed at men for the
;    time being.  Happy Valentine'Day to everyone. 02/14/05.
;

: 04/12/05: Script problem where @ELSE commands did not have needed
;   number identifier was found and fixed by Michael Preslar.  Added
;   explanatory notations to file.  Changed script version to 1.35. Donald.
;
; 05/11/05: v1.40. Added and tested code for handling Multiple adoptions.
;   By design, script will not allow more than 99 adoptions per session.
;   Code now uses Single_Adoption and Multiple_Adoptions sections.
;

; 07/24/05: Added INSTALL and UNINSTALL sections to script.
; ===================================================================


Copied from GEMTRADE.LDY 10/18/2006:

; 04/09/2006: Revised script to allow up to 250 Kids/Trade.
; 04/09/2006: Changed script version to 1.45 from 1.40.
;
; 06/17/2006: Revised script to allow 400 kids per trade.
; 06/17/2006: Changed script version to 1.48 from 1.45.
; 10/02/2006: Changed to v1.49. Fixed Horse Extra Gems event
;    so it grants 3 charm points PER extra gem paid.
;
; 10/18/2006: v1.50. Allows up to 600 Adoptions per gems trade.
; Moved all 2002-2005 comment notations into GT_LADY.TXT file.

