• 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] My fault?

Status
Not open for further replies.
Level 4
Joined
Aug 4, 2008
Messages
76
Hi all,
I was working on a triggering skill for my map.THe skill is called Final Frenzy and what it does is to add a huge amount of Strength only when the HP of the hero is under 500... SO here's my trigger:

Event:
A Unit Beggins Channeling an ability

Condition:
Ability Being cast equal to Final Frenzy

Action:
If ((Life of Dreadnought Equal to 500)then do(Hero - Modify Strength of Dreadnought 0000<gen>: Add 150)Else Do Nothing


It doesn't work so please help :confused::cry:
 

x3m

x3m

Level 3
Joined
Apr 11, 2008
Messages
51
"If hp = 500 then do"... seams a bit wrong... try "if hp is less then 500" do this and that.
 
Level 4
Joined
Aug 4, 2008
Messages
76
Ok..I would like to ask sumthn else :con: How can I restore the STR of the hero back to thhe previous state when HP is above 500?
 
Level 6
Joined
Feb 21, 2008
Messages
205
  • MyTrigger
  • events - every 0.4sec of game time
  • conditions - Your unit has equal or greater then 500 hp
  • actions - set strength on your unit to -%%
    • - Turn off this trigger.




You have to add this trigger into your first trigger though (at bottom) -
  • "Turn on (mytrigger)"
 
Level 4
Joined
Aug 4, 2008
Messages
76
This doesn't work coz even if I am level 1,my HP is over 500 that means that I get the value of the STR I'll trigger...I need a trigger to restore the STR to the previous state..If anyone can help plz


P.S: Sorry my annoying questions :cute:
 
Level 4
Joined
Aug 4, 2008
Messages
76
huhmm...Actually if i make a trigger to subtract 60 STR when the HP is over 500 it will subtract when I'm level one without using the skill....It needs some values that I cannot work..It needs a complicated trigger so plz if anyone has time to test it,find it and tell me..Thx in advance

Triggering Ability:Final Frenzy
Event:
A unit starts casting an ability

Condition:
(Ability being Cast)equal to Final Frenzy

Action:
If((Life of Last Created unit)less than or equal to 500)then do(Hero - Modify Strength : Add 60)else do nothing
 
This one trigger should do it:
  • Final Frenzy
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • (Ability being cast) Equal to Final Frenzy
          • (Life of (Triggering unit)) Less than or equal to 500.00
    • Actions
      • Hero - Modify Strength of (Triggering unit): Add ((Level of Final Frenzy for (Triggering unit)) x 50)
      • Wait until (((Life of (Triggering unit)) Greater than or equal to 500.00) or ((Life of (Triggering unit)) Less than or equal to 0.00)), checking every 1.00 seconds
      • Hero - Modify Strength of (Triggering unit): Subtract ((Level of Final Frenzy for (Triggering unit)) x 50)
Of course change the value 50 to however much strength you want per level.
 
Level 4
Joined
Aug 4, 2008
Messages
76
This one trigger should do it:
  • Final Frenzy
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • (Ability being cast) Equal to Final Frenzy
          • (Life of (Triggering unit)) Less than or equal to 500.00
    • Actions
      • Hero - Modify Strength of (Triggering unit): Add ((Level of Final Frenzy for (Triggering unit)) x 50)
      • Wait until (((Life of (Triggering unit)) Greater than or equal to 500.00) or ((Life of (Triggering unit)) Less than or equal to 0.00)), checking every 1.00 seconds
      • Hero - Modify Strength of (Triggering unit): Subtract ((Level of Final Frenzy for (Triggering unit)) x 50)
Of course change the value 50 to however much strength you want per level.

Nop it didn't work...With this trigger actually neither the +60 STR on the hero works :/ I'm so confusedddd
 
Level 7
Joined
Jul 20, 2008
Messages
377
Yeah, the trouble with deactivating it after your HP goes back up is that when you subtract the strength, your max HP goes down, and as does your HP. The game keeps your HP at the same %.
 
Status
Not open for further replies.
Top