Editing Scratch
From Eternity Wiki
Jump to navigationJump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 11: | Line 11: | ||
*''Args2'' = Mnemonic of sound to play (default of '''null''' = no sound will be played). Used if misc2 is left '''null'''. This way you can call A_Scratch without using the '''misc''' parameters, which allows typing the codepointer in parenthesis notation or in Decorate heredocs. | *''Args2'' = Mnemonic of sound to play (default of '''null''' = no sound will be played). Used if misc2 is left '''null'''. This way you can call A_Scratch without using the '''misc''' parameters, which allows typing the codepointer in parenthesis notation or in Decorate heredocs. | ||
*''Args3'' = Reference to a [[damagetype]], either by a string referring to the damagetype's key, or by an int referring to the damagetype's ''num'' property. | *''Args3'' = Reference to a [[damagetype]], either by a string referring to the damagetype's key, or by an int referring to the damagetype's ''num'' property. | ||
|notes= | |notes= | ||
If the object's target is valid and is within melee range (64 units), it will damage the target for the indicated amount. If the '''misc2''' parameter is non-zero and is a valid sound name, the indicated sound will played along with the attack. | If the object's target is valid and is within melee range (64 units), it will damage the target for the indicated amount. If the '''misc2''' parameter is non-zero and is a valid sound name, the indicated sound will played along with the attack. |