• 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.

[Trigger] Another Ability Request

Status
Not open for further replies.
Level 10
Joined
Mar 23, 2007
Messages
261
Yes, another of the kind.
I need an ability, that causes 10% of your current hitpoints in bonus damage on each attack (You dont loose the hp) for 10 seconds. It should be based on bloodlust, so it increases attackspeed by 25% for thoose 10 sec.
It does only need 1 level.
And its VERY important, that its in GUI.
So if anyone could do this for me, i would be quite happy ^.^
 
Level 11
Joined
May 26, 2008
Messages
174
hunnnnnnn, i know hot to make only the caster activate that trigger praticaly detecting the damage, if you want just talk to me

azazel method work, but think when a ranged unit attacks, the trigger will turn on before the projectile hits the enemy making it damage before the projectile hits the target, and if you click in the attack button multiple times the trigger will run to
 
Level 11
Joined
Feb 22, 2006
Messages
752
Well, you're basically asking for a damage detection system and you want it in GUI. Unfortunately, GUI damage detection systems will either be annoying to make or be very, very imperfect.

If you don't care about the ranged unit bug that Skizzik mentioned, then you can go ahead and use Event-Unit Attacks (although there are other problems, like what if the unit misses cuz of evasion or unit moving/cliff height difference, etc.). If you want it to be foolproof (or at least more so), you need to create a trigger that detects whenever a unit is created in your map (including units present at gamestart). Then, that trigger will register a unit is damaged event for some GUI trigger in your map (this is the only part that would have to use Jass/Custom Script).

Then, have that GUI trigger dish out the bonus damage (use Event Damage Source to get the damaging unit).

So in pseudoGUI...

Trigger bonusDamage

Events
(none)

Conditions
-(Event Damage Source) has (<appropriate buff>) equal to (true)

Actions
-(Event Damage Source) damage (Triggering Unit) for ((Event Damage Source)'s (Current Life) * 0.10 ) using (Attack Type Spell) and (Damage Type Normal)

Trigger addUnit

Events
-Unit enters Playable Map Bounds

Actions
-Custom Script: call TriggerRegisterUnitEvent( gg_trg_bonusDamage, GetTriggerUnit(), EVENT_UNIT_DAMAGED )

Trigger addUnitMapInit

Events
-Map Initialization

Actions
Pick every unit in group (All Units) and do:
-Loop Actions: Custom Script: call TriggerRegisterUnitEvent( gg_trg_bonusDamage, GetEnumUnit(), EVENT_UNIT_DAMAGED )
 
Status
Not open for further replies.
Top