1. Are you planning to upload your awesome spell or system to Hive? Please review the rules here.
    Dismiss Notice
  2. Find your way through the deepest dungeon in the 18th Mini Mapping Contest Poll.
    Dismiss Notice
  3. A brave new world lies beyond the seven seas. Join the 34th Modeling Contest today!
    Dismiss Notice
  4. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
Hive 3 Remoosed BETA - NOW LIVE. Go check it out at BETA Hive Workshop! Post your feedback in this new forum BETA Feedback.
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Trigger Viewer

Static field 001.w3x
Variables
Inicializace
init
static field
knockback
died
Níže zapište kód vlastního skriptu

		
Name Type Is Array Initial Value
GameValue integer No
kb_angle real Yes
kb_bolean boolean Yes
kb_caster unit Yes
kb_distance real Yes
kb_lighting lightning Yes
TempGroup group No
TempPoint location No
TempPoint2 location No
TempReal real No
TempValue integer No
init
  Events
    Map initialization
  Conditions
  Actions
    Visibility - Disable fog of war
    Visibility - Disable black mask
static field
  Events
    Unit - A unit Starts the effect of an ability
  Conditions
  Actions
    Set VariableSet TempPoint = (Position of (Triggering unit))
    Set VariableSet TempGroup = (Units within 500.00 of TempPoint matching (((Triggering unit) belongs to an enemy of (Owner of (Matching unit)).) Equal to True).)
    Special Effect - Create a special effect attached to the overhead (attachpoint) of (Triggering unit) using Abilities\Spells\Undead\ReplenishMana\ReplenishManaCasterOverhead.mdl
    Special Effect - Destroy (Last created special effect)
    Custom script: call RemoveLocation(udg_TempPoint)
    Unit Group - Pick every unit in TempGroup and do (Actions)
      Loop - Actions
        Custom script: call DestroyGroup(udg_TempGroup)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            ((Picked unit) is alive) Equal to True
            ((Picked unit) is A structure) Equal to False
          Then - Actions
            Special Effect - Create a special effect attached to the origin (attachpoint) of (Picked unit) using Abilities\Weapons\Bolt\BoltImpact.mdl
            Special Effect - Destroy (Last created special effect)
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                (Custom value of (Picked unit)) Equal to 0
              Then - Actions
                Set VariableSet GameValue = (GameValue + 1)
                Unit - Set the custom value of (Picked unit) to GameValue
              Else - Actions
            Set VariableSet TempPoint = (Position of (Triggering unit))
            Set VariableSet TempPoint2 = (Position of (Picked unit))
            Set VariableSet TempReal = (Distance between TempPoint and TempPoint2)
            Set VariableSet TempReal = (500.00 - TempReal)
            Custom script: call RemoveLocation(udg_TempPoint)
            Custom script: call RemoveLocation(udg_TempPoint2)
            Set VariableSet TempValue = (Custom value of (Picked unit))
            Set VariableSet kb_bolean[TempValue] = True
            Set VariableSet kb_distance[TempValue] = TempReal
            Set VariableSet kb_caster[TempValue] = (Triggering unit)
            Set VariableSet TempPoint = (Position of (Triggering unit))
            Set VariableSet TempPoint2 = (Position of (Picked unit))
            Set VariableSet kb_angle[TempValue] = (Angle from TempPoint to TempPoint2)
            Lightning - Create a Drain Mana lightning effect from source TempPoint to target TempPoint2
            Set VariableSet kb_lighting[TempValue] = (Last created lightning effect)
            Custom script: call RemoveLocation(udg_TempPoint)
            Custom script: call RemoveLocation(udg_TempPoint2)
            Unit - Turn collision for (Picked unit) Off.
          Else - Actions
knockback
  Events
    Time - Every 0.03 seconds of game time
  Conditions
  Actions
    Set VariableSet TempGroup = (Units in (Playable map area))
    Unit Group - Pick every unit in TempGroup and do (Actions)
      Loop - Actions
        Custom script: call DestroyGroup(udg_TempGroup)
        Set VariableSet TempValue = (Custom value of (Picked unit))
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          If - Conditions
            kb_bolean[TempValue] Equal to True
          Then - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              If - Conditions
                kb_distance[TempValue] Greater than 0.00
              Then - Actions
                Set VariableSet TempReal = (Real((Random integer number between 5 and 25)))
                Set VariableSet kb_distance[TempValue] = (kb_distance[TempValue] - TempReal)
                Unit - Cause kb_caster[TempValue] to damage (Picked unit), dealing (Random real number between 1.00 and 3.00) damage of attack type Spells and damage type Normal
                Set VariableSet TempPoint = (Position of (Picked unit))
                Set VariableSet TempPoint2 = (TempPoint offset by TempReal towards kb_angle[TempValue] degrees.)
                Unit - Move (Picked unit) instantly to TempPoint2
                Custom script: call RemoveLocation(udg_TempPoint)
                Custom script: call RemoveLocation(udg_TempPoint2)
                Set VariableSet TempPoint = (Position of kb_caster[TempValue])
                Set VariableSet TempPoint2 = (Position of (Picked unit))
                Lightning - Move kb_lighting[TempValue] to source TempPoint and target TempPoint2
                Custom script: call RemoveLocation(udg_TempPoint)
                Custom script: call RemoveLocation(udg_TempPoint2)
              Else - Actions
                Set VariableSet kb_bolean[TempValue] = False
                Unit - Turn collision for (Picked unit) On.
                Lightning - Destroy kb_lighting[TempValue]
          Else - Actions
died
  Events
    Unit - A unit Dies
  Conditions
  Actions