I've been trying to cobble and hack together a working item system for a while now and I just can't get the restrictions working properly. I've run over both of Just_Spectating's item systems as well as TaaZ's item system, and while normally they'd be good enough the way they are, all my items are using attachments, which complicates it.
I need a system that will let me restrict a Hero to holding only one two handed weapon, or one one handed weapon and a shield. The problem with Just_Spectating's second system is it ALSO allows two shields or two one-handed weapons at a time. Since I am using weapon attachment models, that would stack two swords or two shields over-top of each other on the model, so it's no good. I tried altering all three systems mentioned but I could never get a functioning version that let me break it into a simple:
Items A, B, and C; classes Charged, Permanent, and Campaign for example. Can hold a Charged and a Permanent at the same time, but not with a Campaign, but only one Charged and one Permanent at a time. The different ways each file system approach the matter make it exceedingly difficult to limit it in this manner for me.
The closest one to working is first early Just_Spectating's system because it limits it with a flat out one of each item catagory. One Charged, One Permanent, etc. The only problem with it is the way it checks a Hero's inventory stops me from making it do any multiple checks like 'I want to pick up a 2H Charged class weapon, but oh look, he is carrying a 1H Permanent or 1H Campaign Shield so I wont let that happen.'
Sorry if this doesn't make any sense, normally I'm an artist and I'm not very good at math or scripts or triggers but I have to do them all myself for this. Any help or suggestions is appreciated.
I need a system that will let me restrict a Hero to holding only one two handed weapon, or one one handed weapon and a shield. The problem with Just_Spectating's second system is it ALSO allows two shields or two one-handed weapons at a time. Since I am using weapon attachment models, that would stack two swords or two shields over-top of each other on the model, so it's no good. I tried altering all three systems mentioned but I could never get a functioning version that let me break it into a simple:
Items A, B, and C; classes Charged, Permanent, and Campaign for example. Can hold a Charged and a Permanent at the same time, but not with a Campaign, but only one Charged and one Permanent at a time. The different ways each file system approach the matter make it exceedingly difficult to limit it in this manner for me.
The closest one to working is first early Just_Spectating's system because it limits it with a flat out one of each item catagory. One Charged, One Permanent, etc. The only problem with it is the way it checks a Hero's inventory stops me from making it do any multiple checks like 'I want to pick up a 2H Charged class weapon, but oh look, he is carrying a 1H Permanent or 1H Campaign Shield so I wont let that happen.'
Sorry if this doesn't make any sense, normally I'm an artist and I'm not very good at math or scripts or triggers but I have to do them all myself for this. Any help or suggestions is appreciated.