Quote from: dbuske on Wed 01/08/2012 21:21:35I think you are missing the point a little. The question is not about Nano, but about the one to WHOM it gives an item.
Nano is the main character. So, I should put Nano's giving the inv item with the if else in the global script? The giving the item is scripted as an event in the room script.
To put it simply: it depends on what object does player interact with.
When player interacts with Characters (for example: gives inventory) and Inventory Items (for example: looks at them), the event should be scripted in the GlobalScript.
When player interacts with room Objects and Hotspots, the event should be scripted in the Room script.
So, yes, you should put the event with giving an item to the GlobalScript.
Also - that's very important! - do not forget to actually bind your function with event. Simply naming it with "Useinv" won't work.
You should set the name of your function for "Use inventory on character" event in character properties. Not player character (Nano), but NPC character (Marvin).