Game logic - Logic label – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|19}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|13}}}}")
 
(18 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=Description=
=Description=
Logic label is a collection of game logic. Game logic can be easily added or removed from a label, either by editing the label properties or trough visual scripting instructions. It is possible to check whenever a game logic is part of a label and utilize this information in a game script.
Logic label is a '''collection of game logic'''. Game logic can be easily added or removed from a label, either by editing the label properties or trough visual scripting instructions. It is possible to check whenever a game logic is part of a label and utilize this information in a game script.


= Properties =
=== Logic ===
*List of Game logic belonging to current Label.
*Click '''+''' to add new entries and then use picker to select entity from scene.
=Notes=
*New game logic assigned trough script are put at the end of the list.
*Each game logic can be part of any number of Labels.  
*Each game logic can be part of any number of Labels.  
*Label collection is dynamic. It is possible to add/remove game logic during play.
*Label collection is dynamic. It is possible to add/remove game logic during play.


'''Spawn points:'''
'''Spawn points'''
*It is possible to group [[Ylands Game logic - Spawn point|Spawn points]] in a Logic label and use it as spawn place in [[Ylands Game logic - Player role|Player role]] and [[Ylands Game logic - Player team|Player team]]. Player spawn is then selected randomly from the collection.
*It is possible to group [[Ylands:Game logic - Spawn point|'''Spawn Points''']] in a Logic label and use it as spawn place in [[Ylands:Game logic - Player role|'''Player Role''']] and [[Ylands:Game logic - Player team|'''Player Team''']]. Player spawn is then selected randomly from the collection.


'''Notes:'''
= Logic label events =
*New game logic assigned trough script are put at the end of the list.
*[[Ylands:Tile - Logic label On Logic Added-Removed|On Logic Added / Removed]]
*[[Ylands:Tile - Logic label On Count Changed|On Count Changed]]


=Properties=
= Related instructions =
===Entities===
=== Logic label ===
*List of entities belonging to current Label.
*[[Ylands:Tile - Add-Remove logic to label|Add / Remove game logic]]
*Click '''+''' to add new entries and then use picker to select entity from scene.
*[[Ylands:Tile - Get label logic|Get logic objects]]
*[[Ylands:Tile - Get label logic count|Get logic objects count]]


=Entity label events=
=== Game logic ===
*[[Ylands Tile - Entity label On Entity Added-Removed|On Entity Added / Removed]]
*[[Ylands:Tile - Attach-Remove Game logic label|Attach / Remove label]]
*[[Ylands Tile - Entity label On Count Changed|On Count Changed]]
*[[Ylands:Tile - Has Game logic label|Has label]]
 
*[[Ylands:Tile - Get Game logic labels|Get labels]]
=Related instructions=
===Logic label===
*[[Ylands Tile - Add-Remove entity to label|Add / Remove entity]]
*[[Ylands Tile - Get label entities|Get entities]]
*[[Ylands Tile - Get label entity count|Get entity count]]
 
===Game logic===
*[[Ylands Tile - Attach-Remove entity label|Attach / Remove entity label]]
*[[Ylands Tile - Get entity labels|Get entity labels]]
*[[Ylands Tile - Has entity label| Has entity label]]




----
----
{{Ylands scripting navbox}}
{{Navbox/Ylands}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|13}}}}


 
[[Category: Game Logic]]
 
[[Category: Ylands 0.11]]
 
----
{{Ylands scripting navbox}}

Latest revision as of 14:21, 24 November 2023

Description

Logic label is a collection of game logic. Game logic can be easily added or removed from a label, either by editing the label properties or trough visual scripting instructions. It is possible to check whenever a game logic is part of a label and utilize this information in a game script.

Properties

Logic

  • List of Game logic belonging to current Label.
  • Click + to add new entries and then use picker to select entity from scene.

Notes

  • New game logic assigned trough script are put at the end of the list.
  • Each game logic can be part of any number of Labels.
  • Label collection is dynamic. It is possible to add/remove game logic during play.

Spawn points

  • It is possible to group Spawn Points in a Logic label and use it as spawn place in Player Role and Player Team. Player spawn is then selected randomly from the collection.

Logic label events

Related instructions

Logic label

Game logic