Difference between revisions of "REGIONRESOURCE"
From SphereWiki
MrSugarCube (talk | contribs) m |
MrSugarCube (talk | contribs) m |
||
Line 24: | Line 24: | ||
==Triggers== | ==Triggers== | ||
− | Here is a list of all region triggers. Click on the trigger name for more detailed information such as arguments and examples. | + | Here is a list of all region resource triggers. Click on the trigger name for more detailed information such as arguments and examples. |
{| border="1" cellspacing="4" cellpadding="4" | {| border="1" cellspacing="4" cellpadding="4" |
Revision as of 13:15, 20 June 2009
A region resource block defines a resource that can be found in a region.
Contents
Properties
The following properties are available when defining a region resource:
Name | Read/Write | Description |
AMOUNT | RW | Gets or sets the initial amount of the resource available when it spawns. Accepts multiple values to build a weighted range of difficulty values. |
DEFNAME | W | Gets or sets the resource defname. |
REAP | RW | Gets or sets the BASEID of the resource item. |
REAPAMOUNT | RW | Gets or sets the amount of the resource that can be gathered in one use of a skill. Accepts multiple values to adjust based on skill level. |
REGEN | RW | Gets or sets the length of time it takes for the resource to decay, in seconds. |
SKILL | RW | Gets or sets the difficulty of gathering the resource. Accepts multiple values to build a weighted range of difficulty values. |
Triggers
Here is a list of all region resource triggers. Click on the trigger name for more detailed information such as arguments and examples.
Name | Description |
@ResourceTest | Fires when the resource is being considered for spawning. |
@ResourceFound | Fires when the resource is spawned. |
Examples
// // Fish resource from default script pack. // [REGIONRESOURCE mr_fish1] SKILL=1.0,100.0 // requires between 1% and 100% skill to gather AMOUNT=9,30 // between 9 and 30 fish available REAP=i_fish_big_1 // the resource item REGEN=60*60*10 // decays after 10 hours