Slayerxx
You can change this now in User CP.
- Reaction score
- 3
Hey all, So This custom hero i started a while ago, i have come back to i reviewed what i had did and most of it is good though here is the issues.
So i started work on the Second Skill - "Change Hero Attack Stance" as the name suggests it changes the attack stance, in this case it switch's the hero "Human - Arthas" to hero "Human - Arthas(frostmourne)" these to models are the base for each attack stance.
The ability it self works fine, it switches the hero's back and forth, with the right hp and manna xp etc Percentage, though here is the issues. If a skill is level 0-1 (eg not learnt or has one point in it) It will carry over right when the attack stance is changed, (replacing the unit, and resetting sats). Though when any skill has is level 2 or more, when you change attack stance the level of the unit will change, but the skill will reset to level 1 and the excess points, are added to unspent, hero point counter.
For example, I train, and level my hero to level 2, taking my 1st point, in attack stance, and 2nd, in Devotion Aura. When i change my attack stance my skills, level will all carry over and level correctly. Now i now level to 3, and point a point, in Devotion Aura. leaving, my Skills at 0/1/2/0. When i change my attack stance, It changes the unit, and carrys the learnt skills over, and health and mana percentages. though now i will be level 4 with 1 unspent skill point, and my skills will be 0/1/1/0.
First here is all my custom trigger data.
Trigger - Set Spells
Trigger - Hero Level
Trigger - Spell Levels
Trigger - Change Stance (Believe Issue is here somewhere)
I Started, A new Trigger set using Game Cache though stopped as i thought i had the issue solved. I tried. Different reference types for setting and assigning skill levels, and such.
If required, i can add a link for map download. Thanks You
So i started work on the Second Skill - "Change Hero Attack Stance" as the name suggests it changes the attack stance, in this case it switch's the hero "Human - Arthas" to hero "Human - Arthas(frostmourne)" these to models are the base for each attack stance.
The ability it self works fine, it switches the hero's back and forth, with the right hp and manna xp etc Percentage, though here is the issues. If a skill is level 0-1 (eg not learnt or has one point in it) It will carry over right when the attack stance is changed, (replacing the unit, and resetting sats). Though when any skill has is level 2 or more, when you change attack stance the level of the unit will change, but the skill will reset to level 1 and the excess points, are added to unspent, hero point counter.
For example, I train, and level my hero to level 2, taking my 1st point, in attack stance, and 2nd, in Devotion Aura. When i change my attack stance my skills, level will all carry over and level correctly. Now i now level to 3, and point a point, in Devotion Aura. leaving, my Skills at 0/1/2/0. When i change my attack stance, It changes the unit, and carrys the learnt skills over, and health and mana percentages. though now i will be level 4 with 1 unspent skill point, and my skills will be 0/1/1/0.
First here is all my custom trigger data.
Trigger - Set Spells
Trigger:
- Set Spells
- Events
- Unit - A unit Finishes training a unit
- Conditions
- (Unit-type of (Trained unit)) Equal to Arthas - Slow Strong
- Actions
- Set Hero_Level = (Hero level of (Trained unit))
- Set Hero_Spells[0] = Holy Light
- Set Hero_Spells_Level[0] = 0
- Set Hero_Spells[1] = Attack Stance Change
- Set Hero_Spells_Level[1] = 0
- Set Hero_Spells[2] = Devotion Aura
- Set Hero_Spells_Level[2] = 0
- Set Hero_Spells[3] = Resurrection
- Set Hero_Spells_Level[3] = 0
- Set USlow_Strong_Hero = (Trained unit)
- Unit - Create 1 Arthas - Fast Weak for (Owner of (Trained unit)) at ((Position of (Trained unit)) offset by (100.00, 100.00)) facing Default building facing degrees
- Set UFast_Weak_Hero = (Last created unit)
- Unit - Remove (Last created unit) from the game
- Wait 2.00 seconds
- Game - Display to (All players) the text: Use The Lever To Te...
- Cinematic - Ping minimap for (All players) at (Position of Lever 0000 <gen>) for 5.00 seconds
- Events
Trigger - Hero Level
Trigger:
- Hero Level
- Events
- Unit - A unit Gains a level
- Conditions
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Leveling Hero) Equal to UFast_Weak_Hero
- Then - Actions
- Set Hero_Level = (Hero level of (Leveling Hero))
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Leveling Hero) Equal to USlow_Strong_Hero
- Then - Actions
- Set Hero_Level = (Hero level of (Leveling Hero))
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
Trigger - Spell Levels
Trigger:
- Spell Levels
- Events
- Unit - A unit Learns a skill
- Conditions
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Learning Hero) Equal to USlow_Strong_Hero
- Then - Actions
- -------- Hero Skill 0 --------
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Learned Hero Skill) Equal to Holy Light
- Then - Actions
- Set Hero_Spells_Level[0] = (Learned skill level)
- Else - Actions
- If - Conditions
- -------- Hero Skill 1 --------
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Learned Hero Skill) Equal to Attack Stance Change
- Then - Actions
- Set Hero_Spells_Level[1] = (Learned skill level)
- Else - Actions
- If - Conditions
- -------- Hero Skill 2 --------
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Learned Hero Skill) Equal to Human Paladin - Devotion Aura
- Then - Actions
- Set Hero_Spells_Level[2] = (Learned skill level)
- Else - Actions
- If - Conditions
- -------- Hero Skill 3 --------
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Learned Hero Skill) Equal to Human Paladin - Resurrection
- Then - Actions
- Set Hero_Spells_Level[3] = (Learned skill level)
- Else - Actions
- If - Conditions
- Set USlow_Strong_Hero = (Learning Hero)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Learning Hero) Equal to UFast_Weak_Hero
- Then - Actions
- -------- Hero Skill 0 --------
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Learned Hero Skill) Equal to Human Paladin - Holy Light
- Then - Actions
- Set Hero_Spells_Level[0] = (Learned skill level)
- Else - Actions
- If - Conditions
- -------- Hero Skill 1 --------
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Learned Hero Skill) Equal to Attack Stance Change
- Then - Actions
- Set Hero_Spells_Level[1] = (Learned skill level)
- Else - Actions
- If - Conditions
- -------- Hero Skill 2 --------
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Learned Hero Skill) Equal to Human Paladin - Devotion Aura
- Then - Actions
- Set Hero_Spells_Level[2] = (Learned skill level)
- Else - Actions
- If - Conditions
- -------- Hero Skill 3 --------
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Learned Hero Skill) Equal to Human Paladin - Resurrection
- Then - Actions
- Set Hero_Spells_Level[3] = (Learned skill level)
- Else - Actions
- If - Conditions
- Set UFast_Weak_Hero = (Learning Hero)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
Trigger - Change Stance (Believe Issue is here somewhere)
Trigger:
- Change Stance
- Events
- Unit - A unit Begins casting an ability
- Conditions
- (Ability being cast) Equal to Attack Stance Change
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Casting unit) Equal to UFast_Weak_Hero
- Then - Actions
- Unit - Replace (Casting unit) with a Arthas - Slow Strong using The old unit's relative life and mana
- Hero - Set (Last replaced unit) Hero-level to Hero_Level, Hide level-up graphics
- Set USlow_Strong_Hero = (Last replaced unit)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Hero_Spells[0] for (Casting unit)) Greater than 0
- Then - Actions
- Hero - Learn skill for USlow_Strong_Hero: Human Paladin - Holy Light
- Unit - Set level of Hero_Spells[0] for USlow_Strong_Hero to Hero_Spells_Level[0]
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Hero_Spells[1] for (Casting unit)) Greater than 0
- Then - Actions
- Hero - Learn skill for USlow_Strong_Hero: Attack Stance Change
- Unit - Set level of Hero_Spells[1] for USlow_Strong_Hero to Hero_Spells_Level[1]
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Hero_Spells[2] for (Casting unit)) Greater than 0
- Then - Actions
- Hero - Learn skill for USlow_Strong_Hero: Human Paladin - Devotion Aura
- Unit - Set level of Hero_Spells[2] for USlow_Strong_Hero to Hero_Spells_Level[2]
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Hero_Spells[3] for (Casting unit)) Greater than 0
- Then - Actions
- Hero - Learn skill for USlow_Strong_Hero: Human Paladin - Resurrection
- Unit - Set level of Hero_Spells[3] for USlow_Strong_Hero to Hero_Spells_Level[3]
- Else - Actions
- If - Conditions
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Casting unit) Equal to USlow_Strong_Hero
- Then - Actions
- Unit - Replace (Casting unit) with a Arthas - Fast Weak using The old unit's relative life and mana
- Hero - Set (Last replaced unit) Hero-level to Hero_Level, Hide level-up graphics
- Set UFast_Weak_Hero = (Last replaced unit)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Hero_Spells[0] for (Casting unit)) Greater than 0
- Then - Actions
- Hero - Learn skill for UFast_Weak_Hero: Human Paladin - Holy Light
- Unit - Set level of Hero_Spells[0] for UFast_Weak_Hero to Hero_Spells_Level[0]
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Hero_Spells[1] for (Casting unit)) Greater than 0
- Then - Actions
- Hero - Learn skill for UFast_Weak_Hero: Attack Stance Change
- Unit - Set level of Hero_Spells[1] for UFast_Weak_Hero to Hero_Spells_Level[1]
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Hero_Spells[2] for (Casting unit)) Greater than 0
- Then - Actions
- Hero - Learn skill for UFast_Weak_Hero: Human Paladin - Devotion Aura
- Unit - Set level of Hero_Spells[2] for UFast_Weak_Hero to Hero_Spells_Level[2]
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Hero_Spells[3] for (Casting unit)) Greater than 0
- Then - Actions
- Hero - Learn skill for UFast_Weak_Hero: Human Paladin - Resurrection
- Unit - Set level of Hero_Spells[3] for UFast_Weak_Hero to Hero_Spells_Level[3]
- Else - Actions
- If - Conditions
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
I Started, A new Trigger set using Game Cache though stopped as i thought i had the issue solved. I tried. Different reference types for setting and assigning skill levels, and such.
If required, i can add a link for map download. Thanks You