Equipment System:
This system allows you to set up consumable items that set strings on your player blob. The equipment GUI and specific code within each class script will determine the effects of the equipment based on the blob name of the equipment being equipped.
I have included examples of how to add new equipment, and it is possible to add new equipments to the menu, just study the code and replicate it for new equipment slots.
I meant to eventually include a separate script for providing equipment bonuses and special effects but never got it working, so I settled for implanting the logic in each player class script.
some screenshots by Asumagic:
Hunger System:
This system provides a survival aspect to KAG, if you do not eat an item with Eatable.as attached to it, you will die. The rate of starving can be easily adjusted in Hunger.as, likewise damage done by starving can be modified in Starve.as.
There is included a very basic hunger GUI, I suggest you create your own as the current one doesn't look very good.
Thanks to Asumagic for fixing the mod to work with the current build(1337).
Thanks to Skinney for his community sprites.
Thanks to Aphelion for his mithril palette and a few lines of code.
-
Hey Guest, is it this your first time on the forums?Dismiss Notice
Visit the Beginner's Box
Introduce yourself, read some of the ins and outs of the community, access to useful links and information.
Equipment and Hunger systems v1.16
A structure for creating equipments, with additional starving.
Recent Updates
- bug fix Dec 31, 2014
- Armor. Dec 31, 2014
- Misc. bug fixes + equipped items dropping on death. Dec 31, 2014