This repository has been archived by the owner on Aug 29, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Foraging
Tyler edited this page Apr 2, 2018
·
2 revisions
Overview
The foraging activity utilizes the Survival skill. It's an activity by which players can rummage through objects to find raw resources like berries, stones, and so on.
Setting Up Placeables
Setting up a placeable is fairly straightforward. You simply do the following:
- Create the placeable
- Mark it "Plot"
- Mark it "Usable"
- Mark it as "Has Inventory"
- Remove any inventory items from it.
- Set the appropriate script hooks + Java calls (copy an existing placeable - like a Blackberry Bush - to save time)
- Set the int variable "FORAGE_POINT_LOOT_TABLE_ID" to the appropriate loot table. See Loot Tables for more information
- Set the int variable "FORAGE_POINT_LEVEL" to the appropriate skill level. This affects how challenging it is to acquire items at this placeable. In general, you want to keep the player's skill level in mind when setting this variable. Players must be within 8 skill levels in order to forage.
- Set the int variable "FORAGE_POINT_ALWAYS_DESTROYS" if the forage point should always destroy after the resources are taken from it. If not set, there will be a base 50% chance the forage point will be destroyed.
- Set the string variable "FORAGE_POINT_SEED" to the resref of the seed item that should spawn when the forage point is destroyed.
Finally, when all of that is done you simply need to add spawn points for the placeable and it'll show up in-game, ready for players to use!