HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Equipment System

07-09-2006, 10:17 PM#1
refl3ction
for my campaign i am going to use a equipment system that uses an invisible heroe and item catagorization but i want to know these things:

1 when the item is in the equipment heroe's inventory, how do i transfer the effects of each item to the actuall hero?
2 when the item is in the hero's(non-equipment) inventory how do i remove all effects by that item?
3 how do i change the background image of the inventory box for one unit?(if possible)
4 how do i transfer items to the equipment hero wihout being right next to the equipment hero?

just alittle info on this:
While the heroe is travelling, he kills a monster and the monster drops a sword, the hero picks up the sword. (the sword is now in his inventory) in order to equip the sword (the player needs to right click and drag the sword over to the picture of the equipment hero on the left side of the screen) when the sword is in the equipment heore's inventory a sword attachment is created to the hero and a damage bonus is added (if there is a different weapon already in the equipment(of the same catagorie) the weapon is replaced by the new weapon)

thanks to ne1 that can help :)
07-09-2006, 10:56 PM#2
shadow1500
Quote:
1 when the item is in the equipment heroe's inventory, how do i transfer the effects of each item to the actuall hero?
You must load the effects of each item to a database, and when the item is equiped to the equipment inventory, apply those effects to the unit (i.e add the item abilities to the unit), when the item is unequiped, remove the effects.

Quote:
2 when the item is in the hero's(non-equipment) inventory how do i remove all effects by that item?
Read response to #1.

Quote:
3 how do i change the background image of the inventory box for one unit?(if possible)
Not possible, you will have to use dummy "No Item" items for that.

Quote:
4 how do i transfer items to the equipment hero wihout being right next to the equipment hero?
You can move the equipment hero every few seconds to the main hero, or you can detect when the main hero tries to give an item to the equipment hero, and then instantly transfer that item.
07-09-2006, 11:13 PM#3
PipeDream
Check out some of the existing systems implemented by WC3C members. Chances are you can find one that does what you need.
- Weaaddar's
- Thunder Eye's
- Weaaddar's older stuff
- Vex's
07-10-2006, 04:02 AM#4
refl3ction
but shadow, for isle at war the equipment boxes has pics in the background
07-10-2006, 12:18 PM#5
shadow1500
The backround pics are dummy items, i said this in my post:
Quote:
Not possible, you will have to use dummy "No Item" items for that.
07-10-2006, 04:49 PM#6
refl3ction
hmm
i guess il give everthin a shot thanks
07-10-2006, 05:31 PM#7
PipeDream
The background images are part of the user interface. As far as I know you can override the image.