need help with Spread Tower

Veok

New Member
Reaction score
1
Hmm... I have no idea whether it would work, but...

First I'd make a variant version of the abomination's plague cloud aura that only affects friendly targets. Then use the following trigger:

Action
A unit is attacked

Conditions
Unit-Type of Attacking unit equal to spread tower

Events

Unit- Add plague cloud aura to attacked unit.

Hope that helps.


If plague cloud aura doesn't work, try negative values for unholy aura's health regen.
 

Dryvnt

New Member
Reaction score
10
Hmm... I have no idea whether it would work, but...

First I'd make a variant version of the abomination's plague cloud aura that only affects friendly targets. Then use the following trigger:

Action
A unit is attacked

Conditions
Unit-Type of Attacking unit equal to spread tower

Events

Unit- Add plague cloud aura to attacked unit.

Hope that helps.


If plague cloud aura doesn't work, try negative values for unholy aura's health regen.

good idea ! now i just need to "spread" the effect from unit to unit ! :D

Edit : Current triggers ! :D

Code:
Starting the Spread
    Events
        Unit - A unit Is attacked
    Conditions
        ((Unit-type of (Attacking unit)) Equal to Spread Tower) and ((Random real number between 0.00 and 100.00) Less than or equal to 20.00)
    Actions
        Unit Group - Add (Triggering unit) to SpreadingUnits

Code:
Spreading the Spread
    Events
        Time - Every 0.20 seconds of game time
    Conditions
    Actions
        Unit Group - Pick every unit in SpreadingUnits and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Random real number between 0.00 and 100.00) Less than or equal to 20.00
                    Then - Actions
                        Unit Group - Pick every unit in (Units within 150.00 of (Position of (Picked unit))) and do (Actions)
                            Loop - Actions
                                Unit - Create 1 Spread Dummy for Neutral Hostile at (Position of (Picked unit)) facing Default building facing degrees
                                Unit - Order (Last created unit) to Attack (Picked unit)
                    Else - Actions
 

Veok

New Member
Reaction score
1
Well the whole idea is that plague cloud / unholy aura infect nearby units. You could go further than that though.

To modify the end of that other trigger


Set (attacked unit) to PlagueCarrier [a unit variable]

then a new, periodic trigger

Action
Unit - Range: A unit comes within X range of Plague Carrier

Event
Unit - Add Plague cloud aura to Triggering Unit
 

N2o)

Retired.
Reaction score
51
Here are your triggers, along with these you'll need an ability(pref. based off of shadowstrike), a dummy unit(i'll explain if you need) and a custom buff.

Code:
Spread Add
    Events
        Unit - A unit Is attacked
    Conditions
        (Owner of (Attacked unit)) Equal to Player 12 (Brown)
        (Unit-type of (Attacking unit)) Equal to Spread Tower
    Actions
        Set Point = (Position of (Attacked unit))
        Unit - Set the custom value of (Attacked unit) to (Player number of (Owner of (Attacking unit)))
        Unit - Create 1 Dummy for (Owner of (Attacking unit)) at Point facing Default building facing degrees
        Custom script:   call removelocation udg_Point
        Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
        Unit - Add Spread(Dummy) to (Last created unit)
        Unit - Order (Last created unit) to Night Elf Warden - Shadow Strike (Attacked unit)
Code:
Spread
    Events
        Time - Every 0.10 seconds of game time
    Conditions
    Actions
        Set Unitgroup2 = (Units owned by Player 12 (Brown) matching (((Matching unit) has buff Spread) Equal to True))
        Unit Group - Pick every unit in Unitgroup2 and do (Actions)
            Loop - Actions
                Set Point = (Position of (Picked unit))
                Set Unit = (Picked unit)
                Set Unitgroup = (Units within 150.00 of Point)
                Custom script:   call removelocation udg_Point
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Number of units in Unitgroup) Equal to 0
                    Then - Actions
                        Set Unit = No unit
                        Custom script:   call DestroyGroup udg_Unitgroup
                        Skip remaining actions
                    Else - Actions
                        Unit Group - Pick every unit in Unitgroup and do (Actions)
                            Loop - Actions
                                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    If - Conditions
                                        (Owner of (Picked unit)) Equal to Player 12 (Brown)
                                    Then - Actions
                                        Set Point2 = (Position of (Picked unit))
                                        Unit - Create 1 Dummy for (Player((Custom value of Unit))) at Point facing Default building facing degrees
                                        Custom script:   call removelocation udg_Point2
                                        Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
                                        Unit - Add Spread(Dummy) to (Last created unit)
                                        Unit - Order (Last created unit) to Night Elf Warden - Shadow Strike (Attacked unit)
                                    Else - Actions
                Custom script:   call DestroyGroup udg_Unitgroup2
                Set Unit = No unit
        Custom script:   call DestroyGroup udg_Unitgroup
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top