Illusion Passive

zaqer50

TH.net Regular
Reaction score
3
How would you make a skill that say there's a 15% chance to make an image
everytime <unit> attacks?
 
With a trigger like this:

Code:
Events
    Unit - A unit Is attacked
Conditions
    (Unit-type of (Attacking unit)) Equal to [YourUnit]
Actions
    Set [RandomIntegerVariable] = (Random integer number between 1 and 100)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        If - Conditions
            Or - Any (Conditions) are true
                Conditions
                    [RandomIntegerVariable] Less than or Equal to 15
        Then - Actions
            Unit - Order (Attacking unit) to Orc Blademaster - Mirror Image
        Else - Actions
 
Why do you check every integer from 1 to 15? Just check:

If RandomIntegerVariable <= 15

Much less code that way haha.
 
Actually theres a much better way to do this.
Base your ability off something called 'Orb of Lightning'(maybe its lightning orb) and just edit it slightly.
 
Jazradel said:
Actually theres a much better way to do this.
Base your ability off something called 'Orb of Lightning'(maybe its lightning orb) and just edit it slightly.

What exactly do you mean? I don't think an orb of lightning is able to create an illusion.

Oh and Laika. I was too sleepy to seek for that :D ZZz...
 
hey gruf
wouldnt the hero need to know a skill to actually have the ability to create an image when attacked, i mean i wouldnt want the hero to be able to do that without learning the ability
 
If you want it based off of an ability, just say so in the condition.

"Level of ability for unit = X" or however it goes (don't have WEU open).

dArKz

//Edit:

Now I do have it open... it's:
(Level of ABILITY for (Attacking unit)) Equal to X
 
Orb of Lightning is very useful ability. It is basically a chance on attack orb effect. The default ability has a 15% chance to cast purge when it attacks a unit. That can easily be modified to create images.

And yes for the other method you would have to have the ability on the hero. Search for a old file I uploaded call Winds Whisper. It has a chance on attack to windwalk but A: it doesn't work(i know why though) and B: the hero has to have the ability windwalk.
 
The problem with basing it off of Lightning Orb is that the ability would then take up his orb slot, would it not?

dArKz
 
Yes as is seen in DotA(maelstrom, silencer's ulti and geminate attack) but it's a lot easier then doing anything else..

And you don't have to have the ability on your hero or add it with triggers.
 
Well, I'm pretty sure Guinsoo (or Frog or whomever is making DotA now) used triggers to add "Juxtapose" which is essentially exactly what the original poster was asking about, because it doesn't use the orb effect and you see a buff indicator on the hero who has the ability. I say go with the triggers to avoid problems.

dArKz
 
Comon dude, just cause juxtapose is cool theres no reason to copy it. Please try to think of something yourself. You just sort of get a problem if you copy DotA abilities. The problem is, that when somebody plays your map theyre just going to think.

'Yawn, nothing new, this guy just copied DotA. What a wannabe.' :o

Just a warning dude, not trying to flame you. :)

Also you couldve made the subject
'how did DotA make juxtapose?' lol. :D
 
Hah, we ought to have a forum titled "All DotA spells explained here". That way, nobody would ever post. :P

dArKz
 
dArKzEr0 said:
The problem with basing it off of Lightning Orb is that the ability would then take up his orb slot, would it not?

Heh, I beat Ryoko to an observation :) I feel honored.

dArKz
 
how would you make an Illusion skill for the Dota 3.7 for ROC? like when u click the button it shoots out like 8 to 10 other illusions in a circular area with with the caster poping out at a random point so it looks like this
C=Caster I=image
C or I
C or I C or I
C or I C or I

C or I C or I

C or I C or I
C or I

or somthing like that i checked Dota 3.6 and its the Stealth Assassin's Fade technique any ideas?
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    How often does the Trending Content box refresh?
  • The Helper The Helper:
    Also, in the last template there was a seperation between sticky threads and regular threads in the forum
  • Ghan Ghan:
    Not sure. It's probably part of a cron job.
  • The Helper The Helper:
    Hey Ghan, whatever cron job its part of its not running its been the same for days. If it does not work can we remove it?
  • The Helper The Helper:
    LOL! A tweak job!
  • The Helper The Helper:
    this is the fix I get from that yeah this is hard to control. disabling bots is pretty much necessary as ai and other bots would push really old threads to the top. reduce weight of view count. disable guest view tracking if you really want to push active threads to the top. a bit of tinkering for a few days with the weights and other settings should get you a decent trending widget box.
  • Ghan Ghan:
    I changed the settings a bit.
  • Ghan Ghan:
    Narrowed it to 7 days for the half-life and set views to 0 weight.
  • The Helper The Helper:
    I dont think Trending would work for this forum it would be better to just have the last 5 posts from anywhere
  • Ghan Ghan:
    Probably will have to give it some time to update.
  • Ghan Ghan:
    I'm guessing it is not retroactive.
  • Ghan Ghan:
    Next on the punch list: Update the server to Ubuntu 24.04.
  • The Helper The Helper:
    Mad Lads is new I see it displays original post date
  • The Helper The Helper:
    as long as it changes it is good - it is good now it updated and its new stuff
  • The Helper The Helper:
    One thing I have noticed and I dont know if it is by design but like 1 out of 3 times I come to the site the Anubis screen just hangs open, if I refresh it will go away but sometimes it hangs
  • Ghan Ghan:
    I've seen that as well.
  • The Helper The Helper:
    Wow - the change in the stats are major. I kind of knew it was all bots but wow, to see the effect. Why the social media sites cant do something like this I have no idea.
  • Ghan Ghan:
    Probably inflates their numbers so they look better to advertisers.
  • The Helper The Helper:
    Yeah google does not filter those bots. I remember when Apex was doing Google ads I saw the same IPs in there as I was seeing here - google is totally tracking all those bots as traffic and most google traffic, at least ours, was all bots
  • The Helper The Helper:
    oh wow, i bet i can post x links now and do the webp pics now giggity
  • The Helper The Helper:
    ahh anubis blocks anyone that has javascript turned off
  • The Helper The Helper:
    Robot: HTTP client library - i love the new robot :)
  • The Helper The Helper:
    New Science News Forum and it starts out with 420 threads :)
  • The Helper The Helper:
    Technical Support forum name changed To Technology News, there is now a Tech, sci/tech and science forums now :)

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top