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

[Trigger] Level Reducer ( help with make )

Status
Not open for further replies.
Level 4
Joined
Oct 8, 2010
Messages
37
anyone have an idea how to make that trigger?



So what i need is to make when dummy cast spell to reduce level of targeted hero and give that taken level on caster for 20 seconds and then all levels to be at normal. Any suggestions? rep for anyone who have idea how to make this.




THANKS

Best regards, ShadyBG :ogre_haosis:
 
Level 6
Joined
Jun 16, 2007
Messages
235
Create Tome of Retraining with Use Automatically When Acquired to true.
Force Feed it to hero.
Use UnitModifySkillPoints to remove one skill point.
Make it relearn all other abilities to old level except one random that will be penalized.
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
  • Untitled Trigger 016
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Holy Light
    • Actions
      • Custom script: local unit u = GetSpellTargetUnit()
      • Custom script: call UnitStripHeroLevel(u, 1)
      • Wait 5.00 seconds
      • Custom script: call SetHeroLevel(u, GetHeroLevel(u) + 1, false)
      • Custom script: set u = null
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
Somehow casting it on lvl 1 hero escaped my mind.

  • Untitled Trigger 016
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Holy Light
    • Actions
      • Custom script: local unit u = GetSpellTargetUnit()
      • Custom script: if GetHeroLevel(u) > 1 then
      • Custom script: call UnitStripHeroLevel(u, 1)
      • Wait 5.00 seconds
      • Custom script: call SetHeroLevel(u, GetHeroLevel(u) + 1, false)
      • Custom script: endif
      • Custom script: set u = null
One could abort the order when it is issued.
 
Last edited:
Level 4
Joined
Oct 8, 2010
Messages
37
Somehow casting it on lvl 1 hero escaped my mind.

  • Untitled Trigger 016
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Holy Light
    • Actions
      • Custom script: local unit u = GetSpellTargetUnit()
      • Custom script: if GetHeroLevel(u) > 1 then
      • Custom script: call UnitStripHeroLevel(u, 1)
      • Wait 5.00 seconds
      • Custom script: call SetHeroLevel(u, GetHeroLevel(u) + 1, false)
      • Custom script: endif
      • Custom script: set u = null
One could abort the order when it is issued.

Trigger worked, now i need only to make it to have 3 levels of use and will be perfect, thx to maker +rep !
 
Status
Not open for further replies.
Top