Scratch

From Eternity Wiki
Revision as of 18:16, 15 August 2009 by Printz (talk | contribs) (New page: Type: Monster attack, parameterized Parameter Information: *Unknown 1 = Amount of damage to inflict (default of 0 = 0) *Unknown 2 = DeHackEd number of sound to play (default of 0 = no ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Type: Monster attack, parameterized

Parameter Information:

  • Unknown 1 = Amount of damage to inflict (default of 0 = 0)
  • Unknown 2 = DeHackEd number of sound to play (default of 0 = no sound will be played)
  • Args1 = Special mode toggle (default of 0 = 0)
    • 0 = Compatibility mode (Use value in "Unknown 1" as normal)
    • 1 = Use object damage field
    • 2 = Use counter specified in Args2
  • Args2 = Counter field number for special mode 2 (default of 0 = 0)
    • 0 = Counter 0
    • 1 = Counter 1
    • 2 = Counter 2

Purpose: 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 Unknown 2 parameter is non-zero and is a valid sound DeHacked number, the indicated sound will played along with the attack. New to MBF.

Notes: As of Eternity Engine v3.31 public beta 3, this codepointer will no longer crash the game if an invalid sound number is provided. No sound will be played if the number is invalid.

Parameters Args1 and Args2 are new to Eternity Engine v3.31 Delta, and allow getting a damage value from other sources. If Args1 is 1, the object's damage value will be used. If Args1 is 2, the value of the counter specified in Args2 will be used. When combined with SetCounter or CounterOp, this allows you to perform your own custom damage calculations. This change does not break compatibility, as the Args1 default value is 0.

Thunk: Yes.