Game logic - Player role – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 2: Line 2:
Defines spawning point and equipment of player.
Defines spawning point and equipment of player.


=Settings=
=Properties=
*Equipment and inventory - players assigned to this role will have this equipment.
===Equipment and inventory===
**Item placed in first inventory slot will be equipped in players hands upon spawn.
*Starting equipment for this role
**Player will not get this equipment after respawn, but in default respawns with items same when dying.
*Item placed in first inventory slot will be equipped in players hands upon spawn
*Spawn place - player will spawn on selected spawn point
*Player will not get respawn with this equipment


NOTE: Name given to this game logic will be same as the one displayed as name of the role.
===Spawn place===
*Player will spawn on selected spawn point
*Its possible to select a [[Ylands Game logic - Logic label|'''Logic Label''']] with collection of Spawn Points, spawn will be then selected by random


=Events=
=Notes=  
*On Player Spawn - Triggers when player of the particular role spawns for the first time.
*Name given to this game logic will be same as the one displayed as name of the role.
*On Player Respawn - Triggers when player of the particular role respawns.
*On Player Death - Triggers when player of the particular role dies.
*On Player Connected - Triggers when player connects with the role.
*On Player Discennected - Triggers when player disconnects from the role.
 
=Literals=
*Player - Refers to player triggering the event.


=Combining with Player Teams=
===Player Teams===
*One team can have multiple player roles.
*One team can have multiple player roles.
*One player role can be added to multiple player teams.
*One player role can be added to multiple player teams.
*Player team can override the spawn point of role.
*Player team can override the spawn point of role.
*Each role in the team can have different spawn point.
*Each role in the team can have different spawn points


=Player Role in Use=
=Events=
*[[Ylands Tile - On Player Spawn|On Player Spawn]]
*[[Ylands Tile - On Player Respawn|On Player Respawn]]
*[[Ylands Tile - On Player Death|On Player Death]]
*[[Ylands Tile - On Player Connected|On Player Connected]]
*[[Ylands Tile - On Player Disconnected|On Player Disconnected]]


# Select the Player Role from the game logic tab and place it.
=Literals=
# Open its properties by double-clicking it. Select the spawn point for the role. Set up the inventory and equipment of the player role by opening Entity tab and dragging the items in the slots or clicking them first, then the slot. Right-click on the item in inventory will erase it, left click will open item's properties.
*Player - Refers to player triggering the event.
# Open its edit script window. With creating the event script tile, you can set up the script. In this case, script will cause playing sound of a charging station on player's position when player of this role spawns.




----
----
{{Ylands scripting navbox}}
{{Ylands scripting navbox}}

Revision as of 23:04, 2 December 2018

Description

Defines spawning point and equipment of player.

Properties

Equipment and inventory

  • Starting equipment for this role
  • Item placed in first inventory slot will be equipped in players hands upon spawn
  • Player will not get respawn with this equipment

Spawn place

  • Player will spawn on selected spawn point
  • Its possible to select a Logic Label with collection of Spawn Points, spawn will be then selected by random

Notes

  • Name given to this game logic will be same as the one displayed as name of the role.

Player Teams

  • One team can have multiple player roles.
  • One player role can be added to multiple player teams.
  • Player team can override the spawn point of role.
  • Each role in the team can have different spawn points

Events

Literals

  • Player - Refers to player triggering the event.



Template:Ylands scripting navbox