Tile - YCharacter - Change Role – 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. --> == Change Role(Character, Role, Reset equipment, Res...")
 
m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}")
 
(One intermediate revision by one other user not shown)
Line 10: Line 10:


==== role ====
==== role ====
New role


==== resetEquip ====
==== resetEquip ====
Whether the equipment will be reset to role default


==== resetInventory ====
==== resetInventory ====
Whether the inventory will be reset to role default
=== Availability ===
[[Ylands:Tile Availability - Server|Server]]


=== Description ===
=== Description ===


Allows to change '''role''' of target '''character'''.
Allows to change '''role''' of target '''character'''.
=== Notes ===
* Reset equipment - Will set character equipment (i.e armor) to one defined by the role.
* Reset inventory - Will set character inventory to one defined by the role.




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


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

Latest revision as of 14:24, 24 November 2023

Change Role(Character, Role, Reset equipment, Reset inventory)

YlandsTile-510.png

changeRole(role: YPlayerRole, resetEquip: boolean, resetInventory: boolean): void;

Parameters

role

New role

resetEquip

Whether the equipment will be reset to role default

resetInventory

Whether the inventory will be reset to role default

Availability

Server

Description

Allows to change role of target character.