Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
This can be done by accessing the widget where the equipment slot is and checking the item ID of the applicable equipment slot. If there isn't an item in that slot, the "item" property of the slot will be null. For example, the slot element IDs of the built-in equipment widget are "0005", "0006", and "0007", so to check the "right hand" slot you could do something like below (replacing "ITEM_0001" with the torch's ID). Hopefully this helps!
Not sure where to get that information about 0006 for the "right hand" but at least I can use that.
Any idea how to use this in a dialogue?
I would like to have a different dialogue if the item is equipped. But all I can make is print to the console. What would be the flow for using this as a condition in a dialog?
Or do I have to create a variable and then read the value as condition or so?
In order to find the ID of a built-in slot, e.g. the "0006", you can duplicate the widget in the Widget Editor, then select the slots and check the ID from the Element Properties panel. I'll try to provide a reference for all of these when I can.
Regarding dialogue, you'd probably need to include a script node at the beginning that does the check above and then stores it into a global property, for example true/false according to whether or not they have the item equipped, then you could check that global property in the condition where needed later in the dialogue. Hopefully that helps!