[Trigger] Item-Drop System Woes.

Status
Not open for further replies.
Level 6
Joined
Aug 12, 2007
Messages
201
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.
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
I know that Just_Spectating's system was initially exactly the script you wanted, but on request of other people, he made it possible to carry 2 one-handers. (That's what I think, at least).
I think you'd better ask him personally, since he made the system, he'll know exactly what to do and have it fixed in no-time.

I could do it myself, but wel... I'm a little bit lazy :/ sorry...
 
Level 6
Joined
Aug 12, 2007
Messages
201
Thanks, I hadn't thought of private messaging him to see if he can help me. I hope he still comes in now and again, I don't know how old that tutorial was.
 
Status
Not open for further replies.
Top