Passive Ability Help

King.Sky_Gem

New Member
Reaction score
2
I'm trying to create a spell that.. when attacked, the unit has a chance to automatically do the mirror image without it actually being cast.
How can I do this?

I have the ability, and I put it in a 'hide book,' but it doesn't split at all..
What should the triggers look like?
 
It uses a trigger at least....
Create a dummy unit and make sure that it has an inventory...
Create an item and base it from wand of illussion, make sure to edit the base spell for the item too...

A unit is attacked

Level of Illusion for attaking unit is greater than 0

If random numbber from 1 - 100 is equal or less than 50
set temp_point = position of attacking unit
Unit create dummy at temp_point
add wand of illusion to last created unit
order last created unit to use item in inventory 1 to attacking unit
add 1 second expiration to last created unit
call RemoveLocation( udg_Temp_Point)

I guess it would go like that, good luck...
 
Note that the effect for wand of illusion is different for that of mirror image.

If you want the unit to have a percentage to spawn units next to it when it gets hit, then a dummy holding wand of illusion is the way to go.

If you want the caster to sometimes cast mirror image (the split into 2 images and himself with the effect) when he gets attacked, then you should trigger it in such a way that the ability "mirror image" is given to him, you force him to cast mirror image and then the ability is removed.
 
I'm sorry to bring this topic back up again, but I do not fully understand how to make this spell work as I would like it to.

@ FhelZone
Thank you, but I didn't make myself clear, my fault. I do want this to be a mirror image cast in a passive state.

I have Mirror Image in a spell book, and I disabled the spell book to hide it.

How exactly do I post the triggers?
 
The best way is to create a dummy unit and gives it a spell based of Wand of Illusions with 0 manacost and cooldown. Then do something like this :
Note : Don't have WE
Trigger:
  • Events
    • Unit - A Unit is Attacked
    • Conditions
    • Attacked Unit equal to Illusionist
    • Actions
    • If Then Else
      • If
        • Level of "Mirror Images (Passive) equal to 1
      • Then
        • Set Chance (Integer Vriable) = Random Number betwenn 1 and 100
        • If Then Else
          • If
            • Chance equal to or is less than 3 (3% Chance then if I'm right)
          • Then
            • Order <Dummy> (Better if preplaced dummy) to Cast <Wand of Illusion Custom> on attacked unit
          • Else
        • Else
    • If Then Else
      • If
        • Level of "Mirror Images (Passive) equal to 2
      • Then
        • Set Chance (Integer Vriable) = Random Number betwenn 1 and 100
        • If Then Else
          • If
            • Chance equal to or is less than 6 (6% Chance then if I'm right)
          • Then
            • Unit - Order <Dummy> (Better if preplaced dummy) to Cast <Wand of Illusion Custom> on attacked unit
          • Else
        • Else


That's a very simple trigger to shows you the basic, including how to implements levels
 
I don't want a dummy and wand of illusion, I'm trying to make it so the caster actually has a chance to do mirror image.
 
That's actually the most simple solution :)
If you want it to cast Mirror Images, take in consideration that active spells in disabled spellbooks don't work
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top