But how will I make the damage absorbed be based upon the hero's intelligence?You could use a Damage detection System and trigger the whole skill..
Why not use (Real(Intelligence of Hero)) as a damage?
Is there a way without using this "damage engine" thing? Cause I don't wanna use other peoples' trigger functions.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
EDIT: 2 posts before me.. I really have to refresh before posting stuff...
- 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)
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.I would like to make the trigger whole but I don't have a damage engine currently; but you get the pattern, right?
- 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
EDIT Sorry juno I posted this while you posted yours so I never got a chance to see your post
I C, thanks for the help.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.