Warcraft III resources & community, 2003–2006 · archived

BagCE2.0+AtrSA1.1+SSA1.5

not rated
Submitted by weaaddarSystems407 downloads44 KB
Screenshot
Screenshot
-Bag CE is a system to increase a units inventory space by adding a containers api.

-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
BagAttrSSA.w3x
Author
weaaddar
Download

Comments

21
Yeah man ur a PRO in JASS!!! And if JASS didnt have the problem 1 thing to be missing and all the script goes to hell would be THX.
Moved to systems!

~Daelin
i dont know how to work with text triggers and have no clue what the codes do so i cant edit it to fit with my map..
what don't you get? can you not read the thread? It is after all only 17 posts and explains roughly everything.
I rellie dont get this... still lol.... can u give me ur email or sumthing and you can help me :D
Think I did. Hmm, will try again.

Edit: Got it. Thx for all the help and sorry for bothering you.
follow the instructions I gave a few posts down? Thats generally how you do it. You need to enable those first as they don't have any dependencies, but are used by other triggers. You then need to enable everything else (or enable non-event ones then enable the others)
Thx, so if to add more restricted items add just add more 'or's? I guess that will work. Thx for the help.

Edit: Oh, and also, where would one go about changing the number of stat points a hero gets per level?
Edit Again: Nvm found it was in the Atr Test trigger the action with custom text call 'Hero_enableAtr(udg_TESTHERO,6),' just had to change that last number worked perfectly. Also I had the disabling off all the triggers problem, (Yes, I did get all the variables) any one have an clue how to fix it?
I'll admit its not as easy as it should be, you currently need to edit the function which looks like this. Its found in Stack Screen trigger.

function IsRestrictedItem takes item it returns boolean
	if(IsItemBT(it) or GetItemTypeId(it)==IDBlank())then
		return true
	endif 
	return false
endfunction

You probably want to just add another conditional to it like

function IsRestrictedItem takes item it returns boolean
	if(IsItemBT(it) or GetItemTypeId(it)==IDBlank() or GetItemTypeId(it) == 'I003')then
		return true
	endif 
	return false
endfunction
where I003 is the item type you want to restrict, in the future I should probably make it easier, by just making you call a function like

call RestrictItem('I003') and that would automatically make it restricted instead of having to edit that function.


reset would be difficult and pointless, a better solution would be toleranced stats so that you can't screw up your character but still have a good feel of customization.
How do you add to restricted item list thing? I'm kinda a jass noob :D


Edit: Oh, and also if your looking for useful functions and stuff for this you can try making a reset button for attribute setter. As I said I'm a jass noob so not sure how you would go about this, but probably would be useful. (especially if you make it so it is easily toggled on and of in WE)

make sure you copy the variables too. Copy in the order it appears. If it disables the triggers, save the map and enable the config and RCCS trigger.

After that close worldeditor. Then enable the bag triggers from top to bottom, then the stack screen triggers, then the attributer triggers. Don't copy the test triggers as you need to manipulate those to the constraints of your map. I really doubt you have mr.testhero the paladin.
im kinda new to this, i copied and pasted the tirggers into my map, but when i try to save it. it disables the triggers
There are two of the three readmes in the thread, and one more in the map.

Whats the problem?
:( i dont know how to use this lol. is there a "Read Me" somewhere?
ok. And yes, if you have a good screenshot you'll get 200% more downloads here or something..
Adding a screenshot, (not new at all), it seems to have a magical effect of making my threads more popular.
When I have time, and probably part by part.

A DT4a equipment system is on a whole different scale of complexity. All the stuff present in this map is a joke in comparison.
Ok.. When will you include that?
It's intentional, you should be able to cancel out of the attributer screen in case you are attacked and need to use a potion or something. Reseting the stats mid attribution would require me to store them somewhere temporarly and wouldn't give you the effect instantly.

I guess it wouldn't be too hard to code that the stats boost is stored on the individual attribute icons. But if you exited by a nonconventional method, (like the DT4a equip screen, which isn't in this map, yet) It would be difficult for me to know what happened.
Wow, nice :) . If I were director (even though I don't want to be that) you would have received the DC now :) ..

Seriously really nice, I've got a few problems with DD systems but I managed to fix them by looking at your DD 4 a (yeah, older but this is even better)..

By the way, when you use the attibute and spends, lets say half of your attribute point, and press cancel it doesn't set the attribute to what they were before, I don't know if that's intentional or not.
Here is the new version, this resource is SIGNIFICANTLY DIFFERENT then the old ones, so if its possible can Vex or whoever just delete them as there are bugs in thier RCCS, which weren't detected without a taxing api like Bag.

I don't have images today :( the jass box doesn't like my email, so here it is incase you need to email me
[email protected]

|¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯|
|                                         Bag CE 2.0                                             |
|                                        by Weaaddar                                             |
|                                                                                                |
|________________________________________________________________________________________________| 
|                                         Description:                                           |
|                                         ¯¯¯¯¯¯¯¯¯¯¯¯                                           |
| Drag and Drop Project version .9 was the first public release of this system.                  |
| Since then there has been so many different versions of this system . But it is still roughly  |
| the same, you drag items to the bag to add them to it, and drag items to cancel to pull them   |
| out. Since .9, the code has been optimized tenfold, and it now uses  many generic methods      |
| (This is really awesome as it means when I port DT4a or Spellbook over I don't need to  have   |
| have so many new interactive methods), and it now supports multiple bags, and multiple bts     |
| (bag types). It also supports creqs, which allow you to define the conditions to which an item |
| may be added to a bag.For instance, you can create a potion bag that only can hold potions     |
| or whatever. This is the first version to use RCCS vW, and thanks to its heavy requirements of |
| the core subsystems I have discovered many bugs in RCCS. This was a fairly easy port, because  |
| DT4a A4 was so well optimized, that all I really had to do was make it use generic methods     |
| I also made it that the bag shows how many more items it can store, not how many it has.       |
|                                                                                                |
|                                        Requirements:                                           |
|                                        ¯¯¯¯¯¯¯¯¯¯¯¯¯                                           |
|  -Warcraft III: TFT v 1.17+                                                                    |
|  -RCCS v. W                                                                                    |
|                                                                                                |
|                                       Implementation:                                          |
|                                       ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯                                          |
| I suggest using WEU you to copy all the abilities over, other then that copy the triggers.     |
| In config make sure each ability and item is defined and set correctly, then simply create a BT|
| and place one on the map. The Bag Test trigger demonstrates how to create a BT                 |
|                                                                                                |
|                                         Changelog:                                             |
|                                         ¯¯¯¯¯¯¯¯¯¯                                             |
|__________                                                                                      |
| CE  2.0  |                                                                                     |
|¯¯¯¯¯¯¯¯¯¯                                                                                      |
| -First release.Supports stack screen and attributer.                                           |
|                                                                                                |
|________________________________________________________________________________________________|


|¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯|
|                                    Stack Screen Alpha 1.5                                      |
|                                        by Weaaddar                                             |
|                                                                                                |
|________________________________________________________________________________________________| 
|                                         Description:                                           |
|                                         ¯¯¯¯¯¯¯¯¯¯¯¯                                           |
| Stack Screen is a robust drag and drop item charge managment system. It allows in real time for|
| an end user to move item charges from one item to another of an equivical type, or to seperate |
| items into multiple stacks. This can be very beneficial for multiplayer games where you may    |
| want to only sell some potions, and not all the potions you have gathered. Or in a quest when  |
| you had to collect X items to give exactly X of them, instead of too many.                     |
|                                                                                                |
|                                        Requirements:                                           |
|                                        ¯¯¯¯¯¯¯¯¯¯¯¯¯                                           |
|  -Warcraft III: TFT v 1.17+                                                                    |
|  -RCCS v. W                                                                                    |
|                                                                                                |
|                                       Implementation:                                          |
|                                       ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯                                          |
| I suggest using WEU you to copy all the abilities over, other then that copy the triggers.     |
|                                                                                                |
|                                         Changelog:                                             |
|                                         ¯¯¯¯¯¯¯¯¯¯                                             |
|__________                                                                                      |
| Alpha 1.5|                                                                                     |
|¯¯¯¯¯¯¯¯¯¯                                                                                      |
| -Added support for stacking in containers. *                                                   |
| -Updated Restricted item list.                                                                 |
|                                                                                                |
|__________                                                                                      |
| Alpha 1.4|                                                                                     |
|¯¯¯¯¯¯¯¯¯¯                                                                                      |
| -Added an autostacker. Pickedup items are now stacked (note you still need a free slot to pick |
|  up a stackable item )                                                                         |
| -Switched back the system, it now transfers from old to new stack                              |
| -If you have not moved any charges, pressing finish will still transfer all charges over to the|
|  the new spot.                                                                                 |
|__________                                                                                      |
| Alpha 1.3|                                                                                     |
|¯¯¯¯¯¯¯¯¯¯                                                                                      |
| -Reversed system.It now assumes you were going to transfer everything and lets you add back    |
| to the old stack                                                                               |
| -Dragging a stack of any size to another of the same type combines the two piles,              |
| -Cancel is now undroppable.                                                                    |
|__________                                                                                      |
| Alpha 1.2|                                                                                     |
|¯¯¯¯¯¯¯¯¯¯                                                                                      |
| -Added a min threshold constant. When the charge count is less than minthreshold, the item will|
|  either just move to the new slot, or combine the two piles                                    |
| -Added compatibility with attributer SA.                                                       |
|__________                                                                                      |
| Alpha 1.1|                                                                                     |
|¯¯¯¯¯¯¯¯¯¯                                                                                      |
| -Optimized code. Now uses an internal IV, instead of numerous free referentials.               |
| -Add5 now moves all remaining charges, when the stack has less than 5.                         |
|__________                                                                                      |
| Alpha 1.0|                                                                                     |
|¯¯¯¯¯¯¯¯¯¯                                                                                      |
| -First release.                                                                                |
|                                                                                                |
|________________________________________________________________________________________________|

*Requires Bag CE 2.0, delete boxed code in Stack Order if you aren't using bag. Remember trigger
 order is important.