Game logic - Melee attack effect – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "[[Ylands_" to "[[Ylands:")
(4 intermediate revisions by 2 users not shown)
Line 2: Line 2:
Melee Attack Effect is a game logic that allows the player to change colors and particles of a melee weapon.
Melee Attack Effect is a game logic that allows the player to change colors and particles of a melee weapon.


=Properties=
= Properties =
==Attack trail color==
== Attack trail color ==
Customize the color of the trail the weapon draws on light / heavy attack.
Customize the color of the trail the weapon draws on light / heavy attack.
==Heavy attack hit air / terrain==
== Heavy attack hit air / terrain ==
Set a color of the resulting effect of when the weapon hits air or terrain with a heavy attack. Applicability depends on the heavy attack animation of the weapon.
Set a color of the resulting effect of when the weapon hits air or terrain with a heavy attack. Applicability depends on the heavy attack animation of the weapon.
==Heavy attack particle uses template==
== Heavy attack particle uses template ==
If checked, it is possible to pick a [[Ylands_Game_logic_-_Particle_template|Particle template]] with the eyedropper to be played during heavy attack animation. Alternatively, should you choose not to use a template, you can leave this box unchecked and define the particle's properties below.
If checked, it is possible to pick a [[Ylands:Game_logic_-_Particle_template|Particle template]] with the eyedropper to be played during heavy attack animation. Alternatively, should you choose not to use a template, you can leave this box unchecked and define the particle's properties below.
==Particle==
== Particle ==
Select a particle to be played from the list.
Select a particle to be played from the list.
==Scale==
== Scale ==
Size of the played particle (value range 0.1 - 100).
Size of the played particle (value range 0.1 - 100).
==Alpha==
== Alpha ==
Controls the opacity of the particle effect (value range 0-1).
Controls the opacity of the particle effect (value range 0-1).
==Simulation speed==
== Simulation speed ==
Speed of the particle's animation (value range 0.1 - 10; 1 - default speed).
Speed of the particle's animation (value range 0.1 - 10; 1 - default speed).
==Colors and images==
== Colors and images ==
Choose from the range of color and shape options.
Choose from the range of color and shape options.
===Custom===
=== Custom ===
Allows a full control over colour and shape properties of each subparticle. Number of settings varies over different particles.
Allows a full control over colour and shape properties of each subparticle. Number of settings varies over different particles.
===Default colors===
=== Default colors ===
Reverts the color of particle to default setting.
Reverts the color of particle to default setting.
===Global color===
=== Global color ===
Allows to change the color of the particle to one global setting. All subparticles will inherit this choice.
Allows to change the color of the particle to one global setting. All subparticles will inherit this choice.
===Single color per subparticle===
=== Single color per subparticle ===
Select a single color for each subparticle.
Select a single color for each subparticle.
   
   
=Assigning the effect to a weapon=
= Assigning the effect to a weapon =
The effect can be assigned to a weapon in two ways:
The effect can be assigned to a weapon in two ways:
==Item properties==
== Item properties ==
By checking the '''Use custom melee attack effect''' box in the target item properties, you unlock a host of additional options below. Like in the previous steps, you may choose to pick a Melee attack effect game logic as a template or set the properties directly to the item.
By checking the '''Use custom melee attack effect''' box in the target item properties, you unlock a host of additional options below. Like in the previous steps, you may choose to pick a Melee attack effect game logic as a template or set the properties directly to the item.
==Scripting==
== Scripting ==
You may apply the Melee attack effect's properties to an item using the '''Set Melee Attack Effect''' tile. Parameters are '''Entity <target weapon>''' and '''Value <melee attack effect>'''. Setting a '''None''' property to '''Value''' will remove the effect.
You may apply the Melee attack effect's properties to an item using the '''Set Melee Attack Effect''' tile. Parameters are '''Entity''' <target weapon> and '''Value''' <melee attack effect>. Setting a '''None''' property to '''Value''' will remove the effect.
=Related Instructions=
 
= Related Instructions =
* Get/Set Melee Attack Effect
* Get/Set Melee Attack Effect
----
----

Revision as of 17:36, 16 November 2022

Description

Melee Attack Effect is a game logic that allows the player to change colors and particles of a melee weapon.

Properties

Attack trail color

Customize the color of the trail the weapon draws on light / heavy attack.

Heavy attack hit air / terrain

Set a color of the resulting effect of when the weapon hits air or terrain with a heavy attack. Applicability depends on the heavy attack animation of the weapon.

Heavy attack particle uses template

If checked, it is possible to pick a Particle template with the eyedropper to be played during heavy attack animation. Alternatively, should you choose not to use a template, you can leave this box unchecked and define the particle's properties below.

Particle

Select a particle to be played from the list.

Scale

Size of the played particle (value range 0.1 - 100).

Alpha

Controls the opacity of the particle effect (value range 0-1).

Simulation speed

Speed of the particle's animation (value range 0.1 - 10; 1 - default speed).

Colors and images

Choose from the range of color and shape options.

Custom

Allows a full control over colour and shape properties of each subparticle. Number of settings varies over different particles.

Default colors

Reverts the color of particle to default setting.

Global color

Allows to change the color of the particle to one global setting. All subparticles will inherit this choice.

Single color per subparticle

Select a single color for each subparticle.

Assigning the effect to a weapon

The effect can be assigned to a weapon in two ways:

Item properties

By checking the Use custom melee attack effect box in the target item properties, you unlock a host of additional options below. Like in the previous steps, you may choose to pick a Melee attack effect game logic as a template or set the properties directly to the item.

Scripting

You may apply the Melee attack effect's properties to an item using the Set Melee Attack Effect tile. Parameters are Entity <target weapon> and Value <melee attack effect>. Setting a None property to Value will remove the effect.

Related Instructions

  • Get/Set Melee Attack Effect