[Spell] Mass Teleport Casting Delay Issue

KPC

KPC

Level 8
Joined
Jun 15, 2018
Messages
230
Hello, making the Archmage Mass Teleport 2 Level ability changing the Casting Delay for Level 2 does not work. Setting any value in Level 2 - Data - Casting Delay field has no effect on the ability. I discovered that Level 2 inherits this value from Level 1. In no way can I affect the change of the value between Level 1 and 2. Only the value set in this field for Level 1 applies to both.

This is the kind of ability I would like to create:
1753215188642.png

Setting the fields in this way does not have the intended effect:
1753215214570.png
 

Attachments

You could try tinkering with the new ability functions we got a while ago to change the level 1 value

  • Ability - Set Ability: (Unit: (Triggering unit)'s Ability with Ability Code: Mass Teleport)'s Real Level Field: Casting Delay ('Hmt2') of Level: 0 to 2.00
Dunno if it'll take effect if the ability isn't level 1 but it's worth a try
 
Last edited:
You could try tinkering with the new ability functions we got a while ago to change the level 1 value

  • Ability - Set Ability: (Unit: (Triggering unit)'s Ability with Ability Code: Mass Teleport)'s Real Level Field: Casting Delay ('Hmt2') of Level: 0 to 2.00
Dunno if it'll take effect if the ability isn't level 1 but it's worth a try
Unfortunately, this does not work.
 
How did you test it?

This trigger does not change anything; when I use the ability, I see that the casting delay is longer than the one I set.
  • Mass Teleport
    • Events
      • Unit - A unit Learns a skill
    • Conditions
    • Actions
      • Ability - Set Ability: (Unit: (Triggering unit)'s Ability with Ability Code: Mass Teleport)'s Real Level Field: Casting Delay ('Hmt2') of Level: 0 to 1.00
To make sure I did it right, I added a similar action for the integer field that changes the mana cost at the specified level and it works.
  • Actions
    • Ability - Set Ability: (Unit: (Triggering unit)'s Ability with Ability Code: Mass Teleport)'s Integer Level Field: Mana Cost ('amcs') of Level: 0 to 50
EDIT:
From what I tested, I was able to change other real fields such as Cast Range or Casting Time. However, these are from the Stats category (not Data, like Casting Delay). There was also no problem changing the Data category field - Number of Units Teleported.
 
Last edited:
How about this cheeky bugger? Its self explanatory.
  • MT Learn
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Mass Teleport
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Mass Teleport for Archmage 0001 <gen>) Equal to 2
        • Then - Actions
          • Unit - Add Mass Teleport 2 to Archmage 0001 <gen>
          • Unit - Add Engineering Upgrade to Archmage 0001 <gen>
          • Unit - Remove Engineering Upgrade from Archmage 0001 <gen>
          • Unit - Remove Mass Teleport 2 from Archmage 0001 <gen>
          • Unit - Set level of Mass Teleport for Archmage 0001 <gen> to 2
        • Else - Actions
Mass Teleport 2
Mass Teleport 2.PNG

Engingeering Upgrade

Engineering Upgrade.PNG
 

Attachments

How about this cheeky bugger? Its self explanatory.
  • MT Learn
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Mass Teleport
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Mass Teleport for Archmage 0001 <gen>) Equal to 2
        • Then - Actions
          • Unit - Add Mass Teleport 2 to Archmage 0001 <gen>
          • Unit - Add Engineering Upgrade to Archmage 0001 <gen>
          • Unit - Remove Engineering Upgrade from Archmage 0001 <gen>
          • Unit - Remove Mass Teleport 2 from Archmage 0001 <gen>
          • Unit - Set level of Mass Teleport for Archmage 0001 <gen> to 2
        • Else - Actions
Mass Teleport 2
View attachment 542872
Engingeering Upgrade

View attachment 542873
This solution is almost perfect. The only downside is that if someone has a Custom Key set for Mass Teleport, this hotkey will not be the same as the one set on Level 2.
 
Last edited:
This solution is almost perfect. The only downside is that if someone has a Custom Key set for Mass Teleport, this hotkey will not be the same as the one set on Level 2.
Are you sure? Its important its executed exactly like the trigger. When I change to a custom hotkey for Mass Teleport within wc3 it retains the same hotkey for level 2. The thing is if its executed like the trigger it stays the same ability as before and only changes, as far as I know, the Casting Delay.
 
  • Love
Reactions: KPC
Hmm, I think you're right. I thought that changing CustomKeys would only affect the original skill, but apparently it also works for its copies. Thank you very much, you solved my problem.
 
Back
Top