• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Berserker Unit Script

Status
Not open for further replies.
Level 3
Joined
May 28, 2019
Messages
45
Hi guys!
I'm currently making a spell, which makes unit aggressive to all.

I need to trigger two specific fuctions:
1. This unit must attack anyone. Even his own team. So if I cast my spell on two units, they'll have to kill each other.
2. If possible, I'd like to gain experience for units, killed by the berserker

I haven't managed to find any information on this issue.

Thank you very much in advance!
 
I'm thinking of progressive duration, depending on ability level, but it is not necessary.

Target = closest unit in sight range. When target dies, switch to another closest unit. Like neutral hostile, but with attacking allies.
 
Do you want to have control over the unit? If not, you could just change its owner to neutral hostile or something.
Precisely what I was thinking. The thing is, even if he wanted to have control over it then the ability would make no sense whatsoever.
Doesn't work if there's neutral hostile targets aswell, if not it's fine if you remove the bounty.
 
Changing team won't work because affected units have to fight each other as well (they just won't do it if they have the same team).

Nevertheless, I understand that my plan can be too difficult. Then I just need to know it for sure.

And no - I don't want to have control over affected units - I consider them as uncontrollable insane killing machines.
 
And if there's more than 2 berserking units this won't work.
So basically - 1) have an used player slot (neutral extra)
2) when it becomes berserker, change owner
3) order to attack the nearest unit
If you change owner after ordering the attack, the unit will cancel the order.
 
you want to catch orders.

e:
unit is issued order targeting a point
unit is issued order targeting an object
etc
c:
unit is berserked
a:
turn off this trigger
make unit attack berserk target
turn on this trigger

it doesn't tend to be perfect though (spamming orders lets you cancel attack swings) so you may also want to change the units owner
 
Status
Not open for further replies.
Back
Top