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

+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?
 
Level 20
Joined
Oct 21, 2006
Messages
3,231
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
 
Level 10
Joined
Apr 3, 2006
Messages
535
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.
Top