• 🏆 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!

[Spell] Need help with easy spell

Status
Not open for further replies.
Level 2
Joined
Apr 6, 2011
Messages
13
'sup guys.I need fast help with this spell:

So basically I need unit to cast divine shield then he obtains +50 str attribute bonus and after divine shield ends unit looses attribute bonus.

What I don't know is how to remove the attribute bonus from unit.I can easily do
  • Modify Strength of hero: Add 50
but how to remove it? :eekani:
 
Level 17
Joined
Nov 13, 2006
Messages
1,814
'sup guys.I need fast help with this spell:

So basically I need unit to cast divine shield then he obtains +50 str attribute bonus and after divine shield ends unit looses attribute bonus.

What I don't know is how to remove the attribute bonus from unit.I can easily do
  • Modify Strength of hero: Add 50
but how to remove it? :eekani:

u can choose from 3 :p

  • Hero - Modify Strength of (Triggering unit): Subtract 10
  • Hero - Modify Strength of (Triggering unit): Add -10
  • Hero - Modify Strength of (Triggering unit): Set to ((Strength of (Triggering unit) (Exclude bonuses)) - 10)
 
Level 2
Joined
Apr 6, 2011
Messages
13
event or action?
whatever i updated my post

ok so here's the deal

  • Events - A unit begins cast to ability
  • Conditions - Ability begin to cast equal to Divine shield
  • Hero - Modify Strengh of (casting unit): Add 50
What I should do to remove this bonus after spell ends ? (5 sec)
 
Level 17
Joined
Nov 13, 2006
Messages
1,814
ok so here's the deal

  • Events - A unit begins cast to ability
  • Conditions - Ability begin to cast equal to Divine shield
  • Hero - Modify Strengh of (casting unit): Add 50
What I should do to remove this bonus after spell ends ? (5 sec)

right click to ur trigger, Copy As Text, and put between
tag, because more readable

  • Untitled Trigger 001
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Divine Shield
    • Actions
      • Hero - Modify Strength of (Triggering unit): Add 50
      • Wait 5.00 seconds
      • Hero - Modify Strength of (Triggering unit): Subtract 50
that action is same than that action where u Add (it is blue when u create that action in trigger editor) just change Add to Subtract :)
 
Level 2
Joined
Apr 6, 2011
Messages
13
that action is same than that action where u Add (it is blue when u create that action in trigger editor) just change Add to Subtract :)

Thanks alot! I totally forgot about "wait" :ogre_icwydt: + rep to you kind sir
 
Status
Not open for further replies.
Top