Make the moving effect take the wepons hue

Discussion in 'Script Support' started by bryant, Dec 3, 2017.

  1. bryant

    bryant Sorceror

    Joined:
    Sep 29, 2005
    Messages:
    3,116
    Likes Received:
    13
    The MovingEffect doesn't take items hue.
    Id like it to pull weapons hue even if it was dyed.

    Effects.PlaySound( defender.Location, Map, 0x14A );
    attacker.MovingEffect( defender, 0x3F2E, 2, 4, false, false, Hue, 0 );
     
  2. Enroq

    Enroq Sorceror

    Joined:
    Jan 28, 2011
    Messages:
    1,889
    Likes Received:
    221
    If you're sure that's the right overload we'd probably need to inspect where you're deriving 'Hue' from.
     
  3. bryant

    bryant Sorceror

    Joined:
    Sep 29, 2005
    Messages:
    3,116
    Likes Received:
    13
    I think i got it worked out i have this and seem to be holding hues that item is dyed.
    Code:
                attacker.MovingEffect( defender, 0x3F2E, 1, 4, false, false, (this.Hue), 0  );
    I do have a question.
    what is -1 hue cant seem to find info on this?
     
  4. Vorspire

    Vorspire Knight

    Joined:
    Jan 25, 2005
    Messages:
    12,880
    Likes Received:
    684
    Hue -1 is not a valid hue. But -1 is used by HueMod to signal "null" or "no hue mod". Item.Hue should always return a range 0-3000.
     

Share This Page