Turn on/off unit combat?

Dimaspy

New Member
Reaction score
19
Right, my thought was sort of like this. You pick up an item (a gun in this case), and when picked up, it turns on combat - attack 1 (the ranged attack) and turns off combat - attack 2 (the melee attack). When dropped, it does the opposite.

Is this possible to make with the GUI? Or do I need JASS? Or is there some easier way?
 

~GaLs~

† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
Reaction score
180
u can first diabled the unit's combat at object editor

then u set the atk 1 and atk 2 to a spell...
Then when tat unit picks up an item...exam: gun
Then add a done spell with range...

When the item is drop..remove the spell from tat unit.....
 

Dimaspy

New Member
Reaction score
19
Well, yeah that's one way..
But I think it would be fun if you could actually see what damage you can do.. Spells can't be the only way, right? Maybe if I add a shadow unit..
 

Dimaspy

New Member
Reaction score
19
~Bump~ Sorry.

Nobody knows anything about this? The -very- last thing I will do is a shadow unit.
 

NaPzt3R

You can change this now in User CP.
Reaction score
38
I'm not sure, but I don't think it's possible to Turn combat on or off.
 

Dimaspy

New Member
Reaction score
19
Well, I think it's a JASS thing, and I don't know anything about JASS.
However, making a shadow unit would be irritating during roleplay on my map, and that's the last thing I want to do :(
 

Mapster

New Member
Reaction score
4
Umm.. i wanted to know this in one of my other topics i posted.

But when i use the ability "Rooted" it turns off the ability to choose your skills you apply for your hero, and in order to root and uproot you need to use the ability. =/
 

Sooda

Diversity enchants
Reaction score
318
Any Orb ability can enable attack index.

> combat - attack 1 (the ranged attack) and turns off combat - attack 2 (the melee attack).

By default it is the opposite what you stated. Orb effects enable attack index 2 what can target air and ground. While attack 1 can attack only ground. The difference comes from targets allowed and at a time you got only one attack index active (enabled) if it isn' t changed from Object Editor (Allowed bouth attack indexes).
 

Dimaspy

New Member
Reaction score
19
Yeah, these orbs effects was the first thing I tried. However, it failed.

But about this with upgrades.. What if when you pick this item up, it adds an upgrade, changing all these combat stats, and when you drop the item, it turns off? I'm not really sure about the upgrades though, I've never tried to lower one before.. Maybe if I add the upgrade to an ability? But then, I don't know if it's possible..

Alright, when/if any of us find out how to do this, PLEASE write a tutorial about it! +rep-a-lot! :D
 
D

Down

Guest
You can order a unit to stop when it aquires a target
or when it attacks a target
 

Dimaspy

New Member
Reaction score
19
kc102, I could kiss your feet! ... Well, not litterly spoken..

It's a BRILLIANT idea to use upgrades! First I looked over the abilities, and found 'Flying Machine Bombs'. Nothing, they didn't do shit. Then, I saw "Techtree - Requirements Flying Machine Bombs". Alright, I went to the upgrades page. And what did I see? "Data - Effect 1 Enable Attacks".
NICE!
I'm going to make a tutorial about this, this worked so great..

If you wanna see the results, download the attached map file. Pick up the item to use ranged attacks (attack 1) and drop it to use melee attacks (attack 2).

kc102, +rep :D
 

Attachments

  • RandomMapName.w3x
    21.8 KB · Views: 100

Prometheus

Everything is mutable; nothing is sacred
Reaction score
590
Thanks :D
Wasn't sure if upgrades would do it lol
Glad I could help
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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 The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top