"Berserker Unit"

yamifowl

Member
Reaction score
2
Hi ppl...
I'm in need of some help...
I'm wanting to create a Berserker unit...
It's main "pro/con" would be this...
"Whenever this unit starts attacking, while there are enemy units in range (acquisition range of 500) it will not stop attacking... Even if the player order it to retreat, the berserker wont..."
How can I do that?
I tried lots of triggers, but I couldn't get the right effect...
Oh, and I tried "changin the Berserke into Neutral Hostile" but It can't be done since it will only attack enemy units, it's not intented to attack friends...

Thanks!!!
 

hi_im_bob

......and you are?
Reaction score
44
I think that there is a cinematics trigger that will not allow you to click on units, but that could be all units.....
 
P

Peanuthead

Guest
You could give it/take away the Locust ability. The Locust ability makes units unselectable. Or you could just spam the order constantly. Do you mean like the Berserker from Gears of War?
 

Kelv

TH.net Regular
Reaction score
7
Well I tried creating a trigger for you, problem is.... the game crashes while loading. I'm not that good at triggers anyway. I uploaded the trigger for you to try and modify to get it to work.


This trigger deselects the unit
Code:
Untitled Trigger 001
    Events
        Map initialization
    Conditions
    Actions
        Set Picked_Units = (All enemies of (Owner of Peasant 0000 <gen>))
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (berserker ring <gen> contains (Picked unit)) Equal to True
            Then - Actions
                Selection - Remove Peasant 0000 <gen> from selection for (Owner of Peasant 0000 <gen>)
            Else - Actions
        Trigger - Run Untitled Trigger 001 <gen> (checking conditions)

This trigger moves a region around the berserker unit.

Code:
Untitled Trigger 002
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        Region - Center berserker ring <gen> on (Position of Peasant 0000 <gen>)

Edit: Actually it would be much better to use the Locust ability I think for lag reasons. The only problem with these suggestions is that if the unit is supposed to have spells, you won't be able to use them in combat. You could just edit it instead of making the unit unselectable, making the movement speed for the unit to 0 so it can't run away but then your problem is now it can't chase after the unit.
 
S

Sunny_D

Guest
the trigger with the rect... what is that supposed to do then? always attack units within? consider also that the rect has to be a variable..

locust would make the unit also untargetable, what means the enemy wont be able to attack it... atm i duno a good mui-solution... but ill see if i find something...
 

Kelv

TH.net Regular
Reaction score
7
My thought for the region (if thats what you mean by rect) was that if there was a enemy unit inside the region, the player wouldn't have control over the berserker unit. As far as I know, I haven't found in option to check if there are units within blank of unit. Only if a unit comes within. unfortunately regions can't be circles. I thought the idea of a region was good but I have little experience with creating my own complex triggers. I also know only how to do the most basic jass trigger.
 
S

Sunny_D

Guest
My thought for the region (if thats what you mean by rect) was that if there was a enemy unit inside the region, the player wouldn't have control over the berserker unit.

sure, i know you wanted that, but how would you trigger that the player doesnt have control over the berserker. thats what i meant. you cant use locust though...

anyway, i tried something myself and it works so far... test it and judge yourself if that fits what you need... i have attached a sample map...
 

Attachments

  • Berserk Mode.w3x
    17.9 KB · Views: 148

Sooda

Diversity enchants
Reaction score
318
If your map is custom and you don' t care about end-game score you could try this if you got computer controlled allyed player. Just give control of that unit to computer and don' t change units owner color. It is best what I can think of.
Code:
Unit - Change ownership of (Triggering unit) to Player 1 (Red) and Retain color
:)
 

Curuinor

New Member
Reaction score
7
If your map is like an AoS, give the unit to one of the sides of the allied creeps. If you care about score, hide the units from the score screen. >_>
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • WildTurkey WildTurkey:
    is there a stephen green in the house?
    +1
  • The Helper The Helper:
    What is up WildTurkey?
  • The Helper The Helper:
    Looks like Google fixed whatever mistake that made the recipes on the site go crazy and we are no longer trending towards a recipe site lol - I don't care though because it motivated me to spend alot of time on the site improving it and at least now the content people are looking at is not stupid and embarrassing like it was when I first got back into this like 5 years ago.
  • The Helper The Helper:
    Plus - I have a pretty bad ass recipe collection now! That section of the site is 10 thousand times better than it was before
  • The Helper The Helper:
    We now have a web designer at my job. A legit talented professional! I am going to get him to redesign the site theme. It is time.
  • Varine Varine:
    I got one more day of community service and then I'm free from this nonsense! I polished a cop car today for a funeral or something I guess
  • Varine Varine:
    They also were digging threw old shit at the sheriff's office and I tried to get them to give me the old electronic stuff, but they said no. They can't give it to people because they might use it to impersonate a cop or break into their network or some shit? idk but it was a shame to see them take a whole bunch of radios and shit to get shredded and landfilled
  • The Helper The Helper:
    whatever at least you are free
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?

      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