Cần giúp làm skill Meld

Thảo luận trong 'World Editor' bắt đầu bởi Ice_water, 22/9/08.

  1. Ice_water

    Ice_water Dragon Quest

    Tham gia ngày:
    11/1/07
    Bài viết:
    1,457
    Đây là cách thức làm skill .

    Based on Windwalk, providing the invisibility effect.

    When it goes into effect, show the purple aura on top of Lanaya and play the sound. Then create a trigger (1) to be called whenever a unit is attacked, when Lanaya dies, when Lanaya finishes casting a spell or periodically every 0.2 seconds. Then save "Hero" (Lanaya), "x""y" (Lanaya's position) and force Lanaya to use the Hold Position command.

    (1): Recovers "Hero", "x", "y" from the cache, now if this was called because Lanaya died or because Lanaya finished casting a spell or because a unit was attacked and the attacker was Lanaya and the enemy wasn't an ally (1*) do: if it wasn't called because Lanaya has died and the dying unit is not an structure (WTF?) then call (2), forcefully remove the Meld buff from Lanaya (B08K) and destroy this trigger. If this trigger was called because Lanaya has died or because she finished casting a spell, destroy this trigger. If (1*) wasn't true and it wasn't called because a unit was attacked (aka if this was called because the periodic event) if "Hero"'s X position is different to "x" or "Hero"'s Y position is different to "y", forcefully remove the meld buff (B08K) and destroy this trigger.
     

Chia sẻ trang này