Increasing Unit Range by Skill

Ayanami

칼리
Reaction score
288
I have been wondering, is there any way to increase unit's range by adding skills? I can't seem to find the trigger "Unit - Increase Range" or something like that either. Help please. Thanks.
 

hasslarn

New Member
Reaction score
20
Code:
range
    Events
        Unit - A unit Is attacked
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Incresed Range  for (Attacking unit)) Equal to 1
            Then - Actions
                Unit - Set (Attacking unit) acquisition range to 1800.00
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Incresed Range  for (Attacking unit)) Equal to 2
            Then - Actions
                Unit - Set (Attacking unit) acquisition range to 2200.00
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Incresed Range  for (Attacking unit)) Equal to 3
            Then - Actions
                Unit - Set (Attacking unit) acquisition range to 2800.00
            Else - Actions

Base the skill on any passive or aura abillity , btw change the event to the one that fits you.
 

Ayanami

칼리
Reaction score
288
Try the upgrade Long Rifles
Err, I can't seem to convert the long rifles into a spell. It is in the upgrades section....

Code:
range
    Events
        Unit - A unit Is attacked
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Incresed Range  for (Attacking unit)) Equal to 1
            Then - Actions
                Unit - Set (Attacking unit) acquisition range to 1800.00
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Incresed Range  for (Attacking unit)) Equal to 2
            Then - Actions
                Unit - Set (Attacking unit) acquisition range to 2200.00
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Incresed Range  for (Attacking unit)) Equal to 3
            Then - Actions
                Unit - Set (Attacking unit) acquisition range to 2800.00
            Else - Actions

Base the skill on any passive or aura abillity , btw change the event to the one that fits you.

Isn't acquisition range the detecting range of a unit? Not the attacking range?
 

demotry241

Don't Ever Categorize Yourself.
Reaction score
105
Code:
Untitled Trigger 002
    Events
        Unit - A unit Learns a skill
    Conditions
        (Learned Hero Skill) Equal to Avatar
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Avatar for (Learning Hero)) Equal to 1
            Then - Actions
                Player - Set the current research level of Long Rifles to 1 for (Owner of (Learning Hero))
            Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Level of Avatar for (Learning Hero)) Equal to 2
                    Then - Actions
                        Player - Set the current research level of Long Rifles to 2 for (Owner of (Learning Hero))
                    Else - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            If - Conditions
                                (Level of Avatar for (Learning Hero)) Equal to 3
                            Then - Actions
                                Player - Set the current research level of Long Rifles to 3 for (Owner of (Learning Hero))
                            Else - Actions
                                Do nothing


now all you need is modify the upgrade, and make the hero affected by the upgrade.
 

Draphoelix

It's not the wintercold that's killing me
Reaction score
132
I think you can make a spell and later use the upgrade in it. But I'm not sure if that's possible, but I think dota and other maps with such skills does that, but too keep it simple, make it a trigger if your not sure yourself.
 
U

unstable

Guest
1) Give your hero the Long Rifles upgrade.
(Object editor.....Techtree - Upgrades Used)

2) Edit the variables of Long Rifles to suit your map

3) Create a critical strike or bash type skill with 0's and name it appropriately

4) Remember to increase the units acquisition range in the trigger!
Example: Hero has 600 attack range and 600 acquisition range to begin with. Long Rifles gives him 30 increased attack range per level.

Code:
Scope
    Events
        Unit - A unit Learns a skill
    Conditions
        (Learned Hero Skill) Equal to Scope 
    Actions
        Player - Set the current research level of Long Rifles to ((Current research level of Long Rifles for (Owner of (Triggering unit))) + 1) for (Owner of (Triggering unit))
        Unit - Set (Triggering unit) acquisition range to ((Current acquisition range of (Triggering unit)) + 30.00)
 

Ayanami

칼리
Reaction score
288
1) Give your hero the Long Rifles upgrade.
(Object editor.....Techtree - Upgrades Used)

2) Edit the variables of Long Rifles to suit your map

3) Create a critical strike or bash type skill with 0's and name it appropriately

4) Remember to increase the units acquisition range in the trigger!
Example: Hero has 600 attack range and 600 acquisition range to begin with. Long Rifles gives him 30 increased attack range per level.

Code:
Scope
    Events
        Unit - A unit Learns a skill
    Conditions
        (Learned Hero Skill) Equal to Scope 
    Actions
        Player - Set the current research level of Long Rifles to ((Current research level of Long Rifles for (Owner of (Triggering unit))) + 1) for (Owner of (Triggering unit))
        Unit - Set (Triggering unit) acquisition range to ((Current acquisition range of (Triggering unit)) + 30.00)

Hey thanks. It works. Thanks again for the help =D
 
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