Game logic - Player team – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "=Description= Defines player teams, their spawning points and amount friendly damage. =Settings= *Available Roles - Set how many available roles shall the team have. *Role -...")
 
m (Text replacement - "[[Ylands " to "[[Ylands:")
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=Description=
=Description=
Defines player teams, their spawning points and amount friendly damage.
Defines player teams, their spawning points and amount of friendly damage.


=Settings=
= Properties =
*Available Roles - Set how many available roles shall the team have.
=== Available Roles ===
*Role - Choose a player role
*List of available player roles in the team
*Overriding Spawn Place - Choose a spawn point, which overrides the one set with the role.
**'''Role''' - Player role
*Friendly Fire - Set the friendly fire ratio for the team. 0 equals none, 1 equals 100%.
**'''Overriding Spawn Place''' - spawn point, which overrides the one set in the role.
=== Friendly Fire ===
*Set the friendly fire ratio for the team. 0 equals none, 1 equals 100%.


NOTE: Name is the same to the game logic as to the particular role. Same name you choose appears in the starting interface.
=Notes=
*Name is the same to the game logic as to the particular role. Same name you choose appears in the starting interface.


=Events=
=== Player Teams ===
*On Player Spawn - Triggers when player of the particular team spawns for the first time.
*On Player Respawn - Triggers when player of the particular team respawns.
*On Player Death - Triggers when player of the particular team dies.
*On Player Connected - Triggers when player connects to the team.
*On Player Discennected - Triggers when player disconnects the team.
 
=Literals=
*Player - Refers to player triggering the event.
 
=Combining with Player Roles=
*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 role's spawn point.
*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
 
= 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]]


=Player Team in Use=
# Choose the Player Team from the game logic tab and place it.
# Open its properties by double clicking it. Add how many available roles you wish and set their eventual overriding spawn point.
# Open its edit script window. Add some event script tile and continue with tiles you need. In this case, when player from particular team spawns, a black smoke particle effect appears on his position.


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


{{Game logic list}}
[[Category: Game Logic]]
[[Category: Ylands 0.10]]

Revision as of 17:36, 16 November 2022

Description

Defines player teams, their spawning points and amount of friendly damage.

Properties

Available Roles

  • List of available player roles in the team
    • Role - Player role
    • Overriding Spawn Place - spawn point, which overrides the one set in the role.

Friendly Fire

  • Set the friendly fire ratio for the team. 0 equals none, 1 equals 100%.

Notes

  • Name is the same to the game logic as to the particular role. Same name you choose appears in the starting interface.

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