Rev 58L
This release shifts most game variables from individual global vars, into indices of the arrays GameEvents[ ] and GameDynamics[ ].
Thus far, 52 global vars have been merged, with about 35 remaining.
In so doing, I've added a constant for each previous variable, thus allowing the functions Is(), Var(), Event(), and Val() to retrieve, or set the array index values.
If anyone wants a reference:
This also brings the OwnsItems[ ] array into use.
After thoroughly testing the changes, everything seems to work.
One other update, is that the Staff of Jhkarr behaves again. It disables fully when the player is out of MP--this is the third time I've had to modify this behaviour--and further, a quick save without the item, will not give the player the item, if they pick it up, and later restore. Restoring from a quick save without the staff, will restore the player without it, as intended; so that's one fewer bugs to fix.
The RPG.zh implementation is now Alpha 0.97.1, adding RPG_Constants.zlib, and modifying functions to use the arrays instead of single global variables.
Edited by ZoriaRPG, 02 June 2015 - 01:47 AM.