Jump to content

The Legacy of Emperors

Photo

58L - Merging


  • Please log in to reply
1 reply to this topic

#1 Timelord

Timelord

    The Timelord

  • Banned
  • Location:Prydon Academy

Posted 02 June 2015 - 01:42 AM

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.


#2 Mr.Butters

Mr.Butters

    Taco Man

  • Members
  • Real Name:Carter

Posted 19 October 2015 - 11:42 AM

this looks amazing!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users