Tile - YResource - Get Resource Value – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "<!--- THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE. --> == Get Resource Value(Player, Resource) == File...")
 
m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}")
 
(One intermediate revision by one other user not shown)
Line 16: Line 16:


'''number'''
'''number'''
=== Availability ===
[[Ylands:Tile Availability - Server|Server]]


=== Description ===
=== Description ===
Line 24: Line 28:


* '''Resource''' is utilized by custom *''skills''.
* '''Resource''' is utilized by custom *''skills''.
== Get Resource Value(Resource) ==
[[File:YlandsTile-1213.png]]
<pre>static getResourceValue(resource: YResource): number;</pre>
=== Parameters ===
==== resource ====
=== Returns ===
'''number'''
=== Availability ===
[[Ylands:Tile Availability - Client|Client]]
=== Description ===
Returns the current resource value.




----
----
{{Navbox/Ylands}}
{{Navbox/Ylands}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}


[[Category: Instructions]]
[[Category: Instructions]]

Latest revision as of 15:27, 24 November 2023

Get Resource Value(Player, Resource)

YlandsTile-828.png

static getResourceValue(player: YCharacter, resource: YResource): number;

Parameters

player

resource

Returns

number

Availability

Server

Description

Allows to get the current amount of target Resource the player has.

Notes

  • Resource is utilized by custom *skills.

Get Resource Value(Resource)

YlandsTile-1213.png

static getResourceValue(resource: YResource): number;

Parameters

resource

Returns

number

Availability

Client

Description

Returns the current resource value.