Warcraft III resources & community, 2003–2006 · archived

BagCE2.0+AtrSA1.1+SSA1.5 vC

not rated
Submitted by weaaddarSystems1,205 downloads42 KB
Screenshot
Screenshot
Compiled version

-Bag CE is a system to increase a units inventory space.

-Attributer SA allows you to chose your attributes you can per level through a very nice item based interface.

-Stack Screen Alpha is a robust item charge moving system.
File Name
BagAttrSSAvC.w3x
Author
weaaddar
Download

Comments

19
Limit the bags to only 1, how can you hold many full bags ??? Realsitic ?
MANN ITS NOT WORK :evil:
:!: 1.I CANT USE "TESTHERO" variable as UNIT-TYPE,i change variable as UNIT TYPE,i need it becouse my map like dota and heros are picked in tavern and after,we are plaing with this units,i no need to apply ATRIButes to especially unit,just for a unit of type... END I GET ERROR...
:!: 2.DONT WORK with INVENTORY SCREEN system -fucking errors,i dont know why! its stupid
:!: 3.i get a compile errors every time then i do testheros,its impossible,I NO NEED TO APPLY TO CONCRETE UNIT,i just want to apply it to some unit of type(with code A000)

:arrow: i am tired,its not working... cant apply with "hero of type",cant apply with another extended inventory system.
can you have more than 12 slots?

Actually Really good catch! I accidently put 12 as a hardcoded values. The quick fix is to replace Bag_use with this

Trig_Bag_Use_Actions takes nothing returns nothing
	local unit hero=GetManipulatingUnit()
	local item clicked=GetManipulatedItem()
	local item bag=Hero_getBag(hero)
	if(Hero_IV(hero)==null)then
		set hero=null
		set clicked=null
	endif
	if(Hero_getState(hero)==0)then
		if(IsItemBT(clicked))then
			call Hero_swapInv(hero)
			call Hero_setState(hero,74)
			call Hero_setBag(hero,clicked)
			call Bag_setPage(clicked,Hero_nextPage(hero,Bag_IV(clicked),Bag_getPage(clicked),false))
			call SetItemCharges(UnitItemInSlot(hero,5),Hero_getFree(hero) )
			call SetItemCharges(clicked,IV_capacity(Bag_IV(clicked))-Vector_size(Bag_IV(clicked)) )
			call Hero_setState(hero,-2)
		endif
	elseif(Hero_getState(hero)==-2)then
		if(clicked==Hero_getCancel(hero))then
			call Hero_setState(hero,74)
			call Bag_setPage(bag,0)
			call Hero_clearInv(hero)
			call Hero_swapInv(hero)
			call Hero_setState(hero,0)
		elseif(clicked==Hero_getNext(hero))then
			call Hero_setState(hero,74)
			call Hero_clearInv(hero)
			call Bag_setPage(bag,Hero_nextPage(hero,Bag_IV(bag),Bag_getPage(bag),false))
			call Hero_setState(hero,-2)
		elseif(IsItemBT(clicked))then
			call SimError(GetOwningPlayer(hero),"You cannot use a container inside a container")
			call SetItemCharges(clicked,IV_capacity(Bag_IV(clicked))-Vector_size(Bag_IV(clicked)) )				
		endif
	endif
endfunction
I dont know if i explained what was wrong correctly... but i'll try again. i do following:
  call CreateBT('I00C',8,Condition(function NoCreq))
then when i test map, it shows 8 slots(as it was meant to do). BUT, when i put an item into the bag,opens the bag, and then closes it. it shows that it has 11 slots back when it actually only got 7 left.... :cry: about the cancel button dragging:
I know that you can drag an item to the cancel button, if you want to put an item back to inventory, but i meant, if you FIRST right-click the cancel button, and then on another item, then the cancel button does switch position with the other item........ :x
(and again, sry for my bad english)

i hope this explained what i meant. :?
Right, the limit has to be a multiple of four. No ifs and or buts. 8 will work, 12 will work, but 10 will not.
Its simply easier to keep it a round value, I'm not sure if its a quick fix either so it'll probably be never implemented.

It shouldn't cuase issues to drag the cancel button. Its unfortuantly neccessary as a means to remove items from the bag. I could try the drop on itself method of removing itself from the bag.
I dont know if its a bug, or just something i did wrong, but when i try to edit the capacity of a bag, something strange happens.... when i open and close the bag, it shows that it has 12 slots, when i made it only have 10. :(
i also found another bug. you can drag the cancel button... this can cause a LOT of bugs to happen.
(sry for my bad english..)
You have to edit the config function to make sure all the functions are pointing to the right items. Also, try to copy RCCS v W save close we. Then copy config save close we Then copy the trigger blocks close we.
#ff0000 nice :P
I get compile errors whenever I try to copy.
All i want is the Attribute system but when i copy everything over for it, when i level, i click on the Attribute icon and all the icons are not in the right place. There is even a icon of a bag... 2 of the icons upgrade your agility and 1 of them for the strength, nothing for int. can u help me? do i need to change something
It not works in my map !!!!!!
it not works with Inventory Screen that i am using in my map.
i want only the attribute and it get a lot of Errors!!
plzz help me !!!!!!! :twisted: :evil: :(
i would also like to know if it's multiplayer capatable
Ill assume this is capable of having the old Dt4a a4 Equip and ATR system right? On that note, this is also possible to have 3 or 4 different bags with different sized containers?
And if it is a system, why didn't you post it in the systems cattegory? Moved!

~Daelin
Is this extra inventory multi-player compatible?
this is awesome...i have to try it out!
Just want to say what great systems. Very easy to implement, I love them. Thanks for the hard work!
This is an easier to add to a map version of my Bag, SSA, ASA systems. Essientially everything is compiled into trigger blocks so all you have to do is pick the system you want and add it. (you still need config and RCCS vW)