• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Need help

Status
Not open for further replies.
Level 1
Joined
Aug 8, 2012
Messages
3
I already did read that its not possible to add a Unit-variable to the Event "Specific Unit - Takes Damage"

... thats shit! i need that
Please i need suggestions what i did wrong in my trigger/triggers or how else it could work! x:

All in all the Spell which is triggered. Shall an Attack bonus to a Unit ( lady vashij whatever ) whenever the unit uses one of its abilities - It(the bonus damage) stays for the first attack (or until 5seconds) before it vanishes.

The trigger which shall end after the hostile attacked unit took damage, needs such a Event, I tried to add the Event to the specific trigger via another trigger but that also doesnt seem to work. (This try is the last trigger)



S variable atkd
Ereignisse
Einheit - A unit Wird angegriffen
Bedingungen
(Unit-type of (Attacking unit)) Gleich Lady Vashj
Aktionen
Set Ein_Gl_AttackedUnit = (Attacked unit)


S variable
Ereignisse
Einheit - A unit Erlernt eine Fertigkeit
Bedingungen
(Learned Hero Skill) Gleich S1
Aktionen
Set Int_SpellLevel1 = (Int_SpellLevel1 + 1)


S a
Ereignisse
Einheit - A unit Beginnt, eine Fähigkeit zu wirken
Bedingungen
(Unit-type of (Casting unit)) Gleich Lady Vashj
Aktionen
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
'IF'-Bedingungen
Boolean_S1 Gleich True
Int_SpellLevel1 Gleich 1
'THEN'-Aktionen
Set Boolean_Gl_S1_Ok = True
Countdown-Timer - Start Timer_SpellLength as a Einmalig timer that will expire in 5.20 seconds
Wait 0.01 seconds
Einheit - Add Seffekt1 to (Triggering unit)
Set Boolean_S1 = False
'ELSE'-Aktionen
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
'IF'-Bedingungen
Boolean_S1 Gleich True
Int_SpellLevel1 Gleich 2
'THEN'-Aktionen
Set Boolean_Gl_S1_Ok = True
Countdown-Timer - Start Timer_SpellLength as a Einmalig timer that will expire in 5.20 seconds
Wait 0.01 seconds
Einheit - Add Seffekt2 to (Triggering unit)
Set Boolean_S1 = False
'ELSE'-Aktionen
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
'IF'-Bedingungen
Boolean_S1 Gleich True
Int_SpellLevel1 Gleich 3
'THEN'-Aktionen
Set Boolean_Gl_S1_Ok = True
Countdown-Timer - Start Timer_SpellLength as a Einmalig timer that will expire in 5.20 seconds
Wait 0.01 seconds
Einheit - Add Seffekt2 to (Triggering unit)
Set Boolean_S1 = False
'ELSE'-Aktionen
Do nothing


S b
Ereignisse
Einheit - D 0009 <gen> Nimmt Schaden
Bedingungen
(Unit-type of (Attacking unit)) Gleich Lady Vashj
Aktionen
Wait 1.25 seconds
Einheit - Remove Seffekt1 from (Attacking unit)
Einheit - Remove Seffekt2 from (Attacking unit)
Einheit - Remove Seffekt3 from (Attacking unit)
Wait 0.01 seconds
Einheit - Remove Befehls-Aura buff from (Attacking unit)
Countdown-Timer - Pause (Last started timer)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
'IF'-Bedingungen
Boolean_Gl_S1_Ok Gleich True
'THEN'-Aktionen
Set Boolean_S1 = True
'ELSE'-Aktionen
Do nothing


S c
Ereignisse
Zeit - Timer_SpellLength expires
Bedingungen
Aktionen
Wait 0.50 seconds
Einheit - Remove Seffekt1 from Ein_TriggeredUnit
Einheit - Remove Seffekt2 from Ein_TriggeredUnit
Einheit - Remove Seffekt3 from Ein_TriggeredUnit
Wait 0.01 seconds
Einheit - Remove Befehls-Aura buff from (Attacking unit)
Set Boolean_S1 = True


test
Ereignisse
Zeit - Elapsed game time is 0.01 seconds
Bedingungen
Aktionen
Auslöser - Add to S b <gen> the event (Einheit - Ein_Gl_AttackedUnit Nimmt Schaden)


:goblin_cry::goblin_cry:
 
Level 9
Joined
Jul 10, 2011
Messages
562
you dont make it you take it from the hive and put it in your map :D
and the usage is simple ^^

wait ill link you a DDS.

EDIT: Here's Bribes...his one is the best i know. and there's also a description how to use it.
 
Status
Not open for further replies.
Top