Attack skills

Korolen

New User (Why do I keep getting those red bars?)
Reaction score
69
I want to have a unit be able to normally attack a foe, and when the player uses a certain ability, the next attack does certain extra stuff.

There is the obvious answer, of just using a skill (i.e. death coil for extra damage). However, I want it to a) not have to target something, but automatically target what the dude is currently attacking and b) not interrupt his current orders, but just pimp out the next attack.

I thought about making an ability that just sticks on a buff or something (or a handle var, but a buff might be nice as the player can see it), and when the unit next attacks, the buff is removed and special effects are distributed.

I'm wondering if there is an easier way to do this, that doesn't involve lots of triggering (and I'm not completely sure its possible to use an ability and not make the unit cancel orders, no matter if I what options I set in channel).

Thanks in advance,
--Korolen
 

elmstfreddie

The Finglonger
Reaction score
203
Make a dummy unit that casts it on the unit he's attacking maybe?
Not quite sure if that's what you want though...
 

Korolen

New User (Why do I keep getting those red bars?)
Reaction score
69
Make a dummy unit that casts it on the unit he's attacking maybe?
Not quite sure if that's what you want though...
Well, getting the effects is not the problem. I just want to somehow trigger a function when they next attack after using an ability, besides some heavy coding.
 

elmstfreddie

The Finglonger
Reaction score
203
Oh, well you could have two triggers. One that says a unit casts the ability, then turn on the other trigger and set a unit variable to the caster. Then the other ability says a unit gets attacked, and a condition of the attacking unit is the variable that got set in the other one, then do w/e and then turn off the trigger

If that confused you I'll post an example :)
 

Korolen

New User (Why do I keep getting those red bars?)
Reaction score
69
Well, I can get it working just fine, only I don't know how to make an ability not cancel the unit's current order.

Also, I was just wondering if there was an easier way.
 

elmstfreddie

The Finglonger
Reaction score
203
Easier way: no

For your problem you need a dummy to cast then, or use the trigger that makes a unit damage a target.
 

Korolen

New User (Why do I keep getting those red bars?)
Reaction score
69
I can do the effects just fine with some scripting. The only problem is making the player be able to communicate to the trigger (if you see what I mean). If I make an ability that does nothing that the player casts, it cancels the unit's current order, which I don't want.
 

elmstfreddie

The Finglonger
Reaction score
203
Yes I understand that, that's why you need a casting dummy. I think you don't quite understand the concept of the dummy (or I'm getting my lingo screwed up). Dummies aren't only used for special effects, they are also used to cast spells for another hero. You just have an invisible locust unit, that has the ability that does the extra damage. The only problem with that though, is the hero won't get credit for killing, the dummy will. Other than that, (which can be fixed anyways) using a dummy to cast an ability on the attack is the best thing to do.
 

Korolen

New User (Why do I keep getting those red bars?)
Reaction score
69
Yes I understand that, that's why you need a casting dummy. I think you don't quite understand the concept of the dummy (or I'm getting my lingo screwed up). Dummies aren't only used for special effects, they are also used to cast spells for another hero. You just have an invisible locust unit, that has the ability that does the extra damage. The only problem with that though, is the hero won't get credit for killing, the dummy will. Other than that, (which can be fixed anyways) using a dummy to cast an ability on the attack is the best thing to do.
I know what a dummy unit is, but I don't see how it can enable the player to communicate. Are you saying that the unit doesn't deal damage, but the dummy unit, and the dummy won't get his orders disrupted?

I'm just trying to make it so a unit can cast an ability and triggers make the game ignore the fact, so the unit keeps on his merry way.
 

elmstfreddie

The Finglonger
Reaction score
203
Oh... Try using wind walk, I'm pretty sure wind walk doesn't cancel out your unit's orders. Then of course you just say duration 0, or maybe 0.01, because 0 sometimes makes it last forever.
 

Korolen

New User (Why do I keep getting those red bars?)
Reaction score
69
Oh... Try using wind walk, I'm pretty sure wind walk doesn't cancel out your unit's orders. Then of course you just say duration 0, or maybe 0.01, because 0 sometimes makes it last forever.
Ah, good point. I hadn't thought of that. Any other abilities that act like that? I am going to have more then one of these abilities on a unit at a time. I can think of Roar, Taunt, Divine Shield, and probably some other on/off abilities like Mana Shield. I can set the AoE on Roar and Taunt to minimum, and time on Divine Shield down, so those should work. +rep
 
I

IKilledKEnny

Guest
Didn't read the comments (in 5 min I need to go out, sorry) so hero is a typo trigger, I didn' copy it.

E: Unit is Attacked.
C: Attacking unit has The Buff.
A: Make attacking unit damage attacked unit dealing damage.
Remove The Buff from the attacking unit.
 

Korolen

New User (Why do I keep getting those red bars?)
Reaction score
69
After a bit, I thought of an easier and more elegant way to accomplish almost what I want: Searing Arrows, Cold Arrows, Frost Arrows, and Orb of Oblivion can all be used, by just turning their bonuses to nothing and triggering them. (In fact, some of these are prefect: Searing Arrows=Power Attack, Frost Arrows=Cripple, Orb of Oblivion=Smash)

Unfortunately, I am limited to four abilities (three if Frost Arrows is the same as Cold Arrows), as they may all occur on a single unit. I suppose if I could find a fifth one, I could make multiple abilities that map to the same trigger but use different base abilities, that are dynamically added so no unit has two of the same order IDs... but that would be a pain and it requires a fifth ability.

EDIT: Found Poison Arrows, to make a fifth one. Technically, this could enable as many abilities as I want ^_^
EDIT2: Found Black Arrow.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      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