Armor modification

  • Thread starter Thread starter 1stlancer
  • Start date Start date
1

1stlancer

Guest
I'm looking for a trigger action that modifies the armor value of a unit, but I can't seem to find one. There are premade abilities that do modify armor, so I would imagine that the action exists... any help?
 
Well, I'm manually defining all of my abilities through triggers, so I'm trying to find an action akin to Unit - Set Life (value), except with armor instead of life. So no, not a buff, just a trigger action is what I'm looking for.
 
What are you trying to make the trigger for? Map initialization or when you buy something? As well as is it for heros or units?
 
Ok, detailed explanation time.

I want to make an ability for a hero that increases their armor for a limited amount of time, but it needs to be trigger based because the amount increased is based on a variable. If I just based the ability off of a premade WC3 ability, I would have to set finite values for the amount of armor increased. Thus, I need to use triggers to get the effect I want.

What I'm asking is if there is a way, using triggers, to modify a unit or hero's armor value. It would need to be an action, probably in the Unit or Hero category, but I can't find one. I'm just wondering if anyone else has happened across something I haven't.
 
I don't think there is one. I just looked at every Unit and Hero action trigger and nothing changes the armor value much less type or any such matter. Only str agil and intl.
 
I haven't. The closest I saw when looking for you was setting the Hero's agility to a higher number, which would indeed increase the armor. However, that would also increase attack speed, and I don't know/think you really want that too. What you CAN do, however, is create an ability that raises armor, like using the Inner Fire ability. You could give it to a dummy unit and have the dummy cast it on the whatever you need it cast on.

However, I believe dummy units require WEU. Not sure though.

-Edit-

On second thought, you may be able to do this without WEU if you do something like:

E: <Whatever you need it to be>
C: <Same>
A: Create 1 <Dummy unit> for <Neutral Passive, or something> at <Position of the unit it's going to be cast on, or something like that...>
Unit - Issue (last created unit) to cast <version of inner fire> on <whatever you need it to be cast on...>

It would be a little...No, really complex, but if you can't use WEU, like I couldn't (without it crashing when I tried to save...) then that's one way to get around it.
 
Someone please define WEU for me.

Oh, and once again, this needs to be trigger-based because it uses a variable in the armor increase. I have a variable called Strength which mimics the unit's strength attribute (duh) and the armor boost is a percentage of that stat.

There is the possibility that you can modify the attributes of an ability, basing them off of trigger variables, but I've never seen it done. If someone knows how to do this, then my problem would be solved.
 
WEU is World Editor Unlimited, a tool you can download from http://www.wc3sear.ch/index.php (go in Tools and look for WE Unlimted) to give you extra trigger options.

If you've saved the Hero/unit's armor in a variable, then why don't you just add 1 to the variable? That should raise the armor 1 point as well, shouldn't it? Or is my hood of noobness covering my eyes again? :P
 
Um. If my CS knowledge serves me correctly, that wouldn't work. Saving armor as a variable and then changing the variable wouldn't change the original value the variable came from (armor).
 
I have no clue what CS is, so I can't comment.

Have you tried it? No use simply kicking options to the side, at least give it a shot.
 
CS = Computer Science. Programming, deductive logic, understanding how computers think, etc.

I'll give it a shot anyhoo. Can't be any worse than the other things I've tried.
 
Just got WEU, it has some nice additions. I got what I wanted out of it, so problem solved. :)
 
You need to open WE Enhancer then open your map and then enable Advanced triggers. You can only change armor with Advanced triggers, and those require you to have it enabled. (Which will put down alot of variables and scripts into your map)
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Probably inflates their numbers so they look better to advertisers.
  • The Helper The Helper:
    Yeah google does not filter those bots. I remember when Apex was doing Google ads I saw the same IPs in there as I was seeing here - google is totally tracking all those bots as traffic and most google traffic, at least ours, was all bots
  • The Helper The Helper:
    oh wow, i bet i can post x links now and do the webp pics now giggity
  • The Helper The Helper:
    ahh anubis blocks anyone that has javascript turned off
  • The Helper The Helper:
    Robot: HTTP client library - i love the new robot :)
  • The Helper The Helper:
    New Science News Forum and it starts out with 420 threads :)
  • The Helper The Helper:
    Technical Support forum name changed To Technology News, there is now a Tech, sci/tech and science forums now :)
  • The Helper The Helper:
    Happy Saturday! Hope everyone has a fantastic weekend!
  • Ghan Ghan:
    We are now on Ubuntu 24.04. Had some issues with the style after the OS/PHP upgrade but now resolved.
    +1
  • Ghan Ghan:
    PHP 8.3 now live
    +1
  • The Helper The Helper:
    Weekend went by too fast. Next weekend I am going to try to do a nature thing - buddy of mine lives by the Colorado river and has some kayaks and invited me to do some kayaking from a place he knows to get on the river.
  • Ghan Ghan:
    That sounds like an adventure.
  • The Helper The Helper:
    400 users all online all looking at latest content
  • The Helper The Helper:
    I wonder how all these bots that sit on the lastest content page get passed anubis or maybe they did not but they are just registering on whos online
  • The Helper The Helper:
    showing up on whos online not registration
  • Ghan Ghan:
    The first gate is stopping all the bots that don't execute javascript.
  • Ghan Ghan:
    That's the main thing with Anubis - no Javascript, no site. Typically you can still get the site to load without Javascript.
  • The Helper The Helper:
    I remember the whole javascript thing, question - how many real people disable that?
  • The Helper The Helper:
    Hell I guess I could go back on the stats to know that - we probably capture that and we know the before and after
  • Ghan Ghan:
    Real users can't really disable Javascript anymore these days.
  • Ghan Ghan:
    The internet is broken without it.
  • Ghan Ghan:
    Bot readable, not human usable.
  • The Helper The Helper:
    got it
  • The Helper The Helper:
    Happy Thursday!
  • The Helper The Helper:
    Check out the new Featured Content feature we apparently got with the forum software upgrade! https://www.thehelper.net/featured/

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top