@Hasslarn If you wish, I can make Sevion's way if you wish. The problem with TheLegend's, is that it restricts the amount of classes you can have, and it is just inefficient in general.
wait just a second i didnt restrict anything. The custom value is the class so... you can have infinite number of clases. Just set eg: 4 - Rogue (item and unit) and thats it (you have to add it to the two init tiggers)
you can have infinite classes like I said. Just add the class to the tow init triggers first units (just set the temp unit group to the unit type you want to create a class for and set copy the pick every unit loop, just change the number cause that is the identifier) then items copy the if condition and set the value for those items as for the units (eg: You set 4 for Shaman so in the items that should be only wield by Shamans set 4) cause the custom value is the identifier (read the backpack a bit and youll understand, its in the first if condition)
oh sorry about that... just delete the display text to player commands in the main backpack trigger . Its just that i use NewGen we and you use the normal (if it crashed)
EDIT
ok i modified the map a bit... there is no need for you to use Newgen and i added some comments to help you add more classes View attachment Item Controler.w3x
I'm on a page about incorrect corrections, and spent the better part of like two hours trying to get someone to understand that -5^2 = -25, not 25, and then that post had comments get reposted because that group is self sustaining, and that person was in turn trying to explain what I just explained to them. And I'm taking that as a victory
I will be AFK for a couple of days you guys hold down the fort while I am gone. I will be checking in on my phone but that will severly limit me. Be back saturday!