-
Notifications
You must be signed in to change notification settings - Fork 2
Food & Hunger
Creating Food Items
Use the following steps to create a new food item.
1.) Create the food item in the toolset.
2.) Set the charges on the food item. This represents how many times the item can be eaten before it's destroyed.
3.) Give the item the Cast Spell: Unique Power Self Only property with Unlimited Uses.
4.) Edit the variables by clicking the "Variables" button on the Description tab.
5.) Add the "string" variable named "JAVA_SCRIPT" with the value of "Food" (without the quotes).
6.) Add the "int" variable named "HUNGER_RESTORE" with the value of how much hunger you want to restore per use. Players have a maximum of 150 "hunger points" so the amount should be in accordance to that scale. Typical values are 7-15 per cooked foods and 1-5 for uncooked or raw foods.
7.) If the food is tainted, add the "int" variable named "HUNGER_TAINTED" to 1. Tainted food has a chance to cause food poisoning on players when eaten. Food poisoning reduces their ability scores for an extended period of time.
8.) Save the item, save the module, and test it out!