HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Ability Help

08-21-2006, 12:02 AM#1
martix
So, I'm making this ability its called "Diamond Hard"
What it does is, it negates fully every damage taken below a certain value, and amplifies every damage taken above a that value.
Like diamonds are - very hard, until a point where the force exceeds a limit and they become very fragile(like any other crystal).
Its not for one unit only(like a hero). So it has to be MUI! And per chance GUI too...

How do I do it?
08-21-2006, 02:47 AM#2
colderduck
for the reducing part, you can use hardened skin ability
make it so that minimum damage is 0 and ignored damage is the damage that is negated

and for the amplifying part is done in a trigger
Trigger:
Collapse Events
Unit - Unit is attacked
Collapse Conditions
(Owner of (Attacking Unit)) Not Equal to (Owner of (Attacked Unit))
(Owner of (Attacking unit)) is an enemy of (Owner of (Attacked Unit))
(Damage taken) greater than or equal to 25.00
(Level of Diamond Hard for (Attacked Unit)) Equal to 1
Collapse Actions
Unit - Cause (Attacking Unit) to damage (Attacked Unit), dealing ((Damage taken) / 2.00) damage of attack type Normal and damage type Normal

in this case, damage under; 25.00 is negated and amplified damage is the damage+damage/2
08-21-2006, 04:40 AM#3
darkwulfv
Trigger:
Diamond Hard
Collapse Events
Advanced - Any unit takes damage
Collapse Conditions
((Triggering unit) has buff Your_Buff) Equal to True
Collapse Actions
Set Taken_Damage = (Damage taken)
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Taken_Damage Less than or equal to Damage_Limit
Collapse Then - Actions
Advanced - Heal (Triggering unit) for Taken_Damage hitpoints
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Taken_Damage Greater than Damage_Limit
Collapse Then - Actions
Unit - Cause (Triggering unit) to damage (Triggering unit), dealing (Taken_Damage x 1.50) damage of attack type Chaos and damage type Universal
Collapse Else - Actions
Do nothing

Here you go. However, I need to tell you a few things.
1. You need World Editor Unlimited. It can be found at the link at the bottom of this post. When you get it, open the map with the Enhancer that comes with WEU. Tick Advanced Triggers.

2.You need the Variable Taken_Damage, it is a real.

3.Your_Buff is the buff the ability creates on a unit. Make sure you have it.
Just change the slot that says Your_Buff and replace it with your buff.

4.Damage_Limit is the amount of damage that determines whether damage is negated or increased. Change to what you'd like it to be.

5.The action that damages the unit, change the x1.5 part to whatever amount you want the damage to be increased by.

And that's it! If you need any help, I'd be glad to do whatever I can!

WEU:
http://www.wc3campaigns.net/tools/weu/
08-21-2006, 01:38 PM#4
martix
Erm...
How about excluding anything that has something to do with WEU?
08-21-2006, 03:17 PM#5
darkwulfv
Uhh.. Then I guess this can't be done... Sorry. The only way I could figure out how to do it was with WEU. I suggest you get it anyways, it makes triggering alot easier.
08-21-2006, 03:37 PM#6
martix
Quote:
Originally Posted by darkwulfv
Uhh.. Then I guess this can't be done... Sorry. The only way I could figure out how to do it was with WEU. I suggest you get it anyways, it makes triggering alot easier.
Uh, what you just said definately convinced me that the normal editor is best. If it can be done in WEU, in can be done otherwise too. And besides - my map just jumped +600KB.
SO thanks but NO THANKS.

I think I'll just be using "Add event" I think I got it now.
08-21-2006, 08:41 PM#7
darkwulfv
Actually, it's the other way around. If it can be done in normal WE, it can be done in WEU. This is the easiest way I could find to do it w/o JASS. If you can find a way to make this work, go right ahead. But there's no need to put up an attitude because I suggested using WEU. WEU adds a bunch more options with which to work triggers. (Hence, the Advanced catergory) If you've already found a way, congradulations.
08-21-2006, 08:55 PM#8
Freakazoid
Quote:
Originally Posted by martix
Uh, what you just said definately convinced me that the normal editor is best. If it can be done in WEU, in can be done otherwise too. And besides - my map just jumped +600KB.
SO thanks but NO THANKS.

I think I'll just be using "Add event" I think I got it now.

It increased becouse you used unneeded stuff.
08-21-2006, 09:30 PM#9
darkwulfv
All you need to turn on is advanced triggers and then add a trigger that activates on map initialization, with the action "Avanced-Turn on advanced triggers"
08-22-2006, 02:29 AM#10
Ignitedstar
The map probably went up 600 KB, because when you use the Advanced Triggers, you get ALL of them which are variables. And, you get about 100+ "extra" abilities.

Too bad there's no way to go inside of the Advanced Triggers part and just put in what you want into your map.