Tile - Variable member – Ylands
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{Ylands editor navbox}}" to "{{Navbox/Ylands}}") |
Lou Montana (talk | contribs) m (Text replacement - " (\=+)([a-zA-Z0-9][^ ]+[a-zA-Z0-9])(\=+) " to " $1 $2 $3 ") |
||
Line 6: | Line 6: | ||
*'''Default''' value of a variable is '''0'''. | *'''Default''' value of a variable is '''0'''. | ||
=Notes= | = Notes = | ||
*'''Member''' variables of [[Ylands Game logic - Global storage|'''Global Storage''']] are considered '''global''' variables within the scope of whole game script. | *'''Member''' variables of [[Ylands Game logic - Global storage|'''Global Storage''']] are considered '''global''' variables within the scope of whole game script. | ||
*'''Member''' variables of [[Ylands Game logic - Entity storage|'''Entity Storage''']] are considered '''member''' variables of [[Ylands Tile - Storage owner literal|'''Storage Owner''']]. | *'''Member''' variables of [[Ylands Game logic - Entity storage|'''Entity Storage''']] are considered '''member''' variables of [[Ylands Tile - Storage owner literal|'''Storage Owner''']]. |
Revision as of 15:41, 17 November 2021
- Member variable is exclusive variable local to currently edited game object (entity or game logic).
- Member variables can be accessed from everywhere within the current object script.
- All member variables of current object are listed in Variables - This pallet.
- New variables are added by clicking Create new variable at the top of the variable pallet.
- Default value of a variable is 0.
Notes
- Member variables of Global Storage are considered global variables within the scope of whole game script.
- Member variables of Entity Storage are considered member variables of Storage Owner.
- See also: Introduction to Visual scripting, Conventions.