1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still haven't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. Weave light to take you to your highest hopes - the 6th Special Effect Contest is here!
    Dismiss Notice
  4. Lead your forces to battle in the 15th Techtree Contest. The call is yours, commander!
    Dismiss Notice
  5. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Auto-cast Cleave attack

Discussion in 'World Editor Help Zone' started by thanh121, Jun 16, 2010.

  1. thanh121

    thanh121

    Joined:
    Jun 11, 2010
    Messages:
    27
    Resources:
    0
    Resources:
    0
    Hi there, i'm new in this forum, and i must say that the Cleave skill of the Barbarian in TKoK project is very impressive, i've tried many way but still can't make an auto-cast skill for melee attacker. I wonder if anyone can help me to create one like that?

    Thanks :thumbs_up:
     
  2. Pharaoh_

    Pharaoh_

    Joined:
    Nov 6, 2008
    Messages:
    8,128
    Resources:
    11
    Icons:
    3
    Skins:
    1
    Spells:
    6
    Tutorials:
    1
    Resources:
    11
    It's simple; base your autocast ability off Searing Arrows, set missile model to none and bonus damage to 0 and use this trigger:
    • Trigger
    • Events
      • Unit - A unit is issued an order with no target
    • Conditions
      • (Level of Cleave for (Triggering unit)) Greater than 0
    • Actions
      • If (All conditions are true) then do (Actions) else do (Actions)
        • If - Conditions
          • (Issued order) Equal to (order(flamingarrows))
        • Then - Actions
          • Unit - Add Cleaving Attack to (Triggering unit)
          • Unit - Set level of Cleaving Attack for (Triggering unit) to (Level of Cleave for (Triggering unit))
        • Else - Actions
          • If (All conditions are true) then do (Actions) else do (Actions)
            • If - Conditions
              • (Issued order) Equal to (order(unflamingarrows))
            • Then - Actions
              • Unit - Remove Cleaving Attack from (Triggering unit)

    Cleave is your autocast spell, while Cleaving attack is the default ability to have the cleaving effect upon attacking.
     
  3. thanh121

    thanh121

    Joined:
    Jun 11, 2010
    Messages:
    27
    Resources:
    0
    Resources:
    0
    That's one of the way i've used, but hey, just manual cast that skill and you will see that it's not cleaving :)
     
  4. Axarion

    Axarion

    Joined:
    Sep 30, 2009
    Messages:
    675
    Resources:
    1
    Spells:
    1
    Resources:
    1
    I think TKoK uses a dds for the skill so its done in another way.
     
  5. Pharaoh_

    Pharaoh_

    Joined:
    Nov 6, 2008
    Messages:
    8,128
    Resources:
    11
    Icons:
    3
    Skins:
    1
    Spells:
    6
    Tutorials:
    1
    Resources:
    11
    Yes, the trigger I used is not supposed to work for manual casting. That would require some Damage Detection engine, which has already been mentioned by Axarion.