• 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.

Max Mana bonus every cast through triggers

Status
Not open for further replies.
Level 10
Joined
Mar 17, 2012
Messages
582
Hi everyone! I decided to make a hero ability that gives caster bonus 5\10\15\20 MAX mana every time he casts this spell.

(item mana bonus does not work ^^,)

Can some smart GUI master help me to solve this problem?)
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
Just so you know how Defskull's system works (maybe, haven't checked it out - sorry <3): it either abuses a bug in Warcraft, or it uses binary stuff (you can create all numbers with the binary system - and with prime numbers, and fibonacci numbers and all that, but binary is easier to use :p).

The easiest (in your case) is to abuse the bug.
1) Create an ability based on "Item Mana Bonus" (now I know you said it didn't work, easy! It will soon enough :D).
2) Give the ability 2 levels, set level 1 to +5 mana, set level 2 to +0 mana.
3) Use this trigger:
  • Unit - Add Item Mana Bonus (Custom) to Hero
  • Unit - Increase level of Item Mana Bonus (Custom) for Hero
  • Unit - Remove Item Mana Bonus (Custom) from Hero
The bug goes as follows: levels don't work for the mana and HP bonus abilities. They only get HP/mana according to the first level (which is 5, so the max mana increases by 5).
However, when the ability is removed, it will remove the amount of mana for the current spell level (since at level 2 the ability gives +0 mana, 0 mana is removed).
Do this every time you wish to add 5 mana.

You can use
  • For each (Integer A) from 1 to (Level of Spell for (Triggering unit)), do (Actions)
    • Loop - Actions
      • Unit - Add Item Mana Bonus (Custom) to (Triggering unit)
      • Unit - Increase level of Item Mana Bonus (Custom) for (Triggering unit)
      • Unit - Remove Item Mana Bonus (Custom) from (Triggering unit)
To give the right amount of mana according to the spell's level.
 
Level 10
Joined
Mar 17, 2012
Messages
582
Just so you know how Defskull's system works (maybe, haven't checked it out - sorry <3): it either abuses a bug in Warcraft, or it uses binary stuff (you can create all numbers with the binary system - and with prime numbers, and fibonacci numbers and all that, but binary is easier to use :p).

The easiest (in your case) is to abuse the bug.
1) Create an ability based on "Item Mana Bonus" (now I know you said it didn't work, easy! It will soon enough :D).
2) Give the ability 2 levels, set level 1 to +5 mana, set level 2 to +0 mana.
3) Use this trigger:
  • Unit - Add Item Mana Bonus (Custom) to Hero
  • Unit - Increase level of Item Mana Bonus (Custom) for Hero
  • Unit - Remove Item Mana Bonus (Custom) from Hero
The bug goes as follows: levels don't work for the mana and HP bonus abilities. They only get HP/mana according to the first level (which is 5, so the max mana increases by 5).
However, when the ability is removed, it will remove the amount of mana for the current spell level (since at level 2 the ability gives +0 mana, 0 mana is removed).
Do this every time you wish to add 5 mana.

You can use
  • For each (Integer A) from 1 to (Level of Spell for (Triggering unit)), do (Actions)
    • Loop - Actions
      • Unit - Add Item Mana Bonus (Custom) to (Triggering unit)
      • Unit - Increase level of Item Mana Bonus (Custom) for (Triggering unit)
      • Unit - Remove Item Mana Bonus (Custom) from (Triggering unit)
To give the right amount of mana according to the spell's level.

Thank You very much! didn't know that bug!))) here you go +rep :goblin_yeah:
 
Status
Not open for further replies.
Top