• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Simple trigger request :)

Status
Not open for further replies.
This?:

  • Events
    • Time - Every 1.00 seconds of game time
  • Conditions
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (In-game time of day) Greater than or equal to 0.00
        • (In-game time of day) Less than or equal to 8.00
      • Then - Actions
        • Set TimePoint = (Position of (Your unit))
        • Unit - Create 1 Dalaran Guard for (Owner of (Your unit)) at TimePoint facing Default building facing degrees
        • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
        • Custom script: call RemoveLocation (udg_TimePoint)
        • Unit - Order (Last created unit) to Orc Shaman - Bloodlust (Triggering unit)
      • Else - Actions
        • Do nothing
Just create a Bloodlust spell that increases the movement speed by 30% and attack speed by 55% and remove the scaling ect and put the time to 2secs so if it gets removed, it get's re-cast ect. Hope it helps:)
 
@The_DooM: That's not really the best method to do this.
It would be better to have an infinite duration then a repeated check throughout the night to see if units have the buff.
Once it's daytime, do a group enumeration that removes the buff.
By the way, never use Do Nothing.

The easiest method to apply the speed bonus is to use Endurance Aura and make the targets affected Self only. However, that brings the trouble of using auras for buffs since the levels aren't automatically set, and too many auras cause lag.

@Blackrockorc: Could you be a bit more specific?
Like, is it only one specific unit or several units? The trigger would be more simple if it only worked on one unit.
 
@Blackrockorc: Could you be a bit more specific?
Like, is it only one specific unit or several units? The trigger would be more simple if it only worked on one unit.
well its for one type of unit but several will be on the map, this map usually has at least 100 units on the map at once for each player.. a vamp unit in game will use the spell.
its for the roc map broken alliances.
 
Um, Berserk anybody?
How would that help? Issuing the Berserk order with triggers cancel a unit's order. Besides, you'll probably want to come up with a way to remove the Berserk icon as well from the units' UI.
I think Berserk would complicate things even further than using Bloodlust.

Anyway:
  • PeriodicCheck
    • Events
      • Time - Every 2.00 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (In-game time of day) Greater than or equal to 18.00
              • (In-game time of day) Less than 6.00
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • RemovedBuffs Equal to True
            • Then - Actions
              • Set RemovedBuffs = False
            • Else - Actions
          • Custom script: set bj_wantDestroyGroup = true
          • Unit Group - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is dead) Equal to False) and ((((Matching unit) has buff Night Rush ) Equal to False) and ((Level of Night Rush for (Matching unit)) Greater than 0)))) and do (Actions)
            • Loop - Actions
              • Set TempLoc = (Position of (Picked unit))
              • Unit - Create 1 xe unit (Caster System?) for (Owner of (Picked unit)) at TempLoc facing Default building facing degrees
              • Unit - Add Bloodlust (Night Rush) to (Last created unit)
              • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
              • Unit - Order (Last created unit) to Orc Shaman - Bloodlust (Picked unit)
              • Custom script: call RemoveLocation(udg_TempLoc)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • RemovedBuffs Equal to False
            • Then - Actions
              • Custom script: set bj_wantDestroyGroup = true
              • Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) has buff Night Rush ) Equal to True)) and do (Actions)
                • Loop - Actions
                  • Unit - Remove Night Rush buff from (Picked unit)
              • Set RemovedBuffs = True
            • Else - Actions
You can test this with the "riseandshine" and "lightsout" cheats.
 

Attachments

Last edited:
Status
Not open for further replies.
Back
Top