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 havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. The Lich King demands your service! We've reached the 19th edition of the Icon Contest. Come along and make some chilling servants for the one true king.
    Dismiss Notice
  4. The 4th SFX Contest has started. Be sure to participate and have a fun factor in it.
    Dismiss Notice
  5. The poll for the 21st Terraining Contest is LIVE. Be sure to check out the entries and vote for one.
    Dismiss Notice
  6. The results are out! Check them out.
    Dismiss Notice
  7. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  8. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  9. 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.

Spell Request: (Shadow Mirror ) can be VJASS or GUI

Discussion in 'Requests' started by darkreapers, Jul 21, 2009.

  1. darkreapers

    darkreapers

    Joined:
    Jun 1, 2009
    Messages:
    86
    Resources:
    0
    Resources:
    0
    Hi there, i am making an request for a spell which i tried to do but only got it half way to work...

    Spell name : Shadow Mirror
    Type: Passive
    Describtion: Whenever the hero gets attacked, he will have 5/6/7/8/9% chance to create a mirror image of himself at the location, the hero then charges swiftly towards the attacker and appears behind him.

    the mirror images take 200% extra damage and deal 40% hero damage.
    the mirror image can also trigger the passive ability.

    + rep and credits if anyone can do this for me! thx
     
  2. zarock

    zarock

    Joined:
    Jul 23, 2008
    Messages:
    16
    Resources:
    0
    Resources:
    0
    so wat half works?
     
  3. darkreapers

    darkreapers

    Joined:
    Jun 1, 2009
    Messages:
    86
    Resources:
    0
    Resources:
    0
    could not create the mirror image of the hero.... i have no idea how to do that... i tried to do

    add ability mirror image to (triggering hero) order hero do mirror image.
    but that takes some delay and i want the mirror to appear right away in the position of the hero so the enemy gets confused you know what i mean?
     
  4. En_Fuego

    En_Fuego

    Joined:
    Sep 3, 2006
    Messages:
    1,186
    Resources:
    0
    Resources:
    0
    Okay I created this spell for you. I made it just like you asked...I think. The only things I have in the Object Editor are the spell, the buff (which are both based off of Endurance Aura), Wand of Illusion (Item), and Illusion Creator (item ability).

    The coding might seem a little weird in two spots. I used the GUI Event "Unit is attacked" knowing full well that it has problems, but I doubt anyone would purposefully abuse it in this situation. If it really is a problem a damage detection system could be implemented. Second, I use a 0.20 second wait between the image being created and the hero moving for 2 reasons. The first is that if I don't have it the image isn't created until after the hero moved. The second is that it stops the hero from getting raped via multiple ranged units hitting him at once.

    http://www.hiveworkshop.com/forums/pastebin.php?id=1qta6u
     
    Last edited: Jul 22, 2009
  5. darkreapers

    darkreapers

    Joined:
    Jun 1, 2009
    Messages:
    86
    Resources:
    0
    Resources:
    0
    hey mate thx for the spell i will DL it the moment i get home, At work now =( sucks haha

    anyways thx again