Changing Primary Atrribute

Avaleirra

Is back. Probably.
Reaction score
128
Hi I was wondering if it is possible to change the primary attribute of a hero? It would probably be custom script but if it is possible that would be great.

Thanks :)
 

Genkora

Frog blast the vent core!
Reaction score
92
yes, in the object editor, there should be an option to do so about 3/4s the way down.
 

Lobster

Old Fogey ofthe site
Reaction score
90
You could simulate it by making a unit jsut like it, then replacing it with the same items.
 

Avaleirra

Is back. Probably.
Reaction score
128
The problem is that I am using chaos to change the hero and I want the new unit to have a different primary attribute.
 

jig7c

Stop reading me...-statement
Reaction score
123
just give the new hero a different attribute in the object editor


if not:
Trigger:
  • unselect the hero
    • replace the new hero with different attribute hero after (duration of transformation + .01) seconds
    • select the hero for triggering player!!
 

Avaleirra

Is back. Probably.
Reaction score
128
/facepalm

I'm using chaos which stores all of the former unit's data. I have already tried the OE stuff. That's why I am asking :p.

And I don't think that action exists.
 

Happysmiley

New Member
Reaction score
22
Perhaps you should try another morphing ability? Like Druid Bear Form and then removing that ability from the unit
 

Avaleirra

Is back. Probably.
Reaction score
128
Does Druid bear form do the following things?

1) keep same items
2) replace the old unit with a new unit that has a different primary attribute
3) keep the same experience
4) keep the same abilities at the same level which they were at
 

HeX.16

Isn't Trollin You Right Now
Reaction score
131
1) Think so 80% sure
2) Im sure it can be done
3) Yes? 50% sure
4) Im not sure on this because ive only used it on units. But i would say yes.
 

Avaleirra

Is back. Probably.
Reaction score
128
I hope your right because if I implement this into my 36 triggers and they dont work I'm going to bust a nut. If it does work though then rep to both of you.
 

Avaleirra

Is back. Probably.
Reaction score
128
@Hex.16
I will

@SwedishChef
I did before. I couldn't get the abilities to be the same level so I didn't use that method.
 

Avaleirra

Is back. Probably.
Reaction score
128
It's not the cooldown I'm worried about. It's the fact that if I trigger it than the player has to relearn all of his abilities again.


Edit: nvm
 

HeX.16

Isn't Trollin You Right Now
Reaction score
131
Well in that thread he says how to set the level by giving some skill points and forcing the hero to learn the spell.
 

jig7c

Stop reading me...-statement
Reaction score
123
my idea

create 2 heroes, one hero with X attribute, and other with Y attribute, keep everything else the same...
Give both heroes the same abilities

Trigger:
  • Chaos
    • Events
      • A unit starts the effect of an ability
    • Conditions
      • Ability being cast equal to Chaos
    • Actions
      • Unit - Unselect (Triggering Unit)
      • Wait 1.00 seconds
      • Unit - Replace (Triggering Unit) with (Unit Y) //different hero with different primary attribute
      • Unit - Select (Last Created Unit) for (Owner of (Triggering Unit))
      • Unit - Set the level of Ability1 for (Last Created Unit) to Level of Ability1 for (Triggering Unit)
      • Unit - Set the level of Ability2 for (Last Created Unit) to Level of Ability2 for (Triggering Unit)
      • Unit - Set the level of Ability3 for (Last Created Unit) to Level of Ability3 for (Triggering Unit)
      • Unit - Set the level of Ability4 for (Last Created Unit) to Level of Ability4 for (Triggering Unit)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      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