Forum rules - please read before posting.

Hotspot interaction with items thru script

edited July 2017 in Technical Q&A
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

  • Fair idea.

    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.
  • Yes I second this. It's needed functionality for a game I am working on as well.
  • Chris you are a master, great great support, THX so much

    if someone searches for it 1.58 version has it

    -Added:
    If a Hotspot relies on custom scripts for Interactions, used
    Inventory Item ID numbers are passed as a function parameter

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.