HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Vexorian Hit point based Item Classification System

01-03-2004, 07:32 PM#1
Vexorian
Since the day I registered I saw a lot of threads about "How To make it so you can't carry more than 1 items of a class?", this map will hopefully help all those people.

- It uses hit points (So you can have a lot of different classes and use the other classification for other stuff)

- It uses the mod function : so you can have items with more than a class.

- It is incredibly easy to make new classes with their own name / item limit, wow this system is really flexible (look at it, please)
01-03-2004, 10:19 PM#2
Extrarius
That is an interesting way of doing it, but to me it seems like using the hp as bitflags would be easier than having to use primes.
02-19-2004, 11:23 PM#3
Xinlitik
Great system, using it in my map now :foot: . However, there's one bug. There seems to be a problem with item armor bonuses and your system. I couldn't say what causes.. I can just say that when an item is bought, the armor bonus it gives is not given until the item is manually dropped and picked up again.

Thanks
02-20-2004, 01:18 PM#4
Vexorian
that is really weird. l'll have to check it
02-20-2004, 10:30 PM#5
Xinlitik
Yeah, that's what I thought. :( I thought that maybe it was some Blizzard bug with custom items that were given a + armor that they hadnt had before... but it was buggy on a standard Ring of Protection, as well.

Thanks for checking, by the way.
02-21-2004, 11:04 PM#6
Vexorian
I tested and it doesn't happen, could you try to be incredibly more specific? like when it happened , wich patch and that stuff?
02-21-2004, 11:45 PM#7
Xinlitik
Latest FT patch.. 1.14b, I think.

Hero walks up to shop. Clicks Ring of Protection +3 (Ring is under an item section that allows up to 2 of them). Ring goes into inventory (there were no others of its type so it didnt rewrite). Armor bonus of hero: +0. Drop ring. Pick up ring. Armor bonus of hero: +3.

I'm 100% sure there were no other factors IE Faerie Fire.
02-22-2004, 09:39 PM#8
Vexorian
Were if it isn't caused by other factors it could be my system and patch 1.14b not liking each other (I use 1.13b). I'll have to make other people test though, I don't have an idea on what could be causing it (there are no known ways to change the bonus an item gives)
02-22-2004, 10:38 PM#9
Xinlitik
Hmmm how do you use 1.13b? Doesn't battlenet force you to DL? Or is it because you have a different country's version?
02-23-2004, 06:05 AM#10
Xinlitik
Oh. :( So do you ever play Warcraft or do you just post on the boards at work and work on maps at home?
11-07-2004, 11:25 AM#11
Guest
Hey, this is the my first message on this site (hi), I'm creating a small R.P.G. for my friends.
i used Lord Vexorian's code to create item restrictions(And it worked great), however now i need for a NPC in my rpg to be able to detect the number of items of one type i have in my heroes inventory and be able to remove them all. I have no idea how to program JASS. This will be the most complex my map is going to get, so it's pretty safe to call this a one off. Any help is much appreciated. Also if theres been alot of topics on this, if u can remember where to find it, can u link it here plz.
11-07-2004, 10:12 PM#12
Vexorian
Quote:
Originally Posted by xd.dunedain
Hey, this is the my first message on this site (hi), I'm creating a small R.P.G. for my friends.
i used Vexorian's code to create item restrictions(And it worked great), however now i need for a NPC in my rpg to be able to detect the number of items of one type i have in my heroes inventory and be able to remove them all. I have no idea how to program JASS. This will be the most complex my map is going to get, so it's pretty safe to call this a one off. Any help is much appreciated. Also if theres been alot of topics on this, if u can remember where to find it, can u link it here plz.
it is possible in GUI, but not easy, the life of the item must be a multiple of the number, right? then you just have to check if it is a multiple (doing it for every item in the inventory of the unit - for this you need a for loop from 1 to 6 checking each of the slot's items)

Now there is no way to get the maximum life of an item, but you can fool warcraft III , and set the life of an item to 10000000 ( a really big number) , then the life of the item will match its maximum life (by logic)

Now to know if a number is multiple of x number, you just need a modulo operation:

Integer comparission - MAth - modulo - Life of (item in slot Integer A for Triggering Unit) (Number of the classification) equal to 0