• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

About Ability Autocast

Status
Not open for further replies.
Level 3
Joined
Jan 1, 2013
Messages
43
anyone help me please...

how to make ability like morphling(dota) agility gain and strength gain, what base the spell??
 
Level 3
Joined
Jan 1, 2013
Messages
43
whether the channel can be autocast???

morphling agility gain/strength gain is autocast...

how i make channel to be autocast spell lika bloodlust???
 
Level 3
Joined
Jan 1, 2013
Messages
43
to trigger I do not mind, I want to know what base the spell...

it's so difficult.. -_-
 
Level 19
Joined
Aug 8, 2007
Messages
2,765
attribute bonus?

are you talking about a +str/agi buff? just make it inner fire and on cast give hero attribute bonus wait (dur of spell) than remove
 
Level 3
Joined
Jan 1, 2013
Messages
43
Use any autocast ablility with no target and no casting time. Thats all. Undead heal and replenish mana are good enought. You can just check if unit casts a spell. If there is no casting time, there is no time to stop :D

Yeah, i got it...

Thank's

:goblin_good_job::goblin_good_job::goblin_good_job:

SOLVED
 
Level 3
Joined
Jan 1, 2013
Messages
43
Use any autocast ablility with no target and no casting time. Thats all. Undead heal and replenish mana are good enought. You can just check if unit casts a spell. If there is no casting time, there is no time to stop :D

by the way, how to make it work???

i have to autocast the spell but the point of agility/strength not be change...

can you give me a trigger to make it work???

thank's

this is my trigger
Agility Gain
  • Events
    • Unit - A unit Starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to AGI
  • Actions
    • Set STR_PLUS = (Strength of (Triggering unit) (Exclude bonuses))
    • Set AGI_PLUS = (Agility of (Triggering unit) (Exclude bonuses))
    • Set AGI_STR_Add[0] = (2 x (Level of AGI for (Triggering unit)))
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (AGI_PLUS - AGI_STR_Add[0]) Greater than 0
        • (STR_PLUS - AGI_STR_Add[0]) Greater than 0
      • Then - Actions
        • Hero - Modify Agility of (Triggering unit): Add AGI_STR_Add[0]
        • Hero - Modify Strength of (Triggering unit): Subtract AGI_STR_Add[0]
      • Else - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (AGI_PLUS - AGI_STR_Add[0]) Less than or equal to 0
            • (STR_PLUS - AGI_STR_Add[0]) Greater than 0
          • Then - Actions
            • Hero - Modify Agility of (Triggering unit): Add AGI_STR_Add[0]
            • Hero - Modify Strength of (Triggering unit): Subtract AGI_STR_Add[0]
          • Else - Actions
Strength Gain
  • Events
    • Unit - A unit Starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to STR
  • Actions
    • Set STR_PLUS = (Strength of (Triggering unit) (Exclude bonuses))
    • Set AGI_PLUS = (Agility of (Triggering unit) (Exclude bonuses))
    • Set AGI_STR_Add[0] = (2 x (Level of AGI for (Triggering unit)))
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (STR_PLUS - AGI_STR_Add[0]) Greater than 0
        • (AGI_PLUS - AGI_STR_Add[0]) Greater than 0
      • Then - Actions
        • Hero - Modify Agility of (Triggering unit): Subtract AGI_STR_Add[0]
        • Hero - Modify Strength of (Triggering unit): Add AGI_STR_Add[0]
      • Else - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (STR_PLUS - AGI_STR_Add[0]) Less than or equal to 0
            • (AGI_PLUS - AGI_STR_Add[0]) Greater than 0
          • Then - Actions
            • Hero - Modify Strength of (Triggering unit): Add AGI_STR_Add[0]
            • Hero - Modify Agility of (Triggering unit): Subtract AGI_STR_Add[0]
          • Else - Actions

Learning the Spell
  • Events
    • Unit - A unit Learns a skill
  • Conditions
    • (Learned Hero Skill) Equal to AGI
  • Actions
    • Unit - Add STR to (Triggering unit)
    • Unit - Set level of STR for (Triggering unit) to (Level of AGI for (Triggering unit))
 
Last edited:
Level 9
Joined
Nov 19, 2011
Messages
516
Agility Gain
  • Events
    • Unit - A unit Starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to AGI
  • Actions
    • Set STR_PLUS = (Strength of (Triggering unit) (Exclude bonuses))
    • Set AGI_PLUS = (Agility of (Triggering unit) (Exclude bonuses))
    • Set AGI_STR_Add[0] = (2 x (Level of AGI for (Triggering unit)))
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (AGI_PLUS - AGI_STR_Add[0]) Greater than 0
        • (STR_PLUS - AGI_STR_Add[0]) Greater than 0
      • Then - Actions
        • Hero - Modify Agility of (Triggering unit): Add AGI_STR_Add[0]
        • Hero - Modify Strength of (Triggering unit): Subtract AGI_STR_Add[0]
      • Else - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (AGI_PLUS - AGI_STR_Add[0]) Less than or equal to 0
            • (STR_PLUS - AGI_STR_Add[0]) Greater than 0
          • Then - Actions
            • Hero - Modify Agility of (Triggering unit): Add AGI_STR_Add[0]
            • Hero - Modify Strength of (Triggering unit): Subtract AGI_STR_Add[0]
          • Else - Actions

If - Conditions
(AGI_PLUS - AGI_STR_Add[0]) Greater than 0
(STR_PLUS - AGI_STR_Add[0]) Greater than 0
//Note that there is hidden and command.
There is no need to check if agi - add is greater than 0. You are adding agi this time. That may be reason of why it not works.

e.g.
agi = 10
str = 20
skill level = 5

this way you will have enough str to substract, but trigger will not run (cause agi =< lvl * 2)

Same goes to second trigger.
 
Status
Not open for further replies.
Top