one handed sword + shield / two handed sword

Hiroki Ito

New member
Hi,

Ultimate Inventory System, It's a great. Thank you very much.

I'm developing an RPG.
There are variations in the way equip weapon.
1. one handed sword.
2. one handed sword x2
3. two-handed sword

To do this, I created an ItemSlotSet as follows
1601250705403.png
1. 2. seems to be able to.
What do I need to do to be able to do 3.
Can one item take up 2 slots?

Ultimate Character Controller has Item sets.
I believe there should be a way with this plugin.

Thank you for your help.
 
Are you using the UCC/UIS integration, or UIS on its own?

If you are using UCC you can find indeed use the Item Set Manager to define whether an item is one handed, two handed, etc... The integration demo shows how with a two handed assault rifle and double one handed pistols.

If you are not using UCC then you'll require a bit of custom code. Essentially before equipping the item you would check the existing slots.
If a two handed weapon is equipped in the right hand, you'll have to remove it before equipping another weapon.

There's four ways to do this:

1) Make a custom equip item action.
2) Make a custom ItemCollection script.
3) Make a custom Equipper script.
4) a combination of the above.

My advice would be to make a custom equipper script as you'll probably want to animate your character such that they hold the weapon with one or two hands.

Note that the equipper script is quite limited right now. We plan to improve it and add more options early 2021. For now we are focusing on improving UI with v1.1 which should come out later this year.
 
Thanks for the reply.

I want to do this with UIS only.
I'm going to try to modify Equipper Script.
I guess I'll check the availability of multiple slots and item attributes.

I'm very excited about extending the system.
 
Top