• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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,243
  • 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,243
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