Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Ronsen on Sun 21/04/2013 23:46:05

Title: [SOLVED] Use NPC follower on hotspot
Post by: Ronsen on Sun 21/04/2013 23:46:05
Hi,
I need some advice, please :-) I managed to create an NPC as follower, a portrait GUI of him is then shown in the right corner of the screen, now I want my NPC to use/handle like an item... example: if i click on the portrait GUI i can: Use NPC on Left Switch (now he walks over and interact with the left switch, while the player character is using the right switch to open the door).
But if I create the NPC as item, of course he pops up in my inventory, what I don't really want...
Is there a way to prevent my NPC-item to be shown in the inventory and (INVSHR) window? or is that totally stupid, trying to use my NPC like an item?

Thank you!     

Title: Re: Use NPC follower on hotspot
Post by: Khris on Sun 21/04/2013 23:53:30
You can use an additional cursor mode for this. Should be pretty easy to set up, depending on what interface you're using.
Just make the portrait a button, and in the button's OnClick code, change the cursor mode.

Then use the hotspots' usermode1 event to process it.
Title: Re: Use NPC follower on hotspot
Post by: Ronsen on Mon 22/04/2013 12:23:06
Thanks Khris, needless to say that it's working with the mouse usermode, ;)
now I just have to fiddle around with ssh's description module to get somthing like: Use NPC on Left Switch