• 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] 2 triggers..

Status
Not open for further replies.
Level 4
Joined
Aug 4, 2008
Messages
76
Hi all,
I would like to ask about 2 triggering abilities..

1)I took the spell Critical Strike of Blademaster and changed the stats a bit to fit my map..However I would like to make a toggle spell which when I activate it will increase the power of the critical given to the hostile units..Anyone has any idea about that??

2)I would like to make 2-3 skills usable ONLY when the HP of my heroes is under 30%..

THx rly much!
 
Level 6
Joined
Apr 29, 2008
Messages
94
If I understand you well.

1) make few ranks for your Critical Strike ability (rank 1: +25% damage, tank 2 +50%... as it fit for you) and make 2 additional trigger-spells which has no effect (one spell for toggle on and teh second to toggle off), in that case ill call them Toggle ON / OFF.
After you made them, creat a new trigger for toggling on and add teh next events:

  • Toggle ON
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Toggle ON
    • Actions
      • Set unit = (Triggering unit)
      • Unit - Remove Toggle ON from unit
      • Unit - Add Toggle OFF to unit
      • Unit - Set level of Critical Strike for unit to 2 (or whatever ya want)
      • Set unit = No unit
and when you want to toggle off the critical strike bonus damage, just use the Toggle OFF ability which will have the next trigger:

  • Toggle OFF
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Toggle OFF
    • Actions
      • Set unit = (Triggering unit)
      • Unit - Remove Toggle OFF from unit
      • Unit - Add Toggle ON to unit
      • Unit - Set level of Critical Strike for unit to 1 (normal crit bonus)
      • Set unit = No unit

Simple as talkin, is'nt it?


2) Thats a bit more complicated because you'll have to make the whole action of the spell by yourself (The stun, damage, effect, etc...) only because ther is already-made spell which has health condition.

I'll show you the easiest way to do that:

  • Crap Strike
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Crap Strike
    • Actions
      • Set unit = (Triggering unit)
      • Set tar = (Target unit of ability being cast)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Life of (unit)) Less than or equal to (((Life of unit) / (Max life of unit)) x 100.00)
        • Then - Actions
          • Unit - Cause unit to damage tar, dealing ((Real((Strength of unit (Exclude bonuses)))) x 25.00) damage of attack type Spells and damage type Normal
          • Set Point = (Position of tar)
          • Special Effect - Create a special effect at Point using Abilities\Spells\Other\Volcano\VolcanoMissile.mdl
          • Special Effect - Destroy (Last created special effect)
          • Custom script: call RemoveLocation(udg_Point)
          • Set unit = No unit
          • Set tar = No unit
        • Else - Actions
          • Quest - Display to (All players matching ((Matching player) Equal to (Owner of unit))) the Warning message: You are too healthy...
          • Set unit = No unit
          • Set tar = No unit
          • Skip remaining actions
 
Level 4
Joined
Aug 4, 2008
Messages
76
Thx a lot m8!..However on 2nd skill I would like just to be activated when the HP of my heroes is below 30%..The rest of the stats I can set from the abilities options..But ty a lot!
 
Status
Not open for further replies.
Top