• 🏆 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!

Simple trigger request :)

Status
Not open for further replies.
Level 5
Joined
Jan 4, 2007
Messages
103
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:)
 
Level 14
Joined
Nov 18, 2007
Messages
1,084
@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.
 
Level 8
Joined
Nov 21, 2008
Messages
316
@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.
 
Level 14
Joined
Nov 18, 2007
Messages
1,084
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

  • NightRush.w3x
    15.2 KB · Views: 61
Last edited:
Status
Not open for further replies.
Top