Hi,
I need to check if player gave to hotspot specific item.
Well no problem if there is few items handled, can do it manualy thru AC GUI, but problem is when these items are random or there is some logic behind which item must be given to Hotspot, and problem is even more complicated if there are 20 more items, and script controls what item is needed now.
Ofcourse it can be done manully thru AC GUI and variables changed thru Script, but it makes so much tedious work, but in script this would be in few lines.
So my idea is:
- set "Interaction source" to "Custom Script"
- set on whatever "Use or Examine or Inv... or Unhandled " Object with Script > myController
- in "Message to Send" myFunction
and only thing missing is how to know thru script what item was passed to Hotspot,
Comments
I shall look to see it is possible to send the custom function the used item's ID number as an integer parameter. If so, I shall include it in the next major release.
-Added:
If a Hotspot relies on custom scripts for Interactions, used
Inventory Item ID numbers are passed as a function parameter