Game logic - Melee attack effect – Ylands
Lou Montana (talk | contribs) m (Text replacement - " (\=+)([a-zA-Z0-9][^ ]+[a-zA-Z0-9])(\=+) " to " $1 $2 $3 ") |
Lou Montana (talk | contribs) m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|19}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|13}}}}") |
||
(2 intermediate revisions by the same user not shown) | |||
Line 8: | Line 8: | ||
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 [[ | 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. | ||
Line 39: | Line 39: | ||
---- | ---- | ||
{{Navbox/Ylands}} | {{Navbox/Ylands}} | ||
{{DEFAULTSORT:{{#sub:{{PAGENAME}}| | {{DEFAULTSORT:{{#sub:{{PAGENAME}}|13}}}} | ||
[[Category: Game Logic]] | [[Category: Game Logic]] | ||
[[Category: Ylands 1.2]] | [[Category: Ylands 1.2]] |
Latest revision as of 14:21, 24 November 2023
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