Damage in the Day

Hildagarn

Member
Reaction score
20
how would I make a trigger that hurts the Shadowling 1% of his hp per second during the day time
 

Tru_Power22

You can change this now in User CP.
Reaction score
144
Trigger:
  • Melee Initialization
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • (In-game time of day) Greater than or equal to 6.00
          • (In-game time of day) Less than or equal to 18.00
    • Actions
      • Set Temp_Group = (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Shadowling))
      • Unit Group - Pick every unit in Temp_Group and do (Actions)
        • Loop - Actions
          • Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - ((Max life of (Picked unit)) / 100.00))
      • Custom script: call DestroyGroup (udg_Temp_Group)
 

WackO_WilL

New Member
Reaction score
4
You would make 1 Trigger that Deals X Damage Every Second, turn it off at night, turn it on during day. Should look something like this.

Trigger:
  • hurt
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units of type Footman) and do (Actions)
        • Loop - Actions
          • Unit - Set life of (Triggering unit) to (1.00 - (Percentage life of (Picked unit)))%


Then just create a trigger that during morning it Turns on, And at night. Turns off.

or do the guys above me trigger.
 

Tru_Power22

You can change this now in User CP.
Reaction score
144
You would make 1 Trigger that Deals X Damage Every Second, turn it off at night, turn it on during day. Should look something like this.

Trigger:
  • hurt
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units of type Footman) and do (Actions)
        • Loop - Actions
          • Unit - Set life of (Triggering unit) to (1.00 - (Percentage life of (Picked unit)))%


Then just create a trigger that during morning it Turns on, And at night. Turns off.

or do the guys above me trigger.

Mine is simpler, and doesn't leak.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top