A little question needing answer. :)

MeTr01DPr1M3

New Member
Reaction score
5
Well hello to all :D.

Now um, let me cut to the chase. I'd like to make a passive like spell that what it does is this: every 5/4/3 seconds it will check if there are enemy units around me (including heroes) and if there are, they will have a special effect attached to their chest for a couple of seconds and they will get damage equal to Level 1: 25% of my Hero's Intelligence attribute + 75 bonus damage. Level 2: 30% of my Hero's Intelligence attribute +100 bonus damage. Level 3: 35% of my Hero's Intelligence attribute +125 bonus damage.

If you can answer me this and maybe post a code or something I'd be more than thankful.

Trick question: How can I make my damage dealt to be pure? Meaning not to reduced by anything?

Well, thank you for answering (for all those that will answer, and for all those that will even think what to post :D).

See ya around. :cool:
 

Komaqtion

You can change this now in User CP.
Reaction score
469
im not sure but i think this would work =):
Code:
Intelligence Spell
    Events
        Unit - A unit Learns a skill
    Conditions
        (Learned Hero Skill) Equal to (==) Human Archmage - Blizzard
    Actions
        Set Int_Hero = (Triggering unit)
        Trigger - Turn on Intelligence Spell Damage lvl 1 <gen>
Code:
Intelligence Spell Damage lvl 1
    Events
        Time - Every 5.00 seconds of game time
    Conditions
        (Int_Hero is Dead) Not equal to (!=) True
    Actions
        Unit Group - Pick every unit in (Units within 500.00 of (Position of Int_Hero) matching ((((Matching unit) is Dead) Not equal to (!=) True) and (((Matching unit) belongs to an ally of (Owner of Int_Hero)) Not equal to (!=) True))) and do (Actions)
            Loop - Actions
                Special Effect - Create a special effect attached to the chest of (Picked unit) using Abilities\Spells\Undead\CarrionSwarm\CarrionSwarmDamage.mdl
                Unit - Cause Int_Hero to damage (Picked unit), dealing ((Real((Intelligence of Int_Hero (Exclude bonuses)))) + 75.00) damage of attack type Normal and damage type Normal
 

Igor_Z

You can change this now in User CP.
Reaction score
61
Hmm i know how to set the damage dealt if it is a casted ability. I thought you could use something from the folowing triggers... Sry for not answering your main question(Passive Ability)...
E:none
C:none
A: Pick every unit whithin (your range) matching condition(Matching unit is a hero) equal to true
Loop: Unit Cause Casting unit to damage Picked unit dealing 75 + 0.25 * Intelligence of (your hero) and make some triggers for each level like the advise from Komaqtion...
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top