K i made it where you pick up and an item and your heroes sub-class changes. heres my trigger. everythijng loads exept Atributes. anyone know y?
Code:
[COLOR="red"]Events[/COLOR]
Unit - A unit Acquires an item
[COLOR="Lime"]Conditions[/COLOR]
(Unit-type of (Hero manipulating item)) Equal to |c00FF8000Human|r
(Item-type of (Item being manipulated)) Equal to |c0000FF00Frozen Sword|r
[COLOR="Yellow"]Actions[/COLOR]
Set Items[1] = (Item-type of (Item carried by (Triggering unit) in slot 1))
Set Items[2] = (Item-type of (Item carried by (Triggering unit) in slot 2))
Set Items[3] = (Item-type of (Item carried by (Triggering unit) in slot 3))
Set Items[4] = (Item-type of (Item carried by (Triggering unit) in slot 4))
Set Items[5] = (Item-type of (Item carried by (Triggering unit) in slot 5))
Set Items[6] = (Item-type of (Item carried by (Triggering unit) in slot 6))
Set HeroAtributes[(Strength of (Hero manipulating item) (Exclude bonuses))] = 1
Set HeroAtributes[(Agility of (Hero manipulating item) (Exclude bonuses))] = 2
Set HeroAtributes[(Intelligence of (Hero manipulating item) (Exclude bonuses))] = 3
Set HeroXP[(Hero experience of (Hero manipulating item))] = 1
Wait 0.03 seconds
Unit - Replace (Triggering unit) with a |c00FF8000Blade|r using The old unit's relative life and mana
Wait 0.03 seconds
Hero - Create Items[1] and give it to (Triggering unit)
Hero - Create Items[2] and give it to (Triggering unit)
Hero - Create Items[3] and give it to (Triggering unit)
Hero - Create Items[4] and give it to (Triggering unit)
Hero - Create Items[5] and give it to (Triggering unit)
Hero - Create Items[6] and give it to (Triggering unit)
Wait 0.03 seconds
Hero - Modify Strength of (Triggering unit): Add HeroAtributes[1]
Hero - Modify Agility of (Triggering unit): Add HeroAtributes[2]
Hero - Modify Intelligence of (Triggering unit): Add HeroAtributes[3]
Wait 0.03 seconds
Hero - Set (Triggering unit) experience to HeroXP[1], Hide level-up graphics
Trigger - Turn off (This trigger)