• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

+mana items question

Status
Not open for further replies.
Level 10
Joined
Apr 3, 2006
Messages
535
Is it possible to stop items with intelligence, giving +mana to certain hero?

I have a warrior based class that uses rage similar to WoW so I want its maximum mana to constantly stay at 100, my problem being if it picks up items with +mana or intelligence the maximum goes up. Is there a way to do this without having to manually trigger every item that has mana and make the hero drop it?
 
Unit picks item

if unit type is x

if item is x
- set int of hero to (int of hero - 3)

if item is y
- set int of hero to (int of hero - 4)


then when unit loses item, use +3, +4... and you can also use pendant of mana/energy with negative values to decrease base mana
 
super-sheep if i use that method i have to indivdually code that for literally hundreds of items which is what i kind of feared. adjsuting gameplayconstants as already stated effects all heroes so i cannot use that either.
 
Status
Not open for further replies.
Back
Top