True or False? (an item question)

Rare_Yeoman

Cool Member
Reaction score
1
Is it possible to have an item change a unit's attack?

for example: The default hero's attack is 1-3 dmg, he picks up an item (sword), and his attack become 1-8 dmg, and if he picks up an axe, 1-10dmg

And if this is possible, is it possible to have the item change the units attack type, as in from normal to piercing?
 

Whoareyou.

New Member
Reaction score
24
I believe it is so because I know a map that you click an item you change to that attack type and change damage, forgot which one o_o.
Probably not possible to just hold the item.
 

Rare_Yeoman

Cool Member
Reaction score
1
hmm, What if I use the chaos ability so that when the hero picks up the item they are changed into a differnt unit, would that be possible?
 

tommerbob

Minecraft. :D
Reaction score
110
hmm, What if I use the chaos ability so that when the hero picks up the item they are changed into a differnt unit, would that be possible?

Yes but as far as I know, you cannot revert changes made with the Chaos ability.
 

Happy

Well-Known Member
Reaction score
71
i think its done by several "versions" of the hero an replacing it after picking up.
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
a unit can only have 2 attacks, that makes 2 different versions of attack types or dice roles. you can enable and disable attacks using any "orb" ability.

another possibility to change the attack type is the war club ability (mountain giant) but this needs a destructible. you could use a dummy destructible created for just this purpose at the position of the unit though to make the effect apply nearly instant.

having different versions of the hero works as well. the "chaos" ability is best to use to morph one unit into a different unit types. its benefits are that exp, items in the inventory, hp, mp, buffs, and everything else will still apply for the morphed unit. this is not possible by replacing the unit manually, at least not the buffs.
however there is one major drawback of the chaos ability (at least it was at the time i was actively working with the editor) if you morph one hero into an other one it works fine, but if you every morph it back to the first one it will start to bug. the base attribute bonuses will be applied twice. example:
your hero number 1 has 12 strength on lvl 1.
you morph him to hero number 2 with 17 strength at lvl 1.
the strength will still be 12 and not 17 because you used the chaos ability and it keeps stats.
you morph him back to hero number 1, he will still have 12 strength, but the hitpoint bonus of 12*50 will become 24*50 and his hp will grow larger and larger with every time you morph him again into this unit type.


bad for you, what to do?
another possibility would be to use the metamorphosis skill of the demon hunter and make the morphosis permanent. might work, might bug same way as chaos i dont know.

replacing the heroes however is a bad decision in my opinion, this will lead to an exploit in your map, changing the attack type by simply dropping an item will remove all buffs from your hero. buffs like cripple or poison. perfect pvp killer.
 

Rare_Yeoman

Cool Member
Reaction score
1
This was very helpful information. Is there anyway around that bug? Like what if you added a trigger after it that lowered the atributes back to normal, or are there other bugs invovled?
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
the attributes arent increased, only their effect is added but the last time i tested this was over a year in the past, might have been fixed since but on the other hand, probably its not.

and besides this little drawback chaos really is the best way to achieve this in my opinion. if you think about it, this ability is used in the orc campaign to morph the normal orc units (including the hero hellscream) into the chaos orc units. its designed to do exactly this job.
 

Rare_Yeoman

Cool Member
Reaction score
1
I did a test using chaos, and the stats didnt get messed up, so thats what im going to use if i can only figure out how to make a trigger to use chaos when a hero picks up or drops a particular item.

thanks for the help
 
General chit-chat
Help Users

      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