How to use items

fukada

New member
I was able to drag items to the hotbar in the inventory, but it couldn't be linked to the hotbar on the play screen, so I had no choice but to install a hotbar mirror.

I still don't understand the concept of using items.
We have set categories for ``use'' and ``throw,'' and assigned corresponding actions.

However, I don't know what to set for the item itself.

What should I set as an item to recover physical strength?
What should I set for the item that throws things?
What should I set for an item that increases its abilities for a while?
How to eliminate poison? ?

I don't understand what settings to set on the item.
please tell me.

スクリーンショット 2023-12-21 223434.png
スクリーンショット 2023-12-21 223426.png
 
What you are refering to are ItemActions.
ItemActions are script you have to write to do the logic you want.
We added some ItemActions out of the box:
But you should write your own for things outside of the basics.

What should I set as an item to recover physical strength?
What should I set for the item that throws things?
What should I set for an item that increases its abilities for a while?
How to eliminate poison? ?
All of these are scripts you will need to write.

DemoConsumeItemAction and DemoThrowItemAction are specific to the demo scene and demo player character.
They are a good start, for learning the ItemAction system
You can have a look at the code and copy paste the parts that are relevant to you and change it to make it work the way you want.
You'll find all the ItemAction scripts in the ItemActions folder

This page explains how to write your own custom ItemActions:
 
Since you showed me the specific file name, I was able to create a recovery process from there.
I was able to manage it because you told me the file name.
thank you very much.
 
Last edited:
Top