• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Mana shield based upon intelligence?

Status
Not open for further replies.
Level 4
Joined
Sep 6, 2010
Messages
100
How would I base the damage reduction of mana shield upon intelligence? Like the intelligence will decide how much damage is absorbed per mana point; so with 100 int the hero will absorb 100 points of damage per 1 mana point.
 
Level 23
Joined
Oct 20, 2012
Messages
3,075
Took the first DDS and tried to make a sample trigger.. I'm kinda in a hurry so I wasn't able to make a good trigger.. I'm not even sure if it works coz I didn't test it.. but I think it should work..

Using this DDS:
Physical Damage Detection for GUI v1.0.0.1

  • Mana Intelligence
    • Events
      • Game - damageEventTrigger becomes Equal to 1.00
    • Conditions
      • (target has buff Mana Shield) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Mana of source) Less than or equal to 0.00
        • Then - Actions
        • Else - Actions
          • Set amount = (amount - (Real((Intelligence of target (Include bonuses)))))
          • Unit - Set mana of target to ((Mana of target) - 1.00)
EDIT: 2 posts before me.. I really have to refresh before posting stuff...
 
Level 20
Joined
Apr 14, 2012
Messages
2,901
  • Mana Shield
    • Events
      • Unit - A unit Is attacked
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Attacked unit) has buff Mana Shield) Equal to True
        • Then - Actions
          • (Damage Engine modifies the damage based on Real(Intelligence))
        • Else - Actions
I would like to make the trigger whole but I don't have a damage engine currently; but you get the pattern, right?

EDIT Sorry juno I posted this while you posted yours so I never got a chance to see your post
 
Level 4
Joined
Sep 6, 2010
Messages
100
Took the first DDS and tried to make a sample trigger.. I'm kinda in a hurry so I wasn't able to make a good trigger.. I'm not even sure if it works coz I didn't test it.. but I think it should work..

Using this DDS:
Physical Damage Detection for GUI v1.0.0.1

  • Mana Intelligence
    • Events
      • Game - damageEventTrigger becomes Equal to 1.00
    • Conditions
      • (target has buff Mana Shield) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Mana of source) Less than or equal to 0.00
        • Then - Actions
        • Else - Actions
          • Set amount = (amount - (Real((Intelligence of target (Include bonuses)))))
          • Unit - Set mana of target to ((Mana of target) - 1.00)
EDIT: 2 posts before me.. I really have to refresh before posting stuff...
Is there a way without using this "damage engine" thing? Cause I don't wanna use other peoples' trigger functions.
 
Level 4
Joined
Sep 6, 2010
Messages
100
  • Mana Shield
    • Events
      • Unit - A unit Is attacked
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Attacked unit) has buff Mana Shield) Equal to True
        • Then - Actions
          • (Damage Engine modifies the damage based on Real(Intelligence))
        • Else - Actions
I would like to make the trigger whole but I don't have a damage engine currently; but you get the pattern, right?

EDIT Sorry juno I posted this while you posted yours so I never got a chance to see your post
Yeah I came up with an idea: I just give every unit an amount of mana equal to the damage that they can do, then use that and heal the guy that's being damaged of half the maximum mana of whoever is attacking him; the only problem is that assigning specific mana to each unit is a bit tiring.

EDIT: Woops, double post >_>
 
Level 28
Joined
Sep 26, 2009
Messages
2,520
Using Damage detection system is the best way to do it because you can easily manipulate damage done to your liking.
You can, of course, try to make your own damage detection, but it will probably be a lot buggy, and less efficient overall.

Also, things like damage detection systems or unit indexing systems are created and posted here for other people to use. Using and understanding other systems (mainly those that have been approved by many people) will increase your own understanding of triggers.
 
Level 4
Joined
Sep 6, 2010
Messages
100
Using Damage detection system is the best way to do it because you can easily manipulate damage done to your liking.
You can, of course, try to make your own damage detection, but it will probably be a lot buggy, and less efficient overall.

Also, things like damage detection systems or unit indexing systems are created and posted here for other people to use. Using and understanding other systems (mainly those that have been approved by many people) will increase your own understanding of triggers.
I C, thanks for the help.
 
Status
Not open for further replies.
Top