statustarget
The statustarget command, when used, applies a status effect to all targets on the block's target list. (Enemy and player only!)



"then(statustarget, effect, amount)"


Argument Function
effect The status effect being applied. (See table)
amount The length of time the effect is applied for.



Type Extra Info
poison
fire
stun Make sure not to constantly apply this effect!
shock Unlike the rest of the effects, this effect is applied in stacks. The amount should be lower as a result.



And example of the statustarget command used in a script is as follows...




The following script uses the targetting system to poison enemies and players in range.


if(always)
{
then(cleartarget)

then(addtarget,player)
then(addtarget,enemy)
then(filtertarget,distance,<,196)

then(statustarget,poison,20)
}