HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

weaaddar's Bag Demo and Attributer

06-13-2005, 09:07 PM#1
Im_Uber.
I am trying to use weaaddar's attributer and bag demo (more just the attributer, but I don't really understand them much so I just put them both in). I have it in my map fine, and it works, but only for preplaced units specified in this trigger:
Code:
Events
    Time - Elapsed game time is 0.00 seconds
Actions
    Custom script:   set bj_wantDestroyGroup=true
    Unit Group - Pick every unit in (Units owned by Player 1 (Red) of type Paladin) and do (Actions)
        Loop - Actions
            Custom script:   local string s
            Custom script:   set s=CreateHerostr(GetEnumUnit())
            Custom script:   call SetStatperLevel(s,6)

I tried using these same actions in a different trigger, in which I was trying to make it work for a hero that was not preplaced. After the hero enters the map, it picks every unit of the entering heroes type (not units owned by player of type, just units of type) and does the same actions in that loop. I get an error while saving. Anyone that can help me that knows how this works? I'll post the other trigger of the attributer or the map-specific custom script code too if needed.
06-13-2005, 11:25 PM#2
Vexorian
You should use A Unit entes playable map area and Triggering Unit instead of that Pick Eveyr blaha blah thing.

The error is caused by you misspelling a function or variable, JASS is case sensitive remember
06-14-2005, 04:42 PM#3
weaaddar
It also appears you are using a holy shit old version (I'm guessing DnD, not even DnD++ or DnD+=2). Please use Drag and Drop Component edition 1.00 C found at wc3c if you need the attributer.
06-15-2005, 10:52 PM#4
Im_Uber.
If you mean the one found at this thread:
Drag and drop component edition: The newer bag!

Neither of those attachments seem to work anymore... o_O
06-16-2005, 04:04 AM#5
weaaddar
Try at wc3sear.ch they still are active there.
06-16-2005, 10:28 PM#6
Vexorian
** Points at weaaddar's signature **
06-17-2005, 02:14 AM#7
weaaddar
DT4a doesn't have the attributer. Because it broke the equip system so I removed it.
06-17-2005, 03:11 AM#8
Im_Uber.
I suppose I found it at wc3sear.ch... but the top download is an empty zip file (I realize what it said about zip files being empty and just to extract them and such, Windows said it was blocked, I unblocked it, it says its still blocked...), and the post farthest down that had the latest version seemed to use the exact same code and triggers and such that my incredibly old version (again, I know nothing whatsoever of JASS, so I could be wrong, but by the looks of it... yeah, btw that latest version's filename was "bag2"). So uh, thanks for all the feedback, but I think I'm done trying to mess with it for now. All I wanted was a special gametype for an AoS map a friend and I are making, called War of Kalimdor (it's in the completed maps section) in which each level the player could choose stats for the hero as they wished, and maybe another trigger (that I believe I could make myself) that checked what hero was leveling and subtracted however much that hero gains of each stat per level.
06-17-2005, 05:33 AM#9
weaaddar
bag2 is very old!
http://www.wc3sear.ch/index.php?p=Spells&ID=738&sid=
Nicer newer version.