Difference between revisions of "REGIONRESOURCE"
From SphereWiki
MrSugarCube (talk | contribs) (Created page with '__FORCETOC__ A region resource block defines a resource that can be found in a region. ==Properties== The following properties are available when defining a region resource: {...') |
MrSugarCube (talk | contribs) m |
||
Line 11: | Line 11: | ||
| [[AMOUNT]] || RW || Gets or sets the initial amount of the resource available when it spawns. | | [[AMOUNT]] || RW || Gets or sets the initial amount of the resource available when it spawns. | ||
|- | |- | ||
− | | [[DEFNAME]] || | + | | [[DEFNAME]] || R || Gets or sets the resource defname. |
|- | |- | ||
| [[REAP]] || RW || Gets or sets the [[BASEID]] of the resource item. | | [[REAP]] || RW || Gets or sets the [[BASEID]] of the resource item. |
Revision as of 00:56, 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. |
DEFNAME | R | 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 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