Actors – Ylands
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " (={2,})([^ = ])(.*)([^ = ])(={2,}) * " to " $1 $2$3$4 $5 ") |
Lou Montana (talk | contribs) m (Text replacement - " (\=+)([a-zA-Z0-9][^ ]+[a-zA-Z0-9])(\=+) " to " $1 $2 $3 ") |
||
Line 13: | Line 13: | ||
*Only NPCs can have an editable '''Appearance''', '''Equipment''' and '''Inventory'''. There is also an option to '''Drop Items on Death'''. Their '''Default Interaction''' is [[Ylands_Trade|Trading]] unless it is [[Ylands_Tile_-_Can_character_trade|removed using scripting]] or [[Ylands_Tile_-_Set_entity_interactions|overwritten with a custom interaction]]. | *Only NPCs can have an editable '''Appearance''', '''Equipment''' and '''Inventory'''. There is also an option to '''Drop Items on Death'''. Their '''Default Interaction''' is [[Ylands_Trade|Trading]] unless it is [[Ylands_Tile_-_Can_character_trade|removed using scripting]] or [[Ylands_Tile_-_Set_entity_interactions|overwritten with a custom interaction]]. | ||
=Related Game Logic= | = Related Game Logic = | ||
*[[Ylands_Game_logic_-_AI_Behavior|AI Behaviour]] | *[[Ylands_Game_logic_-_AI_Behavior|AI Behaviour]] | ||
=Actor Events= | = Actor Events = | ||
All actors have some unique [[Ylands_Tile_category_-_Events|Event Tiles]]: | All actors have some unique [[Ylands_Tile_category_-_Events|Event Tiles]]: | ||
*[[Ylands Tile - On Damage Entity Event|On Damage Received/On Do Damage]] | *[[Ylands Tile - On Damage Entity Event|On Damage Received/On Do Damage]] | ||
Line 34: | Line 34: | ||
*[[Ylands_Tile_-_On_Trade_Entity_Event|On Trade]] | *[[Ylands_Tile_-_On_Trade_Entity_Event|On Trade]] | ||
=Related Instructions= | = Related Instructions = | ||
Most of the [[Ylands_Script_tiles_list|Script Tiles]] relating to entities (See the full list [[Ylands_Tile_category_-_Entities|here]]) can be used on Actors, but there are some script tiles that are more relevant: | Most of the [[Ylands_Script_tiles_list|Script Tiles]] relating to entities (See the full list [[Ylands_Tile_category_-_Entities|here]]) can be used on Actors, but there are some script tiles that are more relevant: | ||
*[[Ylands_Tile_-_AI_-_Get-set_entity|Get AI Behaviour/Set AI Behaviour]] | *[[Ylands_Tile_-_AI_-_Get-set_entity|Get AI Behaviour/Set AI Behaviour]] |
Revision as of 15:41, 17 November 2021
Overview
Unlike Entities, Actors can use AI Behaviour to seem alive. There are 4 categories of Actors:
- NPCs
- Animals
- Mutants
- Monsters
Properties
- Like Entities, Actors have Position, Rotation, HP, and Interactions. They can be placed in a Group. Like Unique Entities, Actors can have Placed Particles.
- Unlike Entities, they cannot have a Stack Value, cannot be set to Pickable, cannot be set as Animated, nor put in a Weld. All Actors can have AI Behaviour. They can have a Description which appears below the Actor's name and a Health Bar or Text above their heads.
- Animals, Mutants, and Monsters have Color, Damage and Resistances sections. The drops for these can be removed by unchecking "Destroyed Entities in World Drop Items" in the Game Settings.
- Animals and Mutants can be Domesticated and their Default Domestication Level can be set.
- Only NPCs can have an editable Appearance, Equipment and Inventory. There is also an option to Drop Items on Death. Their Default Interaction is Trading unless it is removed using scripting or overwritten with a custom interaction.
Related Game Logic
Actor Events
All actors have some unique Event Tiles:
- On Damage Received/On Do Damage
- On Kill/On Was Killed
- On Custom Interaction
- On Color Change
- On Color Revert
Animals, Mutants, and Monsters:
Animals and Mutants:
NPCs:
Related Instructions
Most of the Script Tiles relating to entities (See the full list here) can be used on Actors, but there are some script tiles that are more relevant:
For Animals and Mutants:
For NPCs:
Notes
- Although Actors cannot be animated or use script tiles related to animation, such as Aim or Follow, they can be moved and rotated with Set Position and Set Rotation or Transform Position and Transform Rotation.
- Set Position followed by Set AI Behaviour to Stand will usually make the NPC walk to the correct position and the other Actors will teleport to that position. If the AI is set to stand before the position is set, the Actor will teleport to the set position and then walk back to the original location they were when the AI behaviour was changed to Stand. This can be fixed by using a separate AI Behaviour Game Logic set to Stand.