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

Prevent stat bonus?

Status
Not open for further replies.
Level 20
Joined
Jul 14, 2011
Messages
3,213
Reduce the Intelligence by the same amount the item bonus increases it. It can be done with triggers or replacing the item with a null one. You can also prevent the unit from acquiring items which gives int.
 
Level 10
Joined
Aug 14, 2009
Messages
309
Another solution to your problem might be to not allow your Warrior-class to be able to equip those items.

Just make a trigger that triggers on item acquired event. Check if the unit that gets the item is a warrior and if the item is of the item-type that gives intelligence. Then make the warrior drop the item.
 
Level 5
Joined
Aug 27, 2008
Messages
127
Or you can customize the stat bonuses so you can freely determine which units can obtain such bonus

or customize the rage system, like using a variable to store rage rather than using mana

How can I customize the stat bonus in such a way, so certain units won't obtain its bonus?

Anyways guys, I have very minimal knowledge in JASS, so no Jass, but good advice.

I am thinking of replacing the mana cost with a bigger cooldown.
 
Level 5
Joined
Aug 27, 2008
Messages
127
well, basically you will create something similar to an equipment system....

I think it will be easier if you will just make the unit unable to pick up the items with int bonus... or customize rage so that mana != rage

Yeah I guess, but that would make the map way too much complex. I'd like to keep things simple at least for now. I decided to remove mana costs for warriors. Thanks for the ideas to all, I would use them later in my map. I am thinking of doing a Every One Second - Replace unit mana with RAGE (variable for each player). Something like that.
 
Level 25
Joined
May 11, 2007
Messages
4,650
Create custom items that don't give intelligence or only use items that don't give intelligence?

or remove the intelligence bonus the items give.
Far faster than doing triggering in a choppy way :)
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
It can be done with triggers or replacing the item with a null one.
He already said "creating new items will be too much work"

You can also prevent the unit from acquiring items which gives int.
This system intended only to prevent a unit gets an INT bonus from an item. What if the item has +INT ability AND other bonus ability attach to it ? (hey, an item can have a max of 4 abilities attach to it) You would simply prevent it from obtaining the item ? That's discrimination lol (he wants that other bonus ability, not the +INT) but because you said to prevent, he gets nothing at all

Another solution to your problem might be to not allow your Warrior-class to be able to equip those items.

Just make a trigger that triggers on item acquired event. Check if the unit that gets the item is a warrior and if the item is of the item-type that gives intelligence. Then make the warrior drop the item.
Same applied with above
 

Br0

Br0

Level 4
Joined
May 4, 2012
Messages
102
He already said "creating new items will be too much work"


This system intended only to prevent a unit gets an INT bonus from an item. What if the item has +INT ability AND other bonus ability attach to it ? (hey, an item can have a max of 4 abilities attach to it) You would simply prevent it from obtaining the item ? That's discrimination lol (he wants that other bonus ability, not the +INT) but because you said to prevent, he gets nothing at all


Same applied with above

I am wondering if your just pointing out the obvious or trying to point it out for others so they don't re-post? No matter, still helpful defskull. How come nobody downloads the map to see if this question/post has already been solved?
 
Status
Not open for further replies.
Top